summaryrefslogtreecommitdiff
path: root/multiload
diff options
context:
space:
mode:
authormarosg42 <[email protected]>2018-04-01 17:11:36 +0200
committerraveit65 <[email protected]>2018-04-09 07:02:21 +0200
commit486f9e58951fda0e7d52c49fecbdab69d41304a3 (patch)
tree22218e1471a5e94c9c720944f7e9a5cfe49061c6 /multiload
parent23b0803d0e370b1e5d18b2c7c3424c36aa293dc7 (diff)
downloadmate-applets-486f9e58951fda0e7d52c49fecbdab69d41304a3.tar.bz2
mate-applets-486f9e58951fda0e7d52c49fecbdab69d41304a3.tar.xz
solving type mismatch in g_settings_set_value
Diffstat (limited to 'multiload')
-rw-r--r--multiload/properties.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/multiload/properties.c b/multiload/properties.c
index 623afe39..f78c3447 100644
--- a/multiload/properties.c
+++ b/multiload/properties.c
@@ -150,13 +150,10 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name)
prop_type = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "prop_type"));
value = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget));
- /* FIXME: the first toggle button to be checked/dechecked does not work, but after that everything is cool. what gives? */
- g_settings_set_uint (ma->settings, (gchar *)name, value);
- g_settings_set_uint (ma->settings, (gchar *)name, value);
-
switch(prop_type)
{
case PROP_SPEED:
+ g_settings_set_int (ma->settings, (gchar *)name, value);
for (i = 0; i < NGRAPHS; i++)
{
load_graph_stop(ma->graphs[i]);
@@ -170,6 +167,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name)
case PROP_SIZE:
for (i = 0; i < NGRAPHS; i++)
{
+ g_settings_set_int (ma->settings, (gchar *)name, value);
ma->graphs[i]->size = value ;
if (ma->graphs[i]->orient)
@@ -186,6 +184,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name)
break;
case PROP_NET_THRESHOLD1:
+ g_settings_set_uint (ma->settings, (gchar *)name, value);
if (value >= ma->graphs[2]->net_threshold2)
{
gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget),
@@ -197,6 +196,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name)
break;
case PROP_NET_THRESHOLD2:
+ g_settings_set_uint (ma->settings, (gchar *)name, value);
if (value >= ma->graphs[2]->net_threshold3)
{
gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget),
@@ -215,6 +215,7 @@ spin_button_changed_cb(GtkWidget *widget, gpointer name)
break;
case PROP_NET_THRESHOLD3:
+ g_settings_set_uint (ma->settings, (gchar *)name, value);
if (value <= ma->graphs[2]->net_threshold2)
{
gtk_spin_button_set_value(GTK_SPIN_BUTTON(widget),