[nautilus] location-entry: Use the new support for RTL icons in GtkIconTheme



commit fd1cbfb2cd662ebf2ac6b1cd0caaf7da261aed5d
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Mon Jun 2 18:10:48 2014 +0300

    location-entry: Use the new support for RTL icons in GtkIconTheme
    
    https://bugzilla.gnome.org/show_bug.cgi?id=731110

 src/nautilus-location-entry.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-location-entry.c b/src/nautilus-location-entry.c
index 7aa8a77..956a2af 100644
--- a/src/nautilus-location-entry.c
+++ b/src/nautilus-location-entry.c
@@ -655,24 +655,20 @@ void
 nautilus_location_entry_set_secondary_action (NautilusLocationEntry *entry,
                                              NautilusLocationEntryAction secondary_action)
 {
-       gboolean rtl;
-
        if (entry->details->secondary_action == secondary_action) {
                return;
        }
 
-       rtl = gtk_widget_get_direction (GTK_WIDGET (entry)) == GTK_TEXT_DIR_RTL;
-
        switch (secondary_action) {
        case NAUTILUS_LOCATION_ENTRY_ACTION_CLEAR:
                gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry), 
                                                   GTK_ENTRY_ICON_SECONDARY,
-                                                  rtl ? "edit-clear-rtl-symbolic" : "edit-clear-symbolic");
+                                                  "edit-clear-symbolic");
                break;
        case NAUTILUS_LOCATION_ENTRY_ACTION_GOTO:
                gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
                                                   GTK_ENTRY_ICON_SECONDARY,
-                                                  rtl ? "go-next-rtl-symbolic" : "go-next-symbolic");
+                                                  "go-next-symbolic");
                break;
        default:
                g_assert_not_reached ();


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