[vinagre] Use the new argument "known_protocol" where split_string() is used.



commit 28473cc47c463d3ce2d9f0d1b228de538472250b
Author: Jonh Wendell <jwendell gnome org>
Date:   Fri Jul 31 11:46:19 2009 -0300

    Use the new argument "known_protocol" where split_string() is used.

 vinagre/vinagre-bookmarks-ui.c |    1 +
 vinagre/vinagre-connect.c      |    7 ++++++-
 2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/vinagre/vinagre-bookmarks-ui.c b/vinagre/vinagre-bookmarks-ui.c
index 1249123..71fdbf6 100644
--- a/vinagre/vinagre-bookmarks-ui.c
+++ b/vinagre/vinagre-bookmarks-ui.c
@@ -207,6 +207,7 @@ show_dialog_conn (VinagreBookmarks      *book,
 	}
 
       if (!vinagre_connection_split_string (gtk_entry_get_text (GTK_ENTRY (host_entry)),
+					    vinagre_connection_get_protocol (conn),
 					    &protocol,
 					    &host,
 					    &port,
diff --git a/vinagre/vinagre-connect.c b/vinagre/vinagre-connect.c
index 20737d1..3a30f26 100644
--- a/vinagre/vinagre-connect.c
+++ b/vinagre/vinagre-connect.c
@@ -423,7 +423,12 @@ VinagreConnection *vinagre_connect (VinagreWindow *window)
       g_free (protocol);
 
       conn = vinagre_plugin_new_connection (plugin);
-      if (vinagre_connection_split_string (host, &protocol, &actual_host, &port, &error_msg))
+      if (vinagre_connection_split_string (host,
+					   vinagre_connection_get_protocol (conn),
+					   &protocol,
+					   &actual_host,
+					   &port,
+					   &error_msg))
 	{
 	  g_object_set (conn,
 			"host", actual_host,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]