[gnome-commander] Removed gtk_widget for storing the connection password; bgo#653573
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Removed gtk_widget for storing the connection password; bgo#653573
- Date: Mon, 4 May 2015 15:39:29 +0000 (UTC)
commit 8d3f6909ab4d56a89116a7479b8a5c237e15445e
Author: Uwe Scholz <uwescholz src gnome org>
Date: Mon May 4 17:39:12 2015 +0200
Removed gtk_widget for storing the connection password; bgo#653573
src/dialogs/gnome-cmd-con-dialog.cc | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-con-dialog.cc b/src/dialogs/gnome-cmd-con-dialog.cc
index e9238b9..ccfb5b1 100644
--- a/src/dialogs/gnome-cmd-con-dialog.cc
+++ b/src/dialogs/gnome-cmd-con-dialog.cc
@@ -78,7 +78,6 @@ struct GnomeCmdConnectDialog::Private
GtkWidget *folder_entry;
GtkWidget *domain_entry;
GtkWidget *user_entry;
- GtkWidget *password_entry;
Private();
~Private();
@@ -108,7 +107,6 @@ inline GnomeCmdConnectDialog::Private::Private()
folder_entry = gtk_entry_new ();
domain_entry = gtk_entry_new ();
user_entry = gtk_entry_new ();
- password_entry = gtk_entry_new ();
gtk_entry_set_activates_default (GTK_ENTRY (alias_entry), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (uri_entry), TRUE);
@@ -117,9 +115,6 @@ inline GnomeCmdConnectDialog::Private::Private()
gtk_entry_set_activates_default (GTK_ENTRY (port_entry), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (folder_entry), TRUE);
gtk_entry_set_activates_default (GTK_ENTRY (user_entry), TRUE);
- gtk_entry_set_activates_default (GTK_ENTRY (password_entry), TRUE);
-
- gtk_entry_set_visibility (GTK_ENTRY (password_entry), FALSE);
// We need an extra ref so we can remove them from the table
g_object_ref (alias_entry);
@@ -130,7 +125,6 @@ inline GnomeCmdConnectDialog::Private::Private()
g_object_ref (folder_entry);
g_object_ref (domain_entry);
g_object_ref (user_entry);
- g_object_ref (password_entry);
}
@@ -144,7 +138,6 @@ inline GnomeCmdConnectDialog::Private::~Private()
g_object_unref (folder_entry);
g_object_unref (domain_entry);
g_object_unref (user_entry);
- g_object_unref (password_entry);
delete alias;
}
@@ -180,9 +173,6 @@ void GnomeCmdConnectDialog::Private::setup_for_type()
if (user_entry->parent)
gtk_container_remove (GTK_CONTAINER (optional_table), user_entry);
- if (password_entry->parent)
- gtk_container_remove (GTK_CONTAINER (optional_table), password_entry);
-
if (domain_entry->parent)
gtk_container_remove (GTK_CONTAINER (optional_table), domain_entry);
@@ -275,9 +265,6 @@ void GnomeCmdConnectDialog::Private::setup_for_type()
if (show_user)
show_entry (table, user_entry, _("_User name:"), i);
- if (!gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (auth_check)) && type!=CON_ANON_FTP)
- show_entry (table, password_entry, _("_Password:"), i);
-
if (show_domain)
show_entry (table, domain_entry, _("_Domain name:"), i);
}
@@ -330,10 +317,6 @@ inline gboolean GnomeCmdConnectDialog::verify_uri()
if (priv->user_entry->parent)
stringify (user, gtk_editable_get_chars (GTK_EDITABLE (priv->user_entry), 0, -1));
- //HERE we should arrange using the implemented password dialog instead of password_entry
- if (priv->password_entry->parent)
- stringify (password, gtk_editable_get_chars (GTK_EDITABLE (priv->password_entry), 0, -1));
-
int type = gtk_combo_box_get_active (GTK_COMBO_BOX (priv->type_combo));
if (type!=CON_URI && server.empty())
@@ -608,7 +591,6 @@ gboolean gnome_cmd_connect_dialog_edit (GnomeCmdConRemote *server)
const gchar *path = gnome_vfs_uri_get_path (uri);
const gchar *user_name = gnome_vfs_uri_get_user_name (uri);
- const gchar *password = gnome_vfs_uri_get_password (uri);
guint port = gnome_vfs_uri_get_host_port (uri);
#ifdef HAVE_SAMBA
@@ -647,9 +629,6 @@ gboolean gnome_cmd_connect_dialog_edit (GnomeCmdConRemote *server)
}
#endif
- if (password)
- gtk_entry_set_text (GTK_ENTRY (dialog->priv->password_entry), password);
-
if (port)
gtk_entry_set_text (GTK_ENTRY (dialog->priv->port_entry), stringify(port).c_str());
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]