Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 32813:03efb97b552b
Convert to using purple_blist_node_ accessor functions.
| author | andrew.victor@mxit.com |
|---|---|
| date | Tue, 01 Nov 2011 17:28:17 +0000 |
| parents | 76096c42f558 |
| children | a1253e91981e |
line wrap: on
line diff
--- 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"))
