ref: 786b24afc17fbeec6c28544e9145874d992a6d87
parent: d99e217cfb12f40dd7dbc26146ef287f9f9020fc
author: Simon Tatham <anakin@pobox.com>
date: Tue Apr 27 15:01:49 EDT 2004
Stop the user being able to resize the window. [originally from svn r4155]
--- a/gtk.c
+++ b/gtk.c
@@ -1,9 +1,5 @@
/*
* gtk.c: GTK front end for my puzzle collection.
- *
- * TODO:
- *
- * - Handle resizing, probably just by forbidding it.
*/
#include <stdio.h>
@@ -254,6 +250,11 @@
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;