GTK: Restore content scaling

It had been broken in eabfcb71be when
moving from GtkVBox to GtkBox removed homogeneous=false.
This commit is contained in:
Emmanuel Gil Peyrot 2020-09-09 23:53:16 +02:00
parent 3ecbb29863
commit bfeff3fe66
1 changed files with 1 additions and 0 deletions

View File

@ -4225,6 +4225,7 @@ common_gtk_main(GApplication *app, gpointer user_data)
/* Creating the place for showing DS screens */
pDrawingArea = gtk_drawing_area_new();
gtk_widget_set_vexpand(pDrawingArea, TRUE);
/* This toggle action must not be set active before the pDrawingArea initialization to avoid a GTK warning */
g_simple_action_set_state(G_SIMPLE_ACTION(g_action_map_lookup_action(G_ACTION_MAP(app), "gap")), g_variant_new_boolean(config.view_gap));