[gnome-control-center] region: Make sure the layouts tree doesn't end up empty



commit 5db534af2f5af7b8811b7f6fbd6a6fe6a15fbf0e
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 21 17:38:10 2011 +0000

    region: Make sure the layouts tree doesn't end up empty
    
    By making the whole panel bigger. Might work-around a GTK+ bug, we
    won't know for now...

 panels/region/gnome-region-panel.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/panels/region/gnome-region-panel.c b/panels/region/gnome-region-panel.c
index 7297784..979ef00 100644
--- a/panels/region/gnome-region-panel.c
+++ b/panels/region/gnome-region-panel.c
@@ -64,15 +64,14 @@ setup_dialog (GtkBuilder * dialog)
 GtkWidget *
 gnome_region_properties_init (GtkBuilder * dialog)
 {
-	GtkWidget *dialog_win = NULL;
+	GtkWidget *region_notebook = NULL;
 
 	create_dialog (dialog);
 	if (dialog) {
 		setup_dialog (dialog);
-		dialog_win = WID ("region_dialog");
-		/* g_signal_connect (dialog_win, "response",
-		   G_CALLBACK (dialog_response_cb), NULL); */
+		region_notebook = WID ("region_notebook");
+		gtk_widget_set_size_request (GTK_WIDGET (region_notebook), -1, 400);
 	}
 
-	return dialog_win;
+	return region_notebook;
 }



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