diff options
author | Wolfgang Ulbrich <[email protected]> | 2015-12-17 15:59:49 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2015-12-17 15:59:49 +0100 |
commit | d916ca590d2d325575d197ff2227c3d0df915cd5 (patch) | |
tree | 751fe99a695f39d05bf86d32a7a3a78bb9132a0f /stickynotes/stickynotes_applet_callbacks.c | |
parent | 1bfaf0fdedd90cba02cdefe26aaac75418b4371f (diff) | |
download | mate-applets-d916ca590d2d325575d197ff2227c3d0df915cd5.tar.bz2 mate-applets-d916ca590d2d325575d197ff2227c3d0df915cd5.tar.xz |
GTK3 stickynotes: several geprecated fixes
- don't use deprecated GdkColor
- don't use deprecated gtkcolorbutton
- don't use deprecated gtk_icon_size_register
taken from:
https://git.gnome.org/browse/gnome-applets/commit/?id=0e26a90
https://git.gnome.org/browse/gnome-applets/commit/?id=30805d8
https://git.gnome.org/browse/gnome-applets/commit/?id=15dbeb5
Diffstat (limited to 'stickynotes/stickynotes_applet_callbacks.c')
-rw-r--r-- | stickynotes/stickynotes_applet_callbacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stickynotes/stickynotes_applet_callbacks.c b/stickynotes/stickynotes_applet_callbacks.c index 0300fbf8..791f02a1 100644 --- a/stickynotes/stickynotes_applet_callbacks.c +++ b/stickynotes/stickynotes_applet_callbacks.c @@ -423,8 +423,8 @@ preferences_color_cb (GtkWidget *button, gpointer data) #if GTK_CHECK_VERSION (3, 0, 0) GdkRGBA color, font_color; - gtk_color_button_get_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_color), &color); - gtk_color_button_get_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_font_color), &font_color); + gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_color), &color); + gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_font_color), &font_color); color_str = gdk_rgba_to_string (&color); font_color_str = gdk_rgba_to_string (&font_color); |