Commit f2eab2da authored by Paolo Bacchilega's avatar Paolo Bacchilega

dialog size: realize the dialog before getting its screen size

parent 0059253d
......@@ -680,6 +680,7 @@ _gtk_window_resize_to_fit_screen_height (GtkWidget *window,
{
int screen_height;
gtk_widget_realize (window);
_gtk_widget_get_screen_size (window, NULL, &screen_height);
if (screen_height < 768)
/* maximize on netbooks */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment