summaryrefslogtreecommitdiff
path: root/sensors-applet/sensor-config-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-30 22:20:09 +0200
committerraveit65 <[email protected]>2017-04-30 22:20:09 +0200
commite9036041d1a7cf30197ee3f0668c95806dede66d (patch)
treee73493393d04fc77f3d39578b57cd9bec20c98b3 /sensors-applet/sensor-config-dialog.c
parent965c9f8e205bda7bb0eb14cd2d927a69506967a9 (diff)
downloadmate-sensors-applet-e9036041d1a7cf30197ee3f0668c95806dede66d.tar.bz2
mate-sensors-applet-e9036041d1a7cf30197ee3f0668c95806dede66d.tar.xz
sensor-config-dialog: don't use deprecated GtkColorButton
Diffstat (limited to 'sensors-applet/sensor-config-dialog.c')
-rw-r--r--sensors-applet/sensor-config-dialog.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c
index f8bbe94..0bb05ee 100644
--- a/sensors-applet/sensor-config-dialog.c
+++ b/sensors-applet/sensor-config-dialog.c
@@ -318,7 +318,7 @@ static void sensor_config_dialog_icon_type_changed(GtkComboBox *icon_type_combo_
}
}
-static void sensor_config_dialog_graph_color_set(GtkColorButton *color_button,
+static void sensor_config_dialog_graph_color_set(GtkColorChooser *color_chooser,
SensorConfigDialog *config_dialog) {
GtkTreeModel *model;
GtkTreePath *path;
@@ -327,8 +327,8 @@ static void sensor_config_dialog_graph_color_set(GtkColorButton *color_button,
gchar *color_string;
GdkRGBA color;
- gtk_color_button_get_rgba(color_button,
- &color);
+ gtk_color_chooser_get_rgba(color_chooser,
+ &color);
color_string = g_strdup_printf ("#%02X%02X%02X", (int)(0.5 + CLAMP (color.red, 0., 1.) * 255.),
(int)(0.5 + CLAMP (color.green, 0., 1.) * 255.),