diff options
author | rbuj <[email protected]> | 2020-07-26 16:21:46 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-07-29 19:28:08 +0200 |
commit | c7077cfd71cc74222db699a910f8507c5c68b98c (patch) | |
tree | 0ce78b34e753f1fdb71a6908f34c55d688eee99a /multiload/properties.c | |
parent | 3733313e90b81cb171d3ece44c537c435f42c090 (diff) | |
download | mate-applets-c7077cfd71cc74222db699a910f8507c5c68b98c.tar.bz2 mate-applets-c7077cfd71cc74222db699a910f8507c5c68b98c.tar.xz |
multiload: Use the id instead of the name to identify the graph type
Diffstat (limited to 'multiload/properties.c')
-rw-r--r-- | multiload/properties.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/multiload/properties.c b/multiload/properties.c index d8299cde..e9ad76a9 100644 --- a/multiload/properties.c +++ b/multiload/properties.c @@ -64,7 +64,7 @@ properties_set_insensitive(MultiloadApplet *ma) total_graphs = 0; last_graph = 0; - for (i = 0; i < NGRAPHS; i++) + for (i = 0; i < graph_n; i++) if (ma->graphs[i]->visible) { last_graph = i; @@ -122,7 +122,7 @@ property_toggled_cb(GtkWidget *widget, gpointer name) if (active) { - for (i = 0; i < NGRAPHS; i++) + for (i = 0; i < graph_n; i++) soft_set_sensitive(ma->check_boxes[i], TRUE); gtk_widget_show_all (ma->graphs[prop_type]->main_widget); ma->graphs[prop_type]->visible = TRUE; @@ -154,7 +154,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name) { case PROP_SPEED: g_settings_set_int (ma->settings, (gchar *)name, value); - for (i = 0; i < NGRAPHS; i++) + for (i = 0; i < graph_n; i++) { load_graph_stop(ma->graphs[i]); ma->graphs[i]->speed = value; @@ -165,7 +165,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name) break; case PROP_SIZE: - for (i = 0; i < NGRAPHS; i++) + for (i = 0; i < graph_n; i++) { g_settings_set_int (ma->settings, (gchar *)name, value); ma->graphs[i]->size = value ; |