[vinagre/plugin] Implement get_default_port() function
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Subject: [vinagre/plugin] Implement get_default_port() function
- Date: Fri, 24 Jul 2009 14:16:04 +0000 (UTC)
commit 99c757c69ddba8eda8b18ee7514df45b2d7a41cf
Author: Jonh Wendell <jwendell gnome org>
Date: Fri Jul 24 09:52:18 2009 -0300
Implement get_default_port() function
plugins/vnc/vinagre-vnc-plugin.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
index e9954cd..b425c2a 100644
--- a/plugins/vnc/vinagre-vnc-plugin.c
+++ b/plugins/vnc/vinagre-vnc-plugin.c
@@ -235,6 +235,12 @@ impl_get_connect_widget (VinagrePlugin *plugin, VinagreConnection *conn)
return box;
}
+static gint
+impl_get_default_port (VinagrePlugin *plugin)
+{
+ return 5900;
+}
+
static void
vinagre_vnc_plugin_init (VinagreVncPlugin *plugin)
{
@@ -268,5 +274,6 @@ vinagre_vnc_plugin_class_init (VinagreVncPluginClass *klass)
plugin_class->get_mdns_service = impl_get_mdns_service;
plugin_class->new_tab = impl_new_tab;
plugin_class->get_connect_widget = impl_get_connect_widget;
+ plugin_class->get_default_port = impl_get_default_port;
}
/* vim: set ts=8: */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]