[gnome-control-center] region: Use the new support for RTL icons in GtkIconTheme
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] region: Use the new support for RTL icons in GtkIconTheme
- Date: Fri, 23 May 2014 09:41:30 +0000 (UTC)
commit 4d403f4a8b8716952298b490f477558281854d72
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Fri May 23 12:31:36 2014 +0300
region: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
panels/region/cc-input-chooser.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index eea7340..f54f391 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -120,9 +120,6 @@ padded_label_new (const gchar *text,
GtkWidget *label;
GtkWidget *arrow;
gdouble alignment;
- gboolean rtl;
-
- rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
if (position == ROW_LABEL_POSITION_START)
alignment = 0.0;
@@ -135,8 +132,7 @@ padded_label_new (const gchar *text,
if (direction == ROW_TRAVEL_DIRECTION_BACKWARD)
{
- arrow = gtk_image_new_from_icon_name (rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic",
- GTK_ICON_SIZE_MENU);
+ arrow = gtk_image_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_start (GTK_BOX (widget), arrow, FALSE, TRUE, 0);
}
@@ -149,8 +145,7 @@ padded_label_new (const gchar *text,
if (direction == ROW_TRAVEL_DIRECTION_FORWARD)
{
- arrow = gtk_image_new_from_icon_name (rtl ? "go-next-rtl-symbolic" : "go-next-symbolic",
- GTK_ICON_SIZE_MENU);
+ arrow = gtk_image_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_MENU);
gtk_box_pack_start (GTK_BOX (widget), arrow, FALSE, TRUE, 0);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]