summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-19 17:35:43 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-19 17:35:43 +0100
commita362fe9d9b65a4ac3e4947569646e28c75910908 (patch)
tree68cc28260947e1fa4b06d8e6e2d499530b20429a
parent04fd72c766592e3027f269b969d733175c462d94 (diff)
downloadmate-applets-a362fe9d9b65a4ac3e4947569646e28c75910908.tar.bz2
mate-applets-a362fe9d9b65a4ac3e4947569646e28c75910908.tar.xz
GTK3 drivemount: don't use deprecated gtk_widget_get_requisition
-rw-r--r--drivemount/drive-button.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivemount/drive-button.c b/drivemount/drive-button.c
index 51e90100..8be9d02b 100644
--- a/drivemount/drive-button.c
+++ b/drivemount/drive-button.c
@@ -202,7 +202,11 @@ position_menu (GtkMenu *menu, gint *x, gint *y,
direction = gtk_widget_get_direction (widget);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (GTK_WIDGET (menu), &requisition, NULL);
+#else
gtk_widget_get_requisition (GTK_WIDGET (menu), &requisition);
+#endif
twidth = requisition.width;
theight = requisition.height;