[gnome-control-center] display: Make rows created for a new current output be the same size



commit 566b0c137cef86b1f3bcace709d6e3ee97847493
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Aug 23 17:14:16 2017 +0200

    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.

 panels/display/cc-display-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/display/cc-display-panel.c b/panels/display/cc-display-panel.c
index 0aaeb65..e8b3e6e 100644
--- a/panels/display/cc-display-panel.c
+++ b/panels/display/cc-display-panel.c
@@ -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


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