[gnome-control-center/gnome-3-8] region: Make format chooser centered



commit 590335847d8172189e1e6673a3602d6fdc6ca20b
Author: William Jon McCann <jmccann redhat com>
Date:   Wed Feb 20 19:05:26 2013 -0500

    region: Make format chooser centered
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694323

 panels/region/cc-format-chooser.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index a52bf0f..5a8b41d 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -159,7 +159,7 @@ set_locale_id (GtkDialog   *chooser,
                         gboolean is_extra;
 
                         /* mark as selected */
-                        gtk_image_set_from_icon_name (GTK_IMAGE (check), "object-select-symbolic", 
GTK_ICON_SIZE_MENU);
+                        gtk_widget_show (check);
 
                         /* make sure this row is shown */
                         is_extra = GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (row), "is-extra"));
@@ -172,6 +172,7 @@ set_locale_id (GtkDialog   *chooser,
                         /* mark as unselected */
                         gtk_image_clear (GTK_IMAGE (check));
                         g_object_set (check, "icon-size", GTK_ICON_SIZE_MENU, NULL);
+                        gtk_widget_hide (check);
                 }
         }
         g_list_free (children);
@@ -234,6 +235,8 @@ region_widget_new (const gchar *locale_id,
         widget = padded_label_new (locale_name, is_extra);
 
         check = gtk_image_new ();
+        gtk_image_set_from_icon_name (GTK_IMAGE (check), "object-select-symbolic", GTK_ICON_SIZE_MENU);
+        gtk_widget_set_no_show_all (check, TRUE);
         g_object_set (check, "icon-size", GTK_ICON_SIZE_MENU, NULL);
         gtk_box_pack_start (GTK_BOX (widget), check, FALSE, FALSE, 0);
 


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