summaryrefslogtreecommitdiff
path: root/stickynotes
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-26 14:59:01 +0100
committerinfirit <[email protected]>2014-11-26 18:13:43 +0100
commit7aebf38bbbe79c3a82fc4723f3fa4b01e230b0f1 (patch)
tree8bc45fd0079293b4a328d779d4d9ff23356f9900 /stickynotes
parentd2d685818a85b773c49802c494a0c386917b5ee6 (diff)
downloadmate-applets-7aebf38bbbe79c3a82fc4723f3fa4b01e230b0f1.tar.bz2
mate-applets-7aebf38bbbe79c3a82fc4723f3fa4b01e230b0f1.tar.xz
Gtk3: don't use deprecated gtk_widget_size_request
Taken from gnome-panel commit: c05c6b07ec493d174062a06caf185d324fd6e0c4 From: Alberts Muktupāvels <[email protected]>
Diffstat (limited to 'stickynotes')
-rw-r--r--stickynotes/stickynotes_applet.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/stickynotes/stickynotes_applet.c b/stickynotes/stickynotes_applet.c
index 2b2bb21c..f7fbb853 100644
--- a/stickynotes/stickynotes_applet.c
+++ b/stickynotes/stickynotes_applet.c
@@ -620,7 +620,11 @@ stickynotes_applet_panel_icon_get_geometry (int *x, int *y, int *width, int *hei
widget = GTK_WIDGET (applet->w_image);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (widget, NULL, &requisition);
+#else
gtk_widget_size_request (widget, &requisition);
+#endif
gdk_window_get_origin (gtk_widget_get_window (widget), x, y);