libpurple/buddyicon.c

changeset 39678
278f810cac28
parent 39667
87a02616f3c5
parent 39675
583e2ba6e78e
child 39913
ce96d4639dc7
--- a/libpurple/buddyicon.c	Mon Jul 15 16:48:29 2019 -0400
+++ b/libpurple/buddyicon.c	Tue Jul 16 03:34:30 2019 +0000
@@ -847,7 +847,6 @@
 	char *old_icon;
 	PurpleImage *old_img;
 	PurpleImage *img = NULL;
-	PurpleBlistUiOps *ops = purple_blist_get_ui_ops();
 
 	g_return_val_if_fail(node != NULL, NULL);
 
@@ -902,10 +901,8 @@
 			/* Is this call necessary anymore? Can the buddies
 			 * themselves need updating when the custom buddy
 			 * icon changes? */
-			if (ops && ops->update) {
-				ops->update(purple_blist_get_default(),
-				            PURPLE_BLIST_NODE(buddy));
-			}
+			purple_blist_update_node(purple_blist_get_default(),
+			                         PURPLE_BLIST_NODE(buddy));
 		}
 	} else if (PURPLE_IS_CHAT(node)) {
 		PurpleChatConversation *chat = NULL;
@@ -916,9 +913,7 @@
 		}
 	}
 
-	if (ops && ops->update) {
-		ops->update(purple_blist_get_default(), node);
-	}
+	purple_blist_update_node(purple_blist_get_default(), node);
 
 	if (old_img) {
 		g_object_unref(old_img);

mercurial