# HG changeset patch # User andrew.victor@mxit.com # Date 1320168497 0 # Node ID 03efb97b552b936da485dc6823686427a2eb1723 # Parent cd46874707b1e5092502191aa6d4ab95aceb93a1 Convert to using purple_blist_node_ accessor functions. diff -r cd46874707b1 -r 03efb97b552b pidgin/gtkblist.c --- a/pidgin/gtkblist.c Mon Oct 31 21:27:32 2011 +0000 +++ b/pidgin/gtkblist.c Tue Nov 01 17:28:17 2011 +0000 @@ -6812,7 +6812,7 @@ if (purple_blist_node_get_ui_data(node) == NULL) pidgin_blist_new_node(node); - switch(node->type) { + switch (purple_blist_node_get_type(node)) { case PURPLE_BLIST_GROUP_NODE: pidgin_blist_update_group(list, node); break; diff -r cd46874707b1 -r 03efb97b552b pidgin/gtkconv.c --- a/pidgin/gtkconv.c Mon Oct 31 21:27:32 2011 +0000 +++ b/pidgin/gtkconv.c Tue Nov 01 17:28:17 2011 +0000 @@ -5656,7 +5656,6 @@ GtkWidget *pane = NULL; GtkWidget *tab_cont; PurpleBlistNode *convnode; - PurpleValue *value; if (conv_type == PURPLE_CONV_TYPE_IM && (gtkconv = pidgin_conv_find_gtkconv(conv))) { purple_conversation_set_ui_data(conv, gtkconv); @@ -5741,11 +5740,9 @@ if (convnode == NULL || !purple_blist_node_get_bool(convnode, "gtk-mute-sound")) gtkconv->make_sound = TRUE; - if (convnode != NULL && - (value = g_hash_table_lookup(convnode->settings, "enable-logging")) && - purple_value_get_type(value) == PURPLE_TYPE_BOOLEAN) - { - purple_conversation_set_logging(conv, purple_value_get_boolean(value)); + if (convnode != NULL) { + gboolean logging = purple_blist_node_get_bool(convnode, "enable-logging"); + purple_conversation_set_logging(conv, logging); } if (purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/show_formatting_toolbar"))