[gnome-initial-setup] Use view-more-symbolic for the "More" list item
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] Use view-more-symbolic for the "More" list item
- Date: Tue, 23 Apr 2013 15:29:11 +0000 (UTC)
commit 5b69c130fcefed93f349283032358b9b267a1dd8
Author: Rui Matos <tiagomatos gmail com>
Date: Thu Apr 18 21:00:04 2013 +0200
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=691846
.../pages/keyboard/cc-input-chooser.c | 9 ++++++++-
.../pages/language/cc-language-chooser.c | 14 +++++++++++---
2 files changed, 19 insertions(+), 4 deletions(-)
---
diff --git a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
index f30892e..b37cd23 100644
--- a/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
+++ b/gnome-initial-setup/pages/keyboard/cc-input-chooser.c
@@ -165,10 +165,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;
}
diff --git a/gnome-initial-setup/pages/language/cc-language-chooser.c
b/gnome-initial-setup/pages/language/cc-language-chooser.c
index 2a17857..0bf396a 100644
--- a/gnome-initial-setup/pages/language/cc-language-chooser.c
+++ b/gnome-initial-setup/pages/language/cc-language-chooser.c
@@ -91,7 +91,6 @@ padded_label_new (char *text)
gtk_widget_set_margin_top (widget, 10);
gtk_widget_set_margin_bottom (widget, 10);
gtk_box_pack_start (GTK_BOX (widget), gtk_label_new (text), FALSE, FALSE, 0);
- gtk_widget_show_all (widget);
return widget;
}
@@ -176,9 +175,18 @@ static GtkWidget *
more_widget_new (void)
{
GtkWidget *widget;
+ GtkWidget *arrow;
- widget = padded_label_new ("…");
+ 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;
}
@@ -219,7 +227,7 @@ add_languages (CcLanguageChooser *chooser,
gtk_container_add (GTK_CONTAINER (priv->language_list), priv->more_item);
gtk_container_add (GTK_CONTAINER (priv->language_list), priv->no_results);
- gtk_widget_show (priv->language_list);
+ gtk_widget_show_all (priv->language_list);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]