summaryrefslogtreecommitdiff
path: root/multiload/properties.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 09:58:30 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 09:58:30 +0100
commit7ca1965de675c694a0a811c6d075b67a114edd3a (patch)
tree68c72937ff42d5bf24dd90465330cb861ba65e48 /multiload/properties.c
parent7779705809b61a180aeb2371afcf8d0cba9ba0e3 (diff)
downloadmate-applets-7ca1965de675c694a0a811c6d075b67a114edd3a.tar.bz2
mate-applets-7ca1965de675c694a0a811c6d075b67a114edd3a.tar.xz
multiload: Add GTK3 support
Diffstat (limited to 'multiload/properties.c')
-rw-r--r--multiload/properties.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/multiload/properties.c b/multiload/properties.c
index 97d750c5..9dd3cf6a 100644
--- a/multiload/properties.c
+++ b/multiload/properties.c
@@ -244,7 +244,9 @@ color_picker_set_cb(GtkColorButton *color_picker, gchar *key)
gdk_color_parse(color_string,
&(ma->graphs[prop_type]->colors[g_ascii_digit_value(key[strlen(key) - 1]) ]) );
+#if !GTK_CHECK_VERSION (3, 0, 0)
ma->graphs[prop_type]->colors_allocated = FALSE;
+#endif
return;
}
@@ -635,7 +637,9 @@ multiload_properties_cb (GtkAction *action,
gtk_widget_get_screen (GTK_WIDGET (ma->applet)));
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+#if !GTK_CHECK_VERSION (3, 0, 0)
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), 2);