summaryrefslogtreecommitdiff
path: root/stickynotes/stickynotes_applet.c
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-17 15:59:49 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-17 15:59:49 +0100
commitd916ca590d2d325575d197ff2227c3d0df915cd5 (patch)
tree751fe99a695f39d05bf86d32a7a3a78bb9132a0f /stickynotes/stickynotes_applet.c
parent1bfaf0fdedd90cba02cdefe26aaac75418b4371f (diff)
downloadmate-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.c')
-rw-r--r--stickynotes/stickynotes_applet.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 79085cad..ad4cf3ea 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -144,8 +144,10 @@ stickynotes_applet_init (MatePanelApplet *mate_panel_applet)
g_set_application_name (_("Sticky Notes"));
+#if !GTK_CHECK_VERSION (3, 0, 0)
/* Register size for icons */
gtk_icon_size_register ("stickynotes_icon_size", 8,8);
+#endif
gtk_window_set_default_icon_name ("mate-sticky-notes-applet");
@@ -514,8 +516,8 @@ stickynotes_applet_update_prefs (void)
desktop_hide);
#if GTK_CHECK_VERSION (3, 0, 0)
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_color), &color);
- gtk_color_button_set_rgba (GTK_COLOR_BUTTON (stickynotes->w_prefs_font_color), &font_color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_color), &color);
+ gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (stickynotes->w_prefs_font_color), &font_color);
#else
gtk_color_button_set_color (GTK_COLOR_BUTTON (stickynotes->w_prefs_color), &color);
gtk_color_button_set_color (GTK_COLOR_BUTTON (stickynotes->w_prefs_font_color), &font_color);