mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Stop the user being able to resize the window.
[originally from svn r4155]
This commit is contained in:
9
gtk.c
9
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);
|
midend_new_game(fe->me, NULL);
|
||||||
|
|
||||||
fe->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
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;
|
||||||
|
Reference in New Issue
Block a user