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_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_callbacks.c')
-rw-r--r-- | stickynotes/stickynotes_callbacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stickynotes/stickynotes_callbacks.c b/stickynotes/stickynotes_callbacks.c index d25139a3..57404d97 100644 --- a/stickynotes/stickynotes_callbacks.c +++ b/stickynotes/stickynotes_callbacks.c @@ -146,8 +146,8 @@ void properties_apply_color_cb(StickyNote *note) #if GTK_CHECK_VERSION (3, 0, 0) GdkRGBA color, font_color; - gtk_color_button_get_rgba (GTK_COLOR_BUTTON (note->w_color), &color); - gtk_color_button_get_rgba (GTK_COLOR_BUTTON (note->w_font_color), &font_color); + gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (note->w_color), &color); + gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (note->w_font_color), &font_color); color_str = gdk_rgba_to_string (&color); font_color_str = gdk_rgba_to_string (&font_color); |