[gnome-initial-setup] language: Make the More button have more padding
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup] language: Make the More button have more padding
- Date: Thu, 17 Jan 2013 21:36:25 +0000 (UTC)
commit b405f039a93f996f55dfb93d57231a9a3beed3fa
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 17 15:35:50 2013 -0500
language: Make the More button have more padding
.../pages/language/gis-language-page.c | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
---
diff --git a/gnome-initial-setup/pages/language/gis-language-page.c b/gnome-initial-setup/pages/language/gis-language-page.c
index 80273eb..614c002 100644
--- a/gnome-initial-setup/pages/language/gis-language-page.c
+++ b/gnome-initial-setup/pages/language/gis-language-page.c
@@ -127,6 +127,18 @@ use_language (char *locale_id)
}
static GtkWidget *
+padded_label_new (char *text)
+{
+ GtkWidget *widget;
+ widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
+ gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
+ 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);
+ return widget;
+}
+
+static GtkWidget *
language_widget_new (char *locale_id,
gboolean is_extra)
{
@@ -137,11 +149,7 @@ language_widget_new (char *locale_id,
locale_name = use_language (locale_id);
setlocale (LC_MESSAGES, current_locale_id);
- widget = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
- gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
- gtk_widget_set_margin_top (widget, 10);
- gtk_widget_set_margin_bottom (widget, 10);
- gtk_box_pack_start (GTK_BOX (widget), gtk_label_new (locale_name), FALSE, FALSE, 0);
+ widget = padded_label_new (locale_name);
if (g_strcmp0 (locale_id, current_locale_id) == 0)
{
@@ -161,7 +169,7 @@ language_widget_new (char *locale_id,
static GtkWidget *
more_widget_new (void)
{
- GtkWidget *widget = gtk_label_new ("â");
+ GtkWidget *widget = padded_label_new ("â");
gtk_widget_set_tooltip_text (widget, _("Moreâ"));
return widget;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]