From: Jean-Philippe Orsini Date: Sun, 8 May 2011 11:51:34 +0000 (+0000) Subject: support of GTK3 X-Git-Tag: v0.8.0.5~775 X-Git-Url: https://git.wpitchoune.net/gitweb/?a=commitdiff_plain;h=480f93d5e3b0eada0d6fcce322f291f56703ea98;hp=f6a63a1beee328ba6a022c9ee1b740866af04807;p=psensor.git support of GTK3 --- diff --git a/src/ui_color.c b/src/ui_color.c index 9010d59..58a944b 100644 --- a/src/ui_color.c +++ b/src/ui_color.c @@ -32,12 +32,12 @@ int ui_change_color(const char *title, struct color *col) color.green = col->green; color.blue = col->blue; - colordlg = (GtkColorSelectionDialog *) - gtk_color_selection_dialog_new(title); + colordlg = GTK_COLOR_SELECTION_DIALOG + (gtk_color_selection_dialog_new(title)); - colorsel = GTK_COLOR_SELECTION(colordlg->colorsel); + colorsel = GTK_COLOR_SELECTION + (gtk_color_selection_dialog_get_color_selection(colordlg)); - gtk_color_selection_set_previous_color(colorsel, &color); gtk_color_selection_set_current_color(colorsel, &color); res = gtk_dialog_run(GTK_DIALOG(colordlg));