[gnome-system-tools] Manually set a default size on services-admin dialog



commit 6b537846d443bf331356d04d81b23c10c7fdd479
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sun Dec 19 22:21:25 2010 +0100

    Manually set a default size on services-admin dialog
    
    In GTK+3, the tree view doesn't seem to request a sufficient height
    anymore, so we need to set the default size to something reasonable.

 src/services/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/services/main.c b/src/services/main.c
index 4e1e644..d57edb9 100644
--- a/src/services/main.c
+++ b/src/services/main.c
@@ -50,6 +50,9 @@ main (int argc, char *argv[])
 	table_create ();
 	service_settings_table_create ();
 
+	gtk_window_set_default_size (GTK_WINDOW (GST_TOOL (tool)->main_dialog),
+	                             400, 550);
+
 	gtk_widget_show (GTK_WIDGET (tool->main_dialog));
 	gtk_main ();
 



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