display: Make rows created for a new current output be the same size

We need the rows size group to exist when creating output UIs.
This commit is contained in:
Rui Matos 2017-08-23 17:14:16 +02:00
parent 0a0ac31b51
commit 566b0c137c

View file

@ -1530,9 +1530,14 @@ static void
replace_current_output_ui (GtkWidget *frame,
CcDisplayPanel *panel)
{
CcDisplayPanelPrivate *priv = panel->priv;
priv->rows_size_group = gtk_size_group_new (GTK_SIZE_GROUP_BOTH);
gtk_widget_destroy (gtk_bin_get_child (GTK_BIN (frame)));
gtk_container_add (GTK_CONTAINER (frame), make_output_ui (panel));
gtk_widget_show_all (frame);
g_clear_object (&priv->rows_size_group);
}
static guint