summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;