From: Simon Tatham Date: Tue, 27 Apr 2004 19:01:49 +0000 (+0000) Subject: Stop the user being able to resize the window. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=786b24afc17fbeec6c28544e9145874d992a6d87;p=sgt-puzzles.git Stop the user being able to resize the window. [originally from svn r4155] --- diff --git a/gtk.c b/gtk.c index 0d63e58..b3b453f 100644 --- 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 @@ -254,6 +250,11 @@ static frontend *new_window(void) 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;