gnome-games r8949 - trunk/gnomine



Author: thomashpa
Date: Mon Mar 30 00:33:57 2009
New Revision: 8949
URL: http://svn.gnome.org/viewvc/gnome-games?rev=8949&view=rev

Log:
Fix GUI layout to match HIG. Patch by Romain Bezut w/ small update by me. Fixes bug #574120

Modified:
   trunk/gnomine/gnomine.c

Modified: trunk/gnomine/gnomine.c
==============================================================================
--- trunk/gnomine/gnomine.c	(original)
+++ trunk/gnomine/gnomine.c	Mon Mar 30 00:33:57 2009
@@ -750,6 +750,8 @@
   gtk_table_attach (GTK_TABLE (table), cframe, 1, 2, 0, 1, GTK_FILL, GTK_FILL,
 		    0, 0);
 
+  frame = games_frame_new(_("Flags"));
+
   question_toggle =
     gtk_check_button_new_with_mnemonic (_("_Use \"I'm not sure\" flags"));
   g_signal_connect (GTK_OBJECT (question_toggle), "toggled",
@@ -758,8 +760,11 @@
 				use_question_marks);
   gtk_widget_show (question_toggle);
 
-  gtk_table_attach_defaults (GTK_TABLE (table), question_toggle, 0, 2, 1, 2);
+  gtk_container_add (GTK_CONTAINER (frame), question_toggle);
+
+  gtk_table_attach_defaults (GTK_TABLE (table), frame, 0, 2, 1, 2);
 
+  frame = games_frame_new(_("Warnings"));
 
   overmine_toggle =
     gtk_check_button_new_with_mnemonic (_("_Use \"Too many flags\" warning"));
@@ -769,8 +774,9 @@
 				use_overmine_warning);
   gtk_widget_show (overmine_toggle);
 
-  gtk_table_attach_defaults (GTK_TABLE (table), overmine_toggle, 0, 2, 2, 3);
+  gtk_container_add (GTK_CONTAINER (frame), overmine_toggle);
 
+  gtk_table_attach_defaults (GTK_TABLE (table), frame, 0, 2, 2, 3);
 
   pref_dialog = gtk_dialog_new_with_buttons (_("Mines Preferences"),
 					     GTK_WINDOW (window),



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