[nautilus] connect-server-dialog: Use the new support for RTL icons in GtkIconTheme
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] connect-server-dialog: Use the new support for RTL icons in GtkIconTheme
- Date: Mon, 2 Jun 2014 17:40:34 +0000 (UTC)
commit 3950e65038de3631bfe3ae927d98ce498dba2be0
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Mon Jun 2 18:10:22 2014 +0300
connect-server-dialog: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=731110
src/nautilus-connect-server-dialog.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/src/nautilus-connect-server-dialog.c b/src/nautilus-connect-server-dialog.c
index 4a0f60c..6d53fc1 100644
--- a/src/nautilus-connect-server-dialog.c
+++ b/src/nautilus-connect-server-dialog.c
@@ -235,13 +235,10 @@ static void
check_uri_entry (NautilusConnectServerDialog *dialog)
{
guint length;
- gboolean rtl;
gboolean button_active = FALSE;
gboolean icon_active = FALSE;
const char *text = NULL;
- rtl = gtk_widget_get_direction (GTK_WIDGET (dialog)) == GTK_TEXT_DIR_RTL;
-
length = gtk_entry_get_text_length (GTK_ENTRY (dialog->details->uri_entry));
if (length > 0) {
GError *error = NULL;
@@ -260,8 +257,7 @@ check_uri_entry (NautilusConnectServerDialog *dialog)
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog), GTK_RESPONSE_OK, button_active);
g_object_set (dialog->details->uri_entry,
- "secondary-icon-name", icon_active ? (rtl ? "edit-clear-rtl-symbolic" :
- "edit-clear-symbolic") : NULL,
+ "secondary-icon-name", icon_active ? ("edit-clear-symbolic") : NULL,
"secondary-icon-activatable", icon_active,
"secondary-icon-sensitive", icon_active,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]