[gnome-control-center] shell: subtract a hacky constant from the screen height for dialog height



commit 93f6035425bb9267ba383e2de80ade8a0ff63306
Author: William Jon McCann <jmccann redhat com>
Date:   Sat Nov 13 11:46:41 2010 -0500

    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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index bc73668..73b4d4b 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]