summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-02-09 14:12:12 +0100
committerWolfgang Ulbrich <[email protected]>2016-02-09 15:39:31 +0100
commita67e8a07a43794bee27e9708b19cbadab31ccb02 (patch)
treecdcc717f83430f50e8974ed7e4cf6d8ddc645db2
parent975c05e2933bede47cc825b013c626324f0a1133 (diff)
downloadmate-panel-a67e8a07a43794bee27e9708b19cbadab31ccb02.tar.bz2
mate-panel-a67e8a07a43794bee27e9708b19cbadab31ccb02.tar.xz
GTK+3 panel-toplevel: do not use deprecated gtk_widget_get_requisition
taken from: https://git.gnome.org/browse/gnome-panel/commit/?id=e14b9ac
-rw-r--r--mate-panel/panel-toplevel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mate-panel/panel-toplevel.c b/mate-panel/panel-toplevel.c
index 6bbc22ba..f740d0c8 100644
--- a/mate-panel/panel-toplevel.c
+++ b/mate-panel/panel-toplevel.c
@@ -3805,7 +3805,11 @@ panel_toplevel_start_animation (PanelToplevel *toplevel)
deltax = toplevel->priv->animation_end_x - cur_x;
deltay = toplevel->priv->animation_end_y - cur_y;
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (GTK_WIDGET (toplevel), &requisition, NULL);
+#else
gtk_widget_get_requisition (GTK_WIDGET (toplevel), &requisition);
+#endif
if (toplevel->priv->animation_end_width != -1)
deltaw = toplevel->priv->animation_end_width - requisition.width;