gobjectification: f94a547a: Expose PurpleConnection:inpa.
sadrul at pidgin.im
sadrul at pidgin.im
Thu Mar 13 04:40:07 EDT 2008
-----------------------------------------------------------------
Revision: f94a547aac997934956f096d09694105e3ce6d67
Ancestor: 387826bce1d6a8304b824dd68014153a20d03473
Author: sadrul at pidgin.im
Date: 2008-03-13T08:40:27
Branch: im.pidgin.gobjectification
URL: http://d.pidgin.im/viewmtn/revision/info/f94a547aac997934956f096d09694105e3ce6d67
Modified files:
libpurple/connection.c
ChangeLog:
Expose PurpleConnection:inpa.
-------------- next part --------------
============================================================
--- libpurple/connection.c e4aa7765135d78dab2db72b155a6ee5d91946ba9
+++ libpurple/connection.c 51ca209b8556e7d3594ceb72f6247b834c0be61c
@@ -72,8 +72,8 @@ enum
PROP_FLAGS,
PROP_STATE,
PROP_ACCOUNT,
+ PROP_INPUT_WATCHER,
#if 0
- PROP_INPUT_WATCHER,
PROP_BUDDY_CHATS,
PROP_KEEPALIVE,
PROP_WANTS_TO_DIE,
@@ -331,7 +331,7 @@ purple_connection_destroy(PurpleConnecti
buddies = purple_find_buddies(account, NULL);
while (buddies != NULL) {
PurpleBuddy *buddy = buddies->data;
- buddy->proto_data = NULL;
+ purple_object_set_protocol_data(PURPLE_OBJECT(buddy),NULL);
buddies = g_slist_delete_link(buddies, buddies);
}
@@ -459,6 +459,12 @@ purple_connection_set_state(PurpleConnec
}
}
+void purple_connection_set_flags(PurpleConnection *gc, PurpleConnectionFlags flags)
+{
+ g_return_if_fail(gc);
+ gc->priv->flags = flags;
+}
+
void
purple_connection_set_account(PurpleConnection *gc, PurpleAccount *account)
{
@@ -720,10 +726,10 @@ purple_connection_get_property(GObject *
#warning fix me when account is an object
g_value_set_pointer(value, purple_connection_get_account(pc));
break;
-#if 0
case PROP_INPUT_WATCHER:
- g_value_set_int(value, purple_connection_get_input_watcher(pc));
+ g_value_set_int(value, pc->priv->inpa);
break;
+#if 0
case PROP_BUDDY_CHATS:
g_value_set_pointer(value, purple_connection_get_buddy_chats(pc));
break;
@@ -761,10 +767,10 @@ purple_connection_set_property(GObject *
#warning fix me when account is an object
purple_connection_set_account(pc, g_value_get_pointer(value));
break;
-#if 0
case PROP_INPUT_WATCHER:
- purple_connection_set_input_watcher(pc, g_value_get_int(value));
+ pc->priv->inpa = g_value_get_int(value);
break;
+#if 0
case PROP_BUDDY_CHATS:
purple_connection_set_buddy_chats(pc, g_value_get_pointer(value));
break;
@@ -843,13 +849,13 @@ purple_connection_class_init(PurpleConne
g_object_class_install_property(obj_class, PROP_ACCOUNT, pspec);
#warning These probably doesn't need any exposing
-#if 0
pspec = g_param_spec_int("inpa", "inpa",
"The input watcher's fd for this connection.",
G_MININT, G_MAXINT, -1,
G_PARAM_READWRITE);
- g_object_class_install_property(obj_class, PROP_INPA, pspec);
+ g_object_class_install_property(obj_class, PROP_INPUT_WATCHER, pspec);
+#if 0
pspec = g_param_spec_pointer("buddy-chats", "buddy-chats",
"A list of buddy chats for this connection.",
G_PARAM_READWRITE);
More information about the Commits
mailing list