From: simon Date: Tue, 27 Apr 2004 19:01:49 +0000 (+0000) Subject: Stop the user being able to resize the window. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/ff2f787bd7fbcdeeb975711ccd6148ae9f87ce19?hp=1482ee76f9b9a587ea12a09d4c971f5ed92cb6fe Stop the user being able to resize the window. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@4155 cda61777-01e9-0310-a592-d414129be87e --- 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;