tomkiewicz | 20 May 21:30

soc.2012.gg: 7e7ded95: Making trunk usable: linkify incoming me...

----------------------------------------------------------------------
Revision: 7e7ded95fce2925f90c076c274edad16084b5032
Parent:   720d0db07edbddea10a65b20f03956e5f25033a6
Author:   tomkiewicz <at> cpw.pidgin.im
Date:     05/20/12 15:27:17
Branch:   im.pidgin.soc.2012.gg
URL: http://d.pidgin.im/viewmtn/revision/info/7e7ded95fce2925f90c076c274edad16084b5032

Changelog: 

Making trunk usable: linkify incoming messages

Changes against parent 720d0db07edbddea10a65b20f03956e5f25033a6

  patched  pidgin/gtkconv.c

============================================================
--- pidgin/gtkconv.c	f775baf0cb5998d792944cf0090b27300d78d40d
+++ pidgin/gtkconv.c	e540985f885b76b47743fa43c1dea2e387844239
@@ -6412,7 +6412,7 @@ pidgin_conv_write_conv(PurpleConversatio
 	}
 	gtkconv->last_flags = flags;

-	smileyed = smiley_parse_markup(message, purple_account_get_protocol_id(account));
+	smileyed = smiley_parse_markup(displaying, purple_account_get_protocol_id(account));
 	msg = replace_message_tokens(message_html, conv, name, alias, smileyed, flags, mtime);
 	escape = gtk_webview_quote_js_string(msg ? msg : "");
 	script = g_strdup_printf("%s(%s)", func, escape);
(Continue reading)

tomkiewicz | 20 May 21:10

soc.2012.gg: 720d0db0: Still making trunk usable again: correct...

----------------------------------------------------------------------
Revision: 720d0db07edbddea10a65b20f03956e5f25033a6
Parent:   211260edfa4a35e09f575202bae0b5a626e43ac8
Author:   tomkiewicz <at> cpw.pidgin.im
Date:     05/20/12 15:08:37
Branch:   im.pidgin.soc.2012.gg
URL: http://d.pidgin.im/viewmtn/revision/info/720d0db07edbddea10a65b20f03956e5f25033a6

Changelog: 

Still making trunk usable again: correctly display plaintext logs

Changes against parent 211260edfa4a35e09f575202bae0b5a626e43ac8

  patched  pidgin/gtklog.c

============================================================
--- pidgin/gtklog.c	44a45ba9d6fd6476019345d45e77fc6969b0bdfd
+++ pidgin/gtklog.c	4530456763f35bd74ef821f12b1d52383675155e
@@ -465,6 +465,14 @@ static void log_select_cb(GtkTreeSelecti
 	webkit_web_view_open(WEBKIT_WEB_VIEW(viewer->web_view), "about:blank");

 	purple_signal_emit(pidgin_log_get_handle(), "log-displaying", viewer, log);
+	
+	/* plaintext log (html one starts with <html> tag) */
+	if (read[0] != '<')
+	{
+		char *newRead = purple_strreplace(read, "\n", "<br>");
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: fcc1ef13: Turned the PurpleBlistNode struct fields...

----------------------------------------------------------------------
Revision: fcc1ef13e4e11d85b2d8d28e82b7e3cef8ddf6a8
Parent:   407f3aacc935ec70ff1ed472fe8d0b2e750b9a4b
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 11:58:00
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/fcc1ef13e4e11d85b2d8d28e82b7e3cef8ddf6a8

Changelog: 

Turned the PurpleBlistNode struct fields into GObject properties,
so that we can export them on D-Bus. I did not commit this to the
gobjectification branch because I think such a think would be
overkill, we only need it here for detachable sessions'sake.

Changes against parent 407f3aacc935ec70ff1ed472fe8d0b2e750b9a4b

  patched  libpurple/blist-node.c

============================================================
--- libpurple/blist-node.c	72110be4c24ca99c6589df824f20a5e7c9d12b03
+++ libpurple/blist-node.c	5032d81f233cbc07b621471351ff146b341258a1
@@ -690,7 +690,76 @@ static GObjectClass *parent_class = NULL

 static GObjectClass *parent_class = NULL;

+/* GObject Property enums */
+enum
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: ff0195be: Going multi-interface, adapted PurpleAcc...

----------------------------------------------------------------------
Revision: ff0195be20179f01429f6638940cb1d1ca2f0d6c
Parent:   a30254e0f9f7f16880b99a3f89a401f8724ed47b
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 10:55:56
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/ff0195be20179f01429f6638940cb1d1ca2f0d6c

Changelog: 

Going multi-interface, adapted PurpleAccount, PurpleConnection
and PurpleConstructor accordingly.

Changes against parent a30254e0f9f7f16880b99a3f89a401f8724ed47b

  patched  libpurple/dbus/account.c
  patched  libpurple/dbus/connection.c
  patched  libpurple/dbus/constructor.c

============================================================
--- libpurple/dbus/account.c	9a744e2c53f8f5d591c13dfb70bc1c2bc91297f5
+++ libpurple/dbus/account.c	1456b14216d2df5423193b78f98c157ca3e92a9d
@@ -193,12 +193,15 @@ purple_account_class_dbus_init(PurpleAcc
 	pobjclass->dbus_init = purple_account_dbus_init;
 	if (purple_core_is_daemon_mode()) {
 		pobjclass->build_dbus_path = purple_account_build_dbus_path;
-		purple_object_bind_dbus_callback(pobjclass, "Connect",
-		                                 (GCallback)purple_account_connect);
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: fad7a505: Fix: check whether a buddy have a name

----------------------------------------------------------------------
Revision: fad7a50592f4e344ee6ce2e893437a3ca336f75e
Parent:   13dfb068ec31357f7f41cfa9f7afe038849d14cd
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 13:09:19
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/fad7a50592f4e344ee6ce2e893437a3ca336f75e

Changelog: 

Fix: check whether a buddy have a name
before using it in its dbus path name.

Changes against parent 13dfb068ec31357f7f41cfa9f7afe038849d14cd

  patched  libpurple/dbus/buddy.c

============================================================
--- libpurple/dbus/buddy.c	fdd8c160ab086aa943275b529eaf577716117f1c
+++ libpurple/dbus/buddy.c	9b6d5e65ae2f6661f30f141a92bee34098122677
@@ -26,6 +26,7 @@
 #include "dbus/buddy.xml.h"
 #include "dbus-purple.h"
 #include "dbus-server.h"
+#include "pobject.h"

 static char *
 purple_buddy_build_dbus_path(PurpleObject *pobject)
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: fa6a30e4: Going multi-interface. Adapted the metho...

----------------------------------------------------------------------
Revision: fa6a30e4942a02af3502e6727997679f884aa588
Parent:   a0c45a2c7bf849466234579e0b626ab20cf26784
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 09:47:09
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/fa6a30e4942a02af3502e6727997679f884aa588

Changelog: 

Going multi-interface. Adapted the method caller function.
It now takes the target interface as parameter.

Changes against parent a0c45a2c7bf849466234579e0b626ab20cf26784

  patched  libpurple/dbus/constructor.c
  patched  libpurple/pobject.c
  patched  libpurple/pobject.h

============================================================
--- libpurple/pobject.c	7803fb7eecc509b1e1be27edc5099dd9598a3fbd
+++ libpurple/pobject.c	f20ab71494e9fdb10d64a043fb9d93aaf781918a
@@ -973,6 +973,32 @@ purple_object_generic_dbus_signal_subscr
 	while (child != PURPLE_TYPE_OBJECT && child != 0);
 }

+/* Looks for a GDBusInterfaceInfo named 'name' inside the PurpleObject 'pobj'. */
+static GDBusInterfaceInfo *
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: ee46c038: Little type fix.

----------------------------------------------------------------------
Revision: ee46c03811ee526a9809bfbb9029f8106ca7d637
Parent:   7fc0ebb5906f481978c6e77c0a216d7c7222aa70
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 11:38:54
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/ee46c03811ee526a9809bfbb9029f8106ca7d637

Changelog: 

Little type fix.

Changes against parent 7fc0ebb5906f481978c6e77c0a216d7c7222aa70

  patched  libpurple/dbus/constructor.c

============================================================
--- libpurple/dbus/constructor.c	b7c7943a63227c1a1410e3b8009be930b324b679
+++ libpurple/dbus/constructor.c	08cc1c5a733b296142670299586e444a8aa520ff
@@ -327,7 +327,7 @@ purple_constructor_load_pobj_unsync(GVar
 	PurpleObject *pobject;
 	gpointer *obj;
 	GVariant *props;
-	const gchar *dbus_path;
+	gchar *dbus_path;

 	g_variant_get(vpobject, "(o <at> a(sv))", &dbus_path, &props);

(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: d38da818: Rewritten the D-Bus code of PurpleContac...

----------------------------------------------------------------------
Revision: d38da818f337b2f561158a1253c90daa414d53be
Parent:   0e42fd6430d516e4c65abe0ea0294db1a03d9509
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 11:48:32
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/d38da818f337b2f561158a1253c90daa414d53be

Changelog: 

Rewritten the D-Bus code of PurpleContact,
according to the new gdbus-based API.

Changes against parent 0e42fd6430d516e4c65abe0ea0294db1a03d9509

  patched  libpurple/contact.c
  patched  libpurple/dbus/contact.c
  patched  libpurple/dbus/contact.h

============================================================
--- libpurple/contact.c	abeb6ea293d53e1d2c142de33fab1bbf28e5ca88
+++ libpurple/contact.c	3394d461038dc911ae16f7c6412819359c6e3239
@@ -212,7 +212,8 @@ PurpleContact *purple_contact_new()
 	PurpleContact *contact;

 	contact = g_object_new(PURPLE_TYPE_CONTACT, NULL);
-	purple_contact_dbus_init(contact);
+	/* Export this new object on D-Bus and propagate any property change. */
(Continue reading)

gillux | 20 May 19:22

cpw.gillux.detachablepurple: e40bc5ea: Going multi-interface capable. Objects m...

----------------------------------------------------------------------
Revision: e40bc5ea24e2b3af38d792bcddc2db9e950ccfd4
Parent:   570b9b0ab590f28580d0d2fc0a4d341a95e62c50
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 09:17:40
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/e40bc5ea24e2b3af38d792bcddc2db9e950ccfd4

Changelog: 

Going multi-interface capable. Objects may now hold several D-Bus interfaces.
This is the first commit of a long series to get things multi-interface. We
are going to to have one interface per class, from the PurpleObject class to
its most derived child class. Therefore we store a set of interfaces for
each class, and register each one when registering an object.

Changes against parent 570b9b0ab590f28580d0d2fc0a4d341a95e62c50

  patched  libpurple/pobject.c
  patched  libpurple/pobject.h

============================================================
--- libpurple/pobject.c	b677d4924205565781f5b88fafb7886bc6851372
+++ libpurple/pobject.c	4103522e5b92d8e7ecd8a301730dfa841bd3f0ac
@@ -43,7 +43,7 @@ struct _PurpleObjectPrivate
 	gpointer ui_data;
 	/* The gdbus id(s) used to unregister the registered object (in daemon
 	   context) or the registered sighandler (in client context). */
(Continue reading)

gillux | 20 May 19:21

cpw.gillux.detachablepurple: c3661cd1: Going multi-interface. Adapted PurpleCon...

----------------------------------------------------------------------
Revision: c3661cd112ccc4e794c23ff65fdaeefc93835ef8
Parent:   72f7290ae890b0d08a1e9dfae7c5337074fbb1cc
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 09:35:52
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/c3661cd112ccc4e794c23ff65fdaeefc93835ef8

Changelog: 

Going multi-interface. Adapted PurpleConstructor's pack_pobject_properties()
function so that it packs all the properties of all the interfaces of the
given object.

Changes against parent 72f7290ae890b0d08a1e9dfae7c5337074fbb1cc

  patched  libpurple/dbus/constructor.c

============================================================
--- libpurple/dbus/constructor.c	e872531096da84204d33958e7b8cd47a7cf09000
+++ libpurple/dbus/constructor.c	271254774cfc69617719a1e5f854eefac8cb0f49
@@ -192,26 +192,46 @@ pack_pobject_properties(PurpleObject *po
 	GVariantBuilder builder;
 	GParamSpec *pspec;
 	GVariant *prop;
+	GDBusInterfaceInfo *ifaceinfo;
 	GDBusPropertyInfo **props_info;
 	char *prop_name;
(Continue reading)

gillux | 20 May 19:21

cpw.gillux.detachablepurple: c1d6a853: Fixed the prototype of the D-Bus signals...

----------------------------------------------------------------------
Revision: c1d6a85361ddccc5e1361851344606bb306db4e3
Parent:   ff0195be20179f01429f6638940cb1d1ca2f0d6c
Author:   gillux <at> soc.pidgin.im
Date:     05/20/12 10:58:08
Branch:   im.pidgin.cpw.gillux.detachablepurple
URL: http://d.pidgin.im/viewmtn/revision/info/c1d6a85361ddccc5e1361851344606bb306db4e3

Changelog: 

Fixed the prototype of the D-Bus signals and methods handlers.

Changes against parent ff0195be20179f01429f6638940cb1d1ca2f0d6c

  patched  libpurple/dbus/constructor.c

============================================================
--- libpurple/dbus/constructor.c	4a9452c142ed3f65af22845ac95e8084885fff3c
+++ libpurple/dbus/constructor.c	91352bed077aba0b8ad442a6735dcde190bec2cc
@@ -62,9 +62,10 @@ G_DEFINE_TYPE(PurpleConstructor, purple_

 G_DEFINE_TYPE(PurpleConstructor, purple_constructor, PURPLE_TYPE_OBJECT)

+/* D-Bus signals and methods handlers. */
 static GVariant* purple_constructor_get_all_accounts(void);
-static void purple_constructor_pobj_created(PurpleObject *constructor, const char *type, const
char *dbus_path, GVariant *props);
-static GVariant* purple_constructor_new_account(PurpleObject *constructor, const char
(Continue reading)


Gmane