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:
parent
52f6abde26
commit
e15c0d4a02
|
@ -1553,9 +1553,10 @@ create_widget_tree()
|
||||||
|
|
||||||
gtk_widget_realize(gtree.window);
|
gtk_widget_realize(gtree.window);
|
||||||
|
|
||||||
/* gtk_window_set_resizable() */
|
/* Set the toplevel window size handling to be under program control.
|
||||||
g_object_set(G_OBJECT(gtree.window), "allow_shrink", FALSE, NULL);
|
*/
|
||||||
g_object_set(G_OBJECT(gtree.window), "allow_grow", FALSE, NULL);
|
gtk_window_set_resizable((GtkWindow *) gtree.window, FALSE);
|
||||||
|
|
||||||
if (!decorated)
|
if (!decorated)
|
||||||
gtk_window_set_decorated((GtkWindow *) gtree.window, FALSE);
|
gtk_window_set_decorated((GtkWindow *) gtree.window, FALSE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue