[epiphany] ephy-find-toolbar: Use the new support for RTL icons in GtkIconTheme
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-find-toolbar: Use the new support for RTL icons in GtkIconTheme
- Date: Mon, 7 Jul 2014 12:45:38 +0000 (UTC)
commit bda25de084b0b18efe27b483b73b5d626162a691
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Fri May 23 00:27:21 2014 +0300
ephy-find-toolbar: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=730598
embed/ephy-find-toolbar.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/embed/ephy-find-toolbar.c b/embed/ephy-find-toolbar.c
index 1d09a85..20553e8 100644
--- a/embed/ephy-find-toolbar.c
+++ b/embed/ephy-find-toolbar.c
@@ -94,7 +94,6 @@ set_status (EphyFindToolbar *toolbar,
EphyFindToolbarPrivate *priv = toolbar->priv;
const char *icon_name = "edit-find-symbolic";
const char *tooltip = NULL;
- gboolean rtl;
switch (result)
{
@@ -107,8 +106,7 @@ set_status (EphyFindToolbar *toolbar,
break;
case EPHY_FIND_RESULT_FOUNDWRAPPED:
- rtl = gtk_widget_get_direction (GTK_WIDGET (toolbar)) == GTK_TEXT_DIR_RTL;
- icon_name = rtl ? "view-wrapped-rtl-symbolic" : "view-wrapped-symbolic";
+ icon_name = "view-wrapped-symbolic";
tooltip = _("Search wrapped back to the top");
break;
}
@@ -401,10 +399,7 @@ search_entry_changed_cb (GtkEntry *entry,
if (str == NULL || *str == '\0') {
primary_icon_name = "edit-find-symbolic";
} else {
- if (gtk_widget_get_direction (GTK_WIDGET (entry)) == GTK_TEXT_DIR_RTL)
- secondary_icon_name = "edit-clear-rtl-symbolic";
- else
- secondary_icon_name = "edit-clear-symbolic";
+ secondary_icon_name = "edit-clear-symbolic";
secondary_active = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]