summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2016-01-15 15:19:54 +0100
committerWolfgang Ulbrich <[email protected]>2016-01-15 15:19:54 +0100
commitf5825a429522af2c5e8390b2601c23da9dc8d880 (patch)
tree9ed93a41a2e70a60a276725ba191f1b329105872 /eel
parent782f9380134734731a1547970d4bc9ab7b57410e (diff)
downloadcaja-f5825a429522af2c5e8390b2601c23da9dc8d880.tar.bz2
caja-f5825a429522af2c5e8390b2601c23da9dc8d880.tar.xz
GTK3 eel-editable-label: don't use deprecated gtk_widget_get_requisition ()
gtk_widget_get_requisition () --> gtk_widget_get_preferred_size ()
Diffstat (limited to 'eel')
-rw-r--r--eel/eel-editable-label.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/eel/eel-editable-label.c b/eel/eel-editable-label.c
index 08688cd3..53c68df9 100644
--- a/eel/eel-editable-label.c
+++ b/eel/eel-editable-label.c
@@ -3297,8 +3297,12 @@ popup_position_func (GtkMenu *menu,
gdk_window_get_origin (gtk_widget_get_window (widget), x, y);
+#if GTK_CHECK_VERSION(3,0,0)
+ gtk_widget_get_preferred_size (widget, &req, NULL);
+#else
/*gtk_widget_size_request (label->popup_menu, &req);*/
gtk_widget_get_requisition (widget, &req);
+#endif
gtk_widget_get_allocation (widget, &allocation);
*x += allocation.width / 2;