shell: subtract a hacky constant from the screen height for dialog height

Since the window also has a titlebar and toolbar.  Should probably
try to get the size of those somehow.
This commit is contained in:
William Jon McCann 2010-11-13 11:46:41 -05:00
parent e673c682f4
commit 93f6035425

View file

@ -913,7 +913,7 @@ on_window_size_allocate (GtkWidget *widget,
screen = gtk_widget_get_screen (widget);
monitor = gdk_screen_get_monitor_at_window (screen, window);
gdk_screen_get_monitor_geometry (screen, monitor, &rect);
height = MIN (height + 10, rect.height);
height = MIN (height + 10, rect.height - 120);
}
}
else