[gnome-control-center] wacom: 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] wacom: Use the new support for RTL icons in GtkIconTheme
- Date: Fri, 23 May 2014 09:41:40 +0000 (UTC)
commit c5f868994bae550246b2af1861a9ddeddc9174bc
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Fri May 23 12:31:53 2014 +0300
wacom: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730597
panels/wacom/cc-wacom-nav-button.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-nav-button.c b/panels/wacom/cc-wacom-nav-button.c
index 74ef8da..3cdb99a 100644
--- a/panels/wacom/cc-wacom-nav-button.c
+++ b/panels/wacom/cc-wacom-nav-button.c
@@ -210,9 +210,6 @@ cc_wacom_nav_button_init (CcWacomNavButton *self)
CcWacomNavButtonPrivate *priv;
GtkStyleContext *context;
GtkWidget *image, *box;
- gboolean rtl;
-
- rtl = (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL);
priv = self->priv = WACOM_NAV_BUTTON_PRIVATE (self);
@@ -230,8 +227,7 @@ cc_wacom_nav_button_init (CcWacomNavButton *self)
/* Prev button */
priv->prev = gtk_button_new ();
- image = gtk_image_new_from_icon_name (rtl ? "go-previous-rtl-symbolic" : "go-previous-symbolic",
- GTK_ICON_SIZE_MENU);
+ image = gtk_image_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (priv->prev), image);
g_signal_connect (G_OBJECT (priv->prev), "clicked",
G_CALLBACK (prev_clicked), self);
@@ -239,8 +235,7 @@ cc_wacom_nav_button_init (CcWacomNavButton *self)
/* Next button */
priv->next = gtk_button_new ();
- image = gtk_image_new_from_icon_name (rtl ? "go-next-rtl-symbolic" : "go-next-symbolic",
- GTK_ICON_SIZE_MENU);
+ image = gtk_image_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_MENU);
gtk_container_add (GTK_CONTAINER (priv->next), image);
g_signal_connect (G_OBJECT (priv->next), "clicked",
G_CALLBACK (next_clicked), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]