pidgin: 244390f7: user_info->user_info_entries is redundan...

markdoliner at pidgin.im markdoliner at pidgin.im
Mon Aug 22 00:21:39 EDT 2011


----------------------------------------------------------------------
Revision: 244390f73dde7c9ae2cd536dad7a0442fbaf9817
Parent:   0ea4521b22507f8cc23de316fa55e3368d9f4029
Author:   markdoliner at pidgin.im
Date:     08/22/11 00:16:28
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/244390f73dde7c9ae2cd536dad7a0442fbaf9817

Changelog: 

user_info->user_info_entries is redundant.  Let's call it
user_info->entries, instead.

Changes against parent 0ea4521b22507f8cc23de316fa55e3368d9f4029

  patched  libpurple/notify.c

-------------- next part --------------
============================================================
--- libpurple/notify.c	d97e3742d65265693e2c025ae30b59383b7b8a55
+++ libpurple/notify.c	dd8da681d1dde9795fe9edd70cf262640762e003
@@ -53,7 +53,7 @@ struct _PurpleNotifyUserInfo
 
 struct _PurpleNotifyUserInfo
 {
-	GQueue user_info_entries;
+	GQueue entries;
 };
 
 void *
@@ -454,7 +454,7 @@ purple_notify_user_info_new()
 
 	user_info = g_new0(PurpleNotifyUserInfo, 1);
 	PURPLE_DBUS_REGISTER_POINTER(user_info, PurpleNotifyUserInfo);
-	g_queue_init(&user_info->user_info_entries);
+	g_queue_init(&user_info->entries);
 
 	return user_info;
 }
@@ -464,13 +464,13 @@ purple_notify_user_info_destroy(PurpleNo
 {
 	GList *l;
 
-	for (l = user_info->user_info_entries.head; l != NULL; l = l->next) {
+	for (l = user_info->entries.head; l != NULL; l = l->next) {
 		PurpleNotifyUserInfoEntry *user_info_entry = l->data;
 
 		purple_notify_user_info_entry_destroy(user_info_entry);
 	}
 
-	g_queue_clear(&user_info->user_info_entries);
+	g_queue_clear(&user_info->entries);
 	PURPLE_DBUS_UNREGISTER_POINTER(user_info);
 	g_free(user_info);
 }
@@ -480,7 +480,7 @@ purple_notify_user_info_get_entries(Purp
 {
 	g_return_val_if_fail(user_info != NULL, NULL);
 
-	return &user_info->user_info_entries;
+	return &user_info->entries;
 }
 
 char *
@@ -491,7 +491,7 @@ purple_notify_user_info_get_text_with_ne
 
 	text = g_string_new("");
 
-	for (l = user_info->user_info_entries.head; l != NULL; l = l->next) {
+	for (l = user_info->entries.head; l != NULL; l = l->next) {
 		PurpleNotifyUserInfoEntry *user_info_entry = l->data;
 		/* Add a newline before a section header */
 		if (user_info_entry->type == PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER)
@@ -580,7 +580,7 @@ purple_notify_user_info_add_pair_html(Pu
 	PurpleNotifyUserInfoEntry *entry;
 
 	entry = purple_notify_user_info_entry_new(label, value);
-	g_queue_push_tail(&user_info->user_info_entries, entry);
+	g_queue_push_tail(&user_info->entries, entry);
 }
 
 void
@@ -599,7 +599,7 @@ purple_notify_user_info_prepend_pair(Pur
 	PurpleNotifyUserInfoEntry *entry;
 
 	entry = purple_notify_user_info_entry_new(label, value);
-	g_queue_push_head(&user_info->user_info_entries, entry);
+	g_queue_push_head(&user_info->entries, entry);
 }
 
 void
@@ -608,7 +608,7 @@ purple_notify_user_info_remove_entry(Pur
 	g_return_if_fail(user_info != NULL);
 	g_return_if_fail(entry != NULL);
 
-	g_queue_remove(&user_info->user_info_entries, entry);
+	g_queue_remove(&user_info->entries, entry);
 }
 
 void
@@ -619,7 +619,7 @@ purple_notify_user_info_add_section_head
 	entry = purple_notify_user_info_entry_new(label, NULL);
 	entry->type = PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER;
 
-	g_queue_push_tail(&user_info->user_info_entries, entry);
+	g_queue_push_tail(&user_info->entries, entry);
 }
 
 void
@@ -630,7 +630,7 @@ purple_notify_user_info_prepend_section_
 	entry = purple_notify_user_info_entry_new(label, NULL);
 	entry->type = PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_HEADER;
 
-	g_queue_push_head(&user_info->user_info_entries, entry);
+	g_queue_push_head(&user_info->entries, entry);
 }
 
 void
@@ -641,7 +641,7 @@ purple_notify_user_info_add_section_brea
 	entry = purple_notify_user_info_entry_new(NULL, NULL);
 	entry->type = PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK;
 
-	g_queue_push_tail(&user_info->user_info_entries, entry);
+	g_queue_push_tail(&user_info->entries, entry);
 }
 
 void
@@ -652,7 +652,7 @@ purple_notify_user_info_prepend_section_
 	entry = purple_notify_user_info_entry_new(NULL, NULL);
 	entry->type = PURPLE_NOTIFY_USER_INFO_ENTRY_SECTION_BREAK;
 
-	g_queue_push_head(&user_info->user_info_entries, entry);
+	g_queue_push_head(&user_info->entries, entry);
 }
 
 void
@@ -660,7 +660,7 @@ purple_notify_user_info_remove_last_item
 {
 	PurpleNotifyUserInfoEntry *entry;
 
-	entry = g_queue_pop_tail(&user_info->user_info_entries);
+	entry = g_queue_pop_tail(&user_info->entries);
 	if (entry)
 		purple_notify_user_info_entry_destroy(entry);
 }


More information about the Commits mailing list