diff options
Diffstat (limited to 'shell/ev-sidebar.c')
-rw-r--r-- | shell/ev-sidebar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c index 322717b5..4d8a1de0 100644 --- a/shell/ev-sidebar.c +++ b/shell/ev-sidebar.c @@ -253,7 +253,11 @@ ev_sidebar_select_button_press_cb (GtkWidget *widget, gtk_widget_get_allocation (widget, &allocation); width = allocation.width; gtk_widget_set_size_request (ev_sidebar->priv->menu, -1, -1); +#if GTK_CHECK_VERSION (3, 0, 0) + gtk_widget_get_preferred_size (ev_sidebar->priv->menu, &requisition, NULL); +#else gtk_widget_size_request (ev_sidebar->priv->menu, &requisition); +#endif gtk_widget_set_size_request (ev_sidebar->priv->menu, MAX (width, requisition.width), -1); |