Stop the user being able to resize the window.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 27 Apr 2004 19:01:49 +0000 (19:01 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 27 Apr 2004 19:01:49 +0000 (19:01 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4155 cda61777-01e9-0310-a592-d414129be87e

gtk.c

diff --git a/gtk.c b/gtk.c
index 0d63e58..b3b453f 100644 (file)
--- a/gtk.c
+++ b/gtk.c
@@ -1,9 +1,5 @@
 /*
  * gtk.c: GTK front end for my puzzle collection.
 /*
  * gtk.c: GTK front end for my puzzle collection.
- * 
- * TODO:
- * 
- *  - Handle resizing, probably just by forbidding it.
  */
 
 #include <stdio.h>
  */
 
 #include <stdio.h>
@@ -254,6 +250,11 @@ static frontend *new_window(void)
     midend_new_game(fe->me, NULL);
 
     fe->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
     midend_new_game(fe->me, NULL);
 
     fe->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+#if 0
+    gtk_window_set_resizable(GTK_WINDOW(fe->window), FALSE);
+#else
+    gtk_window_set_policy(GTK_WINDOW(fe->window), FALSE, FALSE, TRUE);
+#endif
 
     {
         int i, ncolours;
 
     {
         int i, ncolours;