[gnome-control-center/gnome-3-8] region: Use view-more-symbolic for the "More" list item



commit 34cf9dc6d1e19dcfc2cbf8daef2d13c0de1aa256
Author: Rui Matos <tiagomatos gmail com>
Date:   Fri Mar 8 22:32:55 2013 +0100

    region: Use view-more-symbolic for the "More" list item
    
    We've had some early reports that the ellipsis used to label the
    "More" item in some of the lists isn't clear.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=694927

 panels/common/cc-language-chooser.c |   11 ++++++++++-
 panels/region/cc-format-chooser.c   |   11 ++++++++++-
 panels/region/cc-input-chooser.c    |    9 ++++++++-
 3 files changed, 28 insertions(+), 3 deletions(-)
---
diff --git a/panels/common/cc-language-chooser.c b/panels/common/cc-language-chooser.c
index 3b7fed3..ad5c420 100644
--- a/panels/common/cc-language-chooser.c
+++ b/panels/common/cc-language-chooser.c
@@ -164,9 +164,18 @@ static GtkWidget *
 more_widget_new (void)
 {
         GtkWidget *widget;
+        GtkWidget *arrow;
 
-        widget = padded_label_new ("…", FALSE);
+        widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
         gtk_widget_set_tooltip_text (widget, _("More…"));
+
+        arrow = gtk_image_new_from_icon_name ("view-more-symbolic", GTK_ICON_SIZE_MENU);
+        gtk_style_context_add_class (gtk_widget_get_style_context (arrow), "dim-label");
+        gtk_widget_set_margin_top (widget, 10);
+        gtk_widget_set_margin_bottom (widget, 10);
+        gtk_misc_set_alignment (GTK_MISC (arrow), 0.5, 0.5);
+        gtk_box_pack_start (GTK_BOX (widget), arrow, TRUE, TRUE, 0);
+
         return widget;
 }
 
diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index 381f38a..753dcf5 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -254,9 +254,18 @@ static GtkWidget *
 more_widget_new (void)
 {
         GtkWidget *widget;
+        GtkWidget *arrow;
 
-        widget = padded_label_new ("…", FALSE);
+        widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
         gtk_widget_set_tooltip_text (widget, _("More…"));
+
+        arrow = gtk_image_new_from_icon_name ("view-more-symbolic", GTK_ICON_SIZE_MENU);
+        gtk_style_context_add_class (gtk_widget_get_style_context (arrow), "dim-label");
+        gtk_widget_set_margin_top (widget, 10);
+        gtk_widget_set_margin_bottom (widget, 10);
+        gtk_misc_set_alignment (GTK_MISC (arrow), 0.5, 0.5);
+        gtk_box_pack_start (GTK_BOX (widget), arrow, TRUE, TRUE, 0);
+
         return widget;
 }
 
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index d48c311..f0f0942 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -166,10 +166,17 @@ static GtkWidget *
 more_widget_new (void)
 {
   GtkWidget *widget;
+  GtkWidget *arrow;
 
-  widget = padded_label_new ("…", ROW_LABEL_POSITION_CENTER, ROW_TRAVEL_DIRECTION_NONE, FALSE);
+  widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 0);
   gtk_widget_set_tooltip_text (widget, _("More…"));
 
+  arrow = gtk_image_new_from_icon_name ("view-more-symbolic", GTK_ICON_SIZE_MENU);
+  gtk_style_context_add_class (gtk_widget_get_style_context (arrow), "dim-label");
+  set_row_widget_margins (arrow);
+  gtk_misc_set_alignment (GTK_MISC (arrow), 0.5, 0.5);
+  gtk_box_pack_start (GTK_BOX (widget), arrow, TRUE, TRUE, 0);
+
   return widget;
 }
 


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