Calling gtk_window_set_resizable minimizes GtkWindow to a point

Hi all,

After did a�gtk_window_set_resizable, �my window didn't render as expected (minimizes to a point).
Attachment is the test code.

Any idea?

BTW, It seems�gtk_window_set_resizable not only stop the user to resize the window, but also the program?


- cee1

#include <gtk/gtk.h>

static void do_win ()
	GtkWidget *win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	gtk_window_set_default_size (GTK_WINDOW (win), 640, 480);
	gtk_window_set_position (GTK_WINDOW (win), GTK_WIN_POS_CENTER_ALWAYS);
	gtk_container_set_border_width (GTK_CONTAINER (win), 0);
	gtk_window_set_decorated (GTK_WINDOW (win), FALSE);
	gtk_widget_show_now (win);
	sleep (2);
	gtk_window_set_resizable (GTK_WINDOW (win), FALSE);

int main (int argc, char *argv[])
	gtk_init (&argc, &argv);
	do_win ();
	gtk_main ();

	return 0;

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]