From 93f6035425bb9267ba383e2de80ade8a0ff63306 Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Sat, 13 Nov 2010 11:46:41 -0500 Subject: [PATCH] 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. --- shell/gnome-control-center.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c index bc7366881..73b4d4bd4 100644 --- a/shell/gnome-control-center.c +++ b/shell/gnome-control-center.c @@ -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