[vinagre] Removed password length limit for SSH connections.
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Removed password length limit for SSH connections.
- Date: Sat, 22 May 2010 11:18:30 +0000 (UTC)
commit e0721cd7c31291142117ec39da75d48ec4940db8
Author: Jonh Wendell <jwendell gnome org>
Date: Sat May 22 08:17:38 2010 -0300
Removed password length limit for SSH connections.
data/vinagre.ui | 1 -
plugins/vnc/vinagre-vnc-tab.c | 1 +
vinagre/vinagre-ssh.c | 1 +
vinagre/vinagre-utils.c | 2 ++
vinagre/vinagre-utils.h | 1 +
5 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/data/vinagre.ui b/data/vinagre.ui
index d2d17bf..0841e17 100644
--- a/data/vinagre.ui
+++ b/data/vinagre.ui
@@ -385,7 +385,6 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
- <property name="max_length">8</property>
<property name="visibility">False</property>
<property name="activates_default">True</property>
</object>
diff --git a/plugins/vnc/vinagre-vnc-tab.c b/plugins/vnc/vinagre-vnc-tab.c
index 70c8f81..6d84143 100644
--- a/plugins/vnc/vinagre-vnc-tab.c
+++ b/plugins/vnc/vinagre-vnc-tab.c
@@ -509,6 +509,7 @@ vnc_authentication_cb (VncDisplay *vnc, GValueArray *credList, VinagreVncTab *vn
host,
need_username,
need_password,
+ 8,
&username,
&password,
&save_in_keyring))
diff --git a/vinagre/vinagre-ssh.c b/vinagre/vinagre-ssh.c
index 0d59ed9..7a5afc8 100644
--- a/vinagre/vinagre-ssh.c
+++ b/vinagre/vinagre-ssh.c
@@ -428,6 +428,7 @@ handle_login (GtkWindow *parent,
full_host,
FALSE,
TRUE,
+ 0,
NULL,
&password,
&save_in_keyring);
diff --git a/vinagre/vinagre-utils.c b/vinagre/vinagre-utils.c
index 0b00045..0f80e90 100644
--- a/vinagre/vinagre-utils.c
+++ b/vinagre/vinagre-utils.c
@@ -631,6 +631,7 @@ vinagre_utils_ask_credential (GtkWindow *parent,
gchar *host,
gboolean need_username,
gboolean need_password,
+ gint password_limit,
gchar **username,
gchar **password,
gboolean *save_in_keyring)
@@ -688,6 +689,7 @@ vinagre_utils_ask_credential (GtkWindow *parent,
if (need_password)
{
+ gtk_entry_set_max_length (GTK_ENTRY (control.pw), password_limit);
if (password && *password)
gtk_entry_set_text (GTK_ENTRY (control.pw), *password);
}
diff --git a/vinagre/vinagre-utils.h b/vinagre/vinagre-utils.h
index 146dac2..8f75df3 100644
--- a/vinagre/vinagre-utils.h
+++ b/vinagre/vinagre-utils.h
@@ -77,6 +77,7 @@ gboolean vinagre_utils_ask_credential (GtkWindow *parent,
gchar *host,
gboolean need_username,
gboolean need_password,
+ gint password_limit,
gchar **username,
gchar **password,
gboolean *save_in_keyring);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]