[gnome-commander] Improved info message for password dialog
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Improved info message for password dialog
- Date: Sun, 10 May 2015 20:52:31 +0000 (UTC)
commit 43635bc48a7711dc54e2e8cf6e33b80aca1b5903
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun May 10 22:21:47 2015 +0200
Improved info message for password dialog
src/gnome-cmd-con.cc | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/gnome-cmd-con.cc b/src/gnome-cmd-con.cc
index bd6b3ed..0d6b4c2 100644
--- a/src/gnome-cmd-con.cc
+++ b/src/gnome-cmd-con.cc
@@ -700,15 +700,10 @@ const char* GnomeCmdCon::gnome_cmd_con_set_password()
#endif
GnomeVFSURI *urivfs = gnome_vfs_uri_new (uri);
- const gchar *user_name = gnome_vfs_uri_get_user_name (urivfs);
- const gchar *server = gnome_vfs_uri_get_host_name (urivfs);
- gchar *con_string = NULL;
- con_string = g_strdup_printf("%s %s:",user_name,server);
- label = gtk_label_new (con_string);
+ label = gtk_label_new (gnome_vfs_uri_to_string (urivfs, GNOME_VFS_URI_HIDE_NONE));
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.0);
gtk_table_attach_defaults (GTK_TABLE (table), label, 0, 2, 0, 1);
- g_free(con_string);
entry = gtk_entry_new ();
g_object_set_data (G_OBJECT (dialog), "password", entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]