aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/widgets/ephy-search-entry.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/widgets/ephy-search-entry.c b/lib/widgets/ephy-search-entry.c
index 2fb28e009..2a5e971e6 100644
--- a/lib/widgets/ephy-search-entry.c
+++ b/lib/widgets/ephy-search-entry.c
@@ -145,11 +145,15 @@ search_entry_clear_cb (GtkWidget *entry,
static void
ephy_search_entry_init (EphySearchEntry *entry)
{
+ gboolean ltr;
+
entry->priv = EPHY_SEARCH_ENTRY_GET_PRIVATE (entry);
+ ltr = gtk_widget_get_default_direction () == GTK_TEXT_DIR_LTR;
- gtk_entry_set_icon_from_stock (GTK_ENTRY (entry),
- GTK_ENTRY_ICON_SECONDARY,
- GTK_STOCK_CLEAR);
+ gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry),
+ GTK_ENTRY_ICON_SECONDARY,
+ ltr ? "edit-clear-symbolic" :
+ "edit-clear-rtl-symbolic");
gtk_entry_set_icon_activatable (GTK_ENTRY (entry),
GTK_ENTRY_ICON_SECONDARY,
TRUE);