From e9036041d1a7cf30197ee3f0668c95806dede66d Mon Sep 17 00:00:00 2001 From: raveit65 Date: Sun, 30 Apr 2017 22:20:09 +0200 Subject: sensor-config-dialog: don't use deprecated GtkColorButton --- sensors-applet/sensor-config-dialog.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sensors-applet') 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.), -- cgit v1.2.1