Fix deprecated allow-shring & allow-grow warnings

Reported by Troy Engel, avoid recent GTK version deprecated warnings
by using gtk_window_set_resizable().
This commit is contained in:
Bill Wilson 2014-10-21 18:49:41 -05:00
parent 52f6abde26
commit e15c0d4a02
1 changed files with 4 additions and 3 deletions

View File

@ -1553,9 +1553,10 @@ create_widget_tree()
gtk_widget_realize(gtree.window);
/* gtk_window_set_resizable() */
g_object_set(G_OBJECT(gtree.window), "allow_shrink", FALSE, NULL);
g_object_set(G_OBJECT(gtree.window), "allow_grow", FALSE, NULL);
/* Set the toplevel window size handling to be under program control.
*/
gtk_window_set_resizable((GtkWindow *) gtree.window, FALSE);
if (!decorated)
gtk_window_set_decorated((GtkWindow *) gtree.window, FALSE);