]> www.fi.muni.cz Git - evince.git/blobdiff - shell/ev-sidebar.c
[dualscreen] fix crash on ctrl+w and fix control window closing
[evince.git] / shell / ev-sidebar.c
index 3a99b556a5079da7596d1d25e8e19045b869fa0d..c2b2c53beda0fd29425c4eee1cb2872370020bf6 100644 (file)
@@ -231,7 +231,7 @@ 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);
-               gtk_widget_size_request (ev_sidebar->priv->menu, &requisition);
+                gtk_widget_get_preferred_size (ev_sidebar->priv->menu, &requisition, NULL);
                gtk_widget_set_size_request (ev_sidebar->priv->menu,
                                             MAX (width, requisition.width), -1);