summaryrefslogtreecommitdiff
path: root/src/eom-sidebar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r--src/eom-sidebar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index 85a1b2f..0b031f2 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -285,7 +285,11 @@ eom_sidebar_select_button_press_cb (GtkWidget *widget,
gtk_widget_get_allocation (widget, &allocation);
gtk_widget_set_size_request (eom_sidebar->priv->menu, -1, -1);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_widget_get_preferred_size (eom_sidebar->priv->menu, &requisition, NULL);
+#else
gtk_widget_size_request (eom_sidebar->priv->menu, &requisition);
+#endif
gtk_widget_set_size_request (eom_sidebar->priv->menu,
MAX (allocation.width,
requisition.width), -1);