soc.2009.telepathy: c9e4e721: Set BypassApproval to True for the Clien...

sttwister at soc.pidgin.im sttwister at soc.pidgin.im
Mon Jul 27 15:50:21 EDT 2009


-----------------------------------------------------------------
Revision: c9e4e721f0179e2a7066fbcb375360c1a7a3654b
Ancestor: 11a396f8c3e8e15939424f31175dcc877ad70112
Author: sttwister at soc.pidgin.im
Date: 2009-07-27T19:46:44
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/c9e4e721f0179e2a7066fbcb375360c1a7a3654b

Modified files:
        libpurple/protocols/telepathy/telepathy_client.c

ChangeLog: 

Set BypassApproval to True for the Client.Handler interface

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy_client.c	916a1b0837a864a10e6318c0102c078ebfde2099
+++ libpurple/protocols/telepathy/telepathy_client.c	75c2f4000e15abd414481203bd4bc3abd6ae7127
@@ -76,6 +76,7 @@ enum
 {
 	PROP_INTERFACES = 1,
 	PROP_CHANNEL_FILTER,
+	PROP_BYPASS_APPROVAL,
 	PROP_CHANNELS
 };
 
@@ -166,6 +167,13 @@ client_get_property (GObject *object,
 			break;
 		}
 
+		case PROP_BYPASS_APPROVAL:
+		{
+			g_value_set_boolean (value, TRUE);
+
+			break;
+		}
+
 		case PROP_CHANNELS:
 		{
 			GPtrArray *accounts;
@@ -215,6 +223,7 @@ telepathy_client_class_init (TelepathyCl
 	};
 	static TpDBusPropertiesMixinPropImpl client_handler_props[] = {
 		{ "HandlerChannelFilter", "channel-filter", NULL, NULL, NULL, NULL },
+		{ "BypassApproval", "bypass-approval", NULL, NULL, NULL, NULL },
 		{ "HandledChannels", "channels", NULL, NULL, NULL, NULL },
 		{ NULL, NULL, NULL, NULL, NULL, NULL }
 	};
@@ -260,6 +269,13 @@ telepathy_client_class_init (TelepathyCl
 	g_object_class_install_property (object_class,
 		PROP_CHANNEL_FILTER, param_spec);
 
+	param_spec = g_param_spec_boolean ("bypass-approval", "bypass-approval",
+		"Ignore approvers and automatically handle channels",
+		TRUE,
+		G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
+	g_object_class_install_property (object_class,
+		PROP_BYPASS_APPROVAL, param_spec);
+
 	param_spec = g_param_spec_boxed ("channels", "channels",
 		"List of channels we're handling",
 		TELEPATHY_ARRAY_TYPE_OBJECT, // FIXME: What type is this???


More information about the Commits mailing list