diff options
author | Yosef Or Boczko <yoseforb@src.gnome.org> | 2014-06-02 18:10:22 +0300 |
---|---|---|
committer | Yosef Or Boczko <yoseforb@src.gnome.org> | 2014-06-02 18:10:22 +0300 |
commit | 3950e65038de3631bfe3ae927d98ce498dba2be0 (patch) | |
tree | 86828456c4d19c3f109184973b035efe460e6bca | |
parent | 39dfeb2e477396a92168c376ed3a63d6ab4988be (diff) | |
download | nautilus-3950e65038de3631bfe3ae927d98ce498dba2be0.tar.gz |
connect-server-dialog: Use the new support for RTL icons in GtkIconTheme
https://bugzilla.gnome.org/show_bug.cgi?id=731110
-rw-r--r-- | 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 4a0f60cd2..6d53fc1cb 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); |