From a9fe7c42ed45cbd9e312ad231f4ec20a9f06fcf9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 17 Jun 2008 10:43:33 +0000 Subject: [PATCH] 2008-06-17 Dan Williams * libnm-glib/nm-vpn-plugin-ui-interface.c libnm-glib/nm-vpn-plugin-ui-interface.h - Add "desc" property for longer descriptions of the VPN plugin git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3756 4912f4e0-d625-0410-9fb7-b9a5a253dbdc --- ChangeLog | 6 ++++++ libnm-glib/nm-vpn-plugin-ui-interface.c | 7 +++++++ libnm-glib/nm-vpn-plugin-ui-interface.h | 6 +++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d5a74c8923..ebc25c501d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-06-17 Dan Williams + + * libnm-glib/nm-vpn-plugin-ui-interface.c + libnm-glib/nm-vpn-plugin-ui-interface.h + - Add "desc" property for longer descriptions of the VPN plugin + 2008-06-16 Dan Williams * configure.in diff --git a/libnm-glib/nm-vpn-plugin-ui-interface.c b/libnm-glib/nm-vpn-plugin-ui-interface.c index a076ba073c..812d4197b9 100644 --- a/libnm-glib/nm-vpn-plugin-ui-interface.c +++ b/libnm-glib/nm-vpn-plugin-ui-interface.c @@ -38,6 +38,13 @@ interface_init (gpointer g_iface) NULL, G_PARAM_READABLE)); + g_object_interface_install_property (g_iface, + g_param_spec_string (NM_VPN_PLUGIN_UI_INTERFACE_DESC, + "Desc", + "VPN Plugin description", + NULL, + G_PARAM_READABLE)); + g_object_interface_install_property (g_iface, g_param_spec_string (NM_VPN_PLUGIN_UI_INTERFACE_SERVICE, "Service", diff --git a/libnm-glib/nm-vpn-plugin-ui-interface.h b/libnm-glib/nm-vpn-plugin-ui-interface.h index 55eddabba2..b1a5cfd091 100644 --- a/libnm-glib/nm-vpn-plugin-ui-interface.h +++ b/libnm-glib/nm-vpn-plugin-ui-interface.h @@ -51,9 +51,12 @@ NMVpnPluginUiInterface *nm_vpn_plugin_ui_factory (GError **error); #define NM_VPN_PLUGIN_UI_CAPABILITY_IMPORT 0x01 #define NM_VPN_PLUGIN_UI_CAPABILITY_EXPORT 0x02 -/* Display name of the VPN plugin */ +/* Short display name of the VPN plugin */ #define NM_VPN_PLUGIN_UI_INTERFACE_NAME "name" +/* Longer description of the the VPN plugin */ +#define NM_VPN_PLUGIN_UI_INTERFACE_DESC "desc" + /* D-Bus service name of the plugin's VPN service */ #define NM_VPN_PLUGIN_UI_INTERFACE_SERVICE "service" @@ -61,6 +64,7 @@ typedef enum { NM_VPN_PLUGIN_UI_INTERFACE_PROP_FIRST = 0x1000, NM_VPN_PLUGIN_UI_INTERFACE_PROP_NAME = NM_VPN_PLUGIN_UI_INTERFACE_PROP_FIRST, + NM_VPN_PLUGIN_UI_INTERFACE_PROP_DESC, NM_VPN_PLUGIN_UI_INTERFACE_PROP_SERVICE } NMVpnPluginUiInterfaceProp;