diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-04-27 19:01:49 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-04-27 19:01:49 +0000 |
| commit | 786b24afc17fbeec6c28544e9145874d992a6d87 (patch) | |
| tree | 9ee363dc31db75ff6e9e44f178f4f55efa1f2849 | |
| parent | d99e217cfb12f40dd7dbc26146ef287f9f9020fc (diff) | |
| download | puzzles-786b24afc17fbeec6c28544e9145874d992a6d87.zip puzzles-786b24afc17fbeec6c28544e9145874d992a6d87.tar.gz puzzles-786b24afc17fbeec6c28544e9145874d992a6d87.tar.bz2 puzzles-786b24afc17fbeec6c28544e9145874d992a6d87.tar.xz | |
Stop the user being able to resize the window.
[originally from svn r4155]
| -rw-r--r-- | gtk.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 @@ 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; |