aboutsummaryrefslogtreecommitdiffstats
path: root/lib/widgets
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-02-03 14:09:21 +0800
committerDiego Escalante Urrelo <diegoe@igalia.com>2012-02-08 04:23:19 +0800
commit0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf (patch)
treee535542ec08184685ad1d2b55a9c6e5263356cae /lib/widgets
parent1c462408c99753b53571a4ead4b1196d1101089e (diff)
downloadgsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar.gz
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar.bz2
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar.lz
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar.xz
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.tar.zst
gsoc2013-epiphany-0bcf4b4861d5e6fbc56ea8d87e2d367c9ba165bf.zip
ephy-search-entry: use symbolic clear icon
Instead of gtk+ stock icon, use the symbolic version. Respects LTR/RTL. https://bugzilla.gnome.org/show_bug.cgi?id=669131
Diffstat (limited to 'lib/widgets')
-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);