changeset 19418:b33c2b085e78

DBus-ify the message history in a conversation.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 25 Aug 2007 10:02:21 +0000
parents f3f78f43b822
children 6df41719037c
files libpurple/conversation.c libpurple/dbus-analyze-functions.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/conversation.c	Sat Aug 25 05:09:56 2007 +0000
+++ b/libpurple/conversation.c	Sat Aug 25 10:02:21 2007 +0000
@@ -213,6 +213,7 @@
 	PurpleConvMessage *msg;
 	
 	msg = g_new0(PurpleConvMessage, 1);
+	PURPLE_DBUS_REGISTER_POINTER(msg, PurpleConvMessage);
 	msg->who = g_strdup(who);
 	msg->flags = flags;
 	msg->what = g_strdup(message);
@@ -228,6 +229,7 @@
 {
 	g_free(msg->who);
 	g_free(msg->what);
+	PURPLE_DBUS_UNREGISTER_POINTER(msg);
 	g_free(msg);
 }
 
--- a/libpurple/dbus-analyze-functions.py	Sat Aug 25 05:09:56 2007 +0000
+++ b/libpurple/dbus-analyze-functions.py	Sat Aug 25 10:02:21 2007 +0000
@@ -66,6 +66,7 @@
     "purple_savedstatuses_get_all",
     "purple_status_type_get_attrs",
     "purple_presence_get_statuses",
+    "purple_conversation_get_message_history",
 ]
 
 pointer = "#pointer#"