summaryrefslogtreecommitdiff
path: root/multiload/cpuload.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>2000-02-19 22:13:13 +0000
committerMartin Baulig <martin@src.gnome.org>2000-02-19 22:13:13 +0000
commitb3536a3640a843573581ed9b46c59be8889b7308 (patch)
treeccb22f4eb897d38d6e5684f93d56976387217dbf /multiload/cpuload.c
parent81b83a80ecbf43a39463ae5962c3ad882888863e (diff)
Implemented panel size and orientation hints.
2000-02-19 Martin Baulig <martin@home-of-linux.org> Implemented panel size and orientation hints. * multiload/properties.h (LoadGraphProperties): `adj_data' is now an array of size 2, not 3. * multiload/load-graph.h (LoadGraph): Removed `width' and `height'. Added `applet', `size', `orient', `pixel_size' and `allocated'. * multiload/load-graph.c (load_graph_new): Replaced `width' and `height' parameters with `size' and added new `applet' parameter.
Diffstat (limited to 'multiload/cpuload.c')
-rw-r--r--multiload/cpuload.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/multiload/cpuload.c b/multiload/cpuload.c
index 7c3b986a4..a0d973d0c 100644
--- a/multiload/cpuload.c
+++ b/multiload/cpuload.c
@@ -23,17 +23,6 @@
#include "global.h"
-static gint
-applet_save_session (GtkWidget *widget, char *privcfgpath,
- char *globcfgpath, gpointer data)
-{
- return FALSE;
- widget = NULL;
- privcfgpath = NULL;
- globcfgpath = NULL;
- data = NULL;
-}
-
/* start a new instance of the cpuload applet */
GtkWidget *
make_cpuload_applet (const gchar *goad_id)
@@ -48,20 +37,16 @@ make_cpuload_applet (const gchar *goad_id)
if (!applet)
g_error ("Can't create applet!\n");
- g = load_graph_new (4, N_("CPU Load"), &multiload_properties.cpuload,
+ g = load_graph_new (APPLET_WIDGET (applet), 4, N_("CPU Load"),
+ &multiload_properties.cpuload,
multiload_properties.cpuload.adj_data[0],
- multiload_properties.cpuload.adj_data[1],
- multiload_properties.cpuload.adj_data[2], GetLoad);
+ multiload_properties.cpuload.adj_data[1], GetLoad);
applet_widget_add (APPLET_WIDGET(applet), g->frame);
gtk_widget_show (applet);
load_graph_start (g);
- gtk_signal_connect (GTK_OBJECT(applet),"save_session",
- GTK_SIGNAL_FUNC(applet_save_session),
- NULL);
-
applet_widget_register_stock_callback (APPLET_WIDGET(applet),
"properties",
GNOME_STOCK_MENU_PROP,