From f7acf55db3ab4b97d60faae24555a07b6b08d43c Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 22 Nov 2016 17:47:06 +0300 Subject: move to GTK+3 (>= 3.14), drop GTK+2 code and --with-gtk build option and require mate-panel >= 1.17 WARNING: use GTK+3 build of libmateweather for this build. that lib is not migrated to GTK+3 only as we will possibly use libgweather instead of it. --- stickynotes/stickynotes_callbacks.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'stickynotes/stickynotes_callbacks.c') diff --git a/stickynotes/stickynotes_callbacks.c b/stickynotes/stickynotes_callbacks.c index d1e23dde..bd6a4577 100644 --- a/stickynotes/stickynotes_callbacks.c +++ b/stickynotes/stickynotes_callbacks.c @@ -143,7 +143,6 @@ void properties_apply_color_cb(StickyNote *note) if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(note->w_def_color))) { -#if GTK_CHECK_VERSION (3, 0, 0) GdkRGBA color, font_color; gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (note->w_color), &color); @@ -151,21 +150,6 @@ void properties_apply_color_cb(StickyNote *note) color_str = gdk_rgba_to_string (&color); font_color_str = gdk_rgba_to_string (&font_color); -#else - GdkColor color, font_color; - - gtk_color_button_get_color (GTK_COLOR_BUTTON (note->w_color), &color); - gtk_color_button_get_color (GTK_COLOR_BUTTON (note->w_font_color), &font_color); - - color_str = g_strdup_printf ("#%.2x%.2x%.2x", - color.red / 256, - color.green / 256, - color.blue / 256); - font_color_str = g_strdup_printf ("#%.2x%.2x%.2x", - font_color.red / 256, - font_color.green / 256, - font_color.blue / 256); -#endif } stickynote_set_color (note, color_str, font_color_str, TRUE); -- cgit v1.2.1