From b6f9c524b92ba5fbdd20d35b239fbcd3ddc3a10c Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 23 Aug 2022 17:41:00 +0800 Subject: [PATCH] update --- panel-plugin/Makefile.am | 6 +----- panel-plugin/commandline.c | 2 +- panel-plugin/net.c | 2 +- panel-plugin/net.h | 2 +- panel-plugin/speed.c | 2 +- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/panel-plugin/Makefile.am b/panel-plugin/Makefile.am index 41801ae..58e71bb 100644 --- a/panel-plugin/Makefile.am +++ b/panel-plugin/Makefile.am @@ -32,10 +32,6 @@ libspeed_la_LIBADD = \ @LIBXFCE4PANEL_LIBS@ \ @LIBXFCE4UI_LIBS@ -check_PROGRAMS = commandline -commandline_SOURCES = commandline.c utils.c utils.h net.c net.h -commandline_CFLAGS = @LIBXFCE4PANEL_CFLAGS@ -commandline_LDADD = @LIBXFCE4PANEL_LIBS@ # .desktop file # @@ -52,7 +48,7 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop) @INTLTOOL_DESKTOP_RULE@ EXTRA_DIST = \ - wormulon commandline.c \ + wormulon \ $(desktop_in_in_files) DISTCLEANFILES = \ diff --git a/panel-plugin/commandline.c b/panel-plugin/commandline.c index 6cb0490..2967f36 100644 --- a/panel-plugin/commandline.c +++ b/panel-plugin/commandline.c @@ -19,7 +19,7 @@ netdata data; /* ---------------------------------------------------------------------------------------------- */ void sig_end_handler (int sig) { - close_netload(&data); + close_speed(&data); exit(0); } diff --git a/panel-plugin/net.c b/panel-plugin/net.c index b2eea50..e704465 100644 --- a/panel-plugin/net.c +++ b/panel-plugin/net.c @@ -214,7 +214,7 @@ char* get_ip_address(netdata* data) /* ---------------------------------------------------------------------------------------------- */ -void close_netload(netdata* data) +void close_speed(netdata* data) { /* We need not code here */ } diff --git a/panel-plugin/net.h b/panel-plugin/net.h index d26665f..65127ee 100644 --- a/panel-plugin/net.h +++ b/panel-plugin/net.h @@ -113,6 +113,6 @@ char* get_ip_address(netdata* data); /** * Should be called to do cleanup work. */ -void close_netload(netdata* data); +void close_speed(netdata* data); #endif /* NET_H */ diff --git a/panel-plugin/speed.c b/panel-plugin/speed.c index 7cfc732..d50e52f 100644 --- a/panel-plugin/speed.c +++ b/panel-plugin/speed.c @@ -403,7 +403,7 @@ static void monitor_free(XfcePanelPlugin *plugin, t_global_monitor *global) gtk_widget_destroy(global->tooltip_text); - close_netload( &(global->monitor->data) ); + close_speed( &(global->monitor->data) ); g_free(global); }