diff options
author | monsta <[email protected]> | 2016-11-22 17:47:06 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-22 17:47:06 +0300 |
commit | f7acf55db3ab4b97d60faae24555a07b6b08d43c (patch) | |
tree | 6feb99e63f801161642669b01c9ce0c217e60d0b /stickynotes/stickynotes_applet_callbacks.c | |
parent | 45354a60352e05eba7e66e24a171e713876d71e9 (diff) | |
download | mate-applets-f7acf55db3ab4b97d60faae24555a07b6b08d43c.tar.bz2 mate-applets-f7acf55db3ab4b97d60faae24555a07b6b08d43c.tar.xz |
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.
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index 8c95ed2a..1bee855f 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -423,7 +423,6 @@ preferences_color_cb (GtkWidget *button, gpointer data) { char *color_str, *font_color_str; -#if GTK_CHECK_VERSION (3, 0, 0) GdkRGBA color, font_color; gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_color), &color); @@ -431,21 +430,6 @@ preferences_color_cb (GtkWidget *button, gpointer data) 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 (stickynotes->w_prefs_color), &color); - gtk_color_button_get_color (GTK_COLOR_BUTTON (stickynotes->w_prefs_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 g_settings_set_string (stickynotes->settings, "default-color", color_str); g_settings_set_string (stickynotes->settings, "default-font-color", font_color_str); |