[nautilus] batch-rename-dialog: Use right arrow for RTL
- From: Alexandru-Ionut Pandelea <alexpandelea src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] batch-rename-dialog: Use right arrow for RTL
- Date: Thu, 8 Sep 2016 18:53:24 +0000 (UTC)
commit 3caf963c2cf84c30317105d9b6247fce17581e71
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Wed Sep 7 13:16:06 2016 +0300
batch-rename-dialog: Use right arrow for RTL
The arrow used in the listbox should be „←” instead of „→” for RTL
https://bugzilla.gnome.org/show_bug.cgi?id=770942
src/nautilus-batch-rename-dialog.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index 902879d..b5eb422 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -1019,7 +1019,11 @@ create_arrow_row_for_label (NautilusBatchRenameDialog *dialog,
g_object_set_data (G_OBJECT (row), "show-separator", GINT_TO_POINTER (show_separator));
- icon = gtk_label_new ("→");
+ if (gtk_widget_get_direction (row) == GTK_TEXT_DIR_RTL)
+ icon = gtk_label_new ("←");
+ else
+ icon = gtk_label_new ("→");
+
gtk_label_set_xalign (GTK_LABEL (icon), 1.0);
gtk_widget_set_hexpand (icon, FALSE);
gtk_widget_set_margin_start (icon, ROW_MARGIN_START);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]