/soc/2013/ankitkv/gobjectification: 8d21337f3d73: Removed blist ...
Ankit Vani
a at nevitus.org
Tue Jul 9 12:45:30 EDT 2013
Changeset: 8d21337f3d7377430a6353dfe461ce6c1e2cc229
Author: Ankit Vani <a at nevitus.org>
Date: 2013-07-09 22:15 +0530
Branch: soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/8d21337f3d73
Description:
Removed blist macro calls that are no longer necessary or do not exist
diffstat:
libpurple/dbus-define-api.h | 6 ------
pidgin/gtkblist.c | 2 +-
2 files changed, 1 insertions(+), 7 deletions(-)
diffs (29 lines):
diff --git a/libpurple/dbus-define-api.h b/libpurple/dbus-define-api.h
--- a/libpurple/dbus-define-api.h
+++ b/libpurple/dbus-define-api.h
@@ -6,13 +6,7 @@
program, which makes these macros callable by DBUS. */
/* buddylist.h */
-gboolean PURPLE_IS_CHAT(PurpleBListNode *node);
-gboolean PURPLE_IS_BUDDY(PurpleBListNode *node);
-gboolean PURPLE_IS_CONTACT(PurpleBListNode *node);
-gboolean PURPLE_IS_GROUP(PurpleBListNode *node);
gboolean PURPLE_IS_BUDDY_ONLINE(PurpleBuddy *buddy);
-gboolean PURPLE_BLIST_NODE_HAS_FLAG(PurpleBListNode *node, int flags);
-gboolean PURPLE_BLIST_NODE_SHOULD_SAVE(PurpleBListNode *node);
/* connection.h */
gboolean PURPLE_CONNECTION_IS_CONNECTED(PurpleConnection *connection);
diff --git a/pidgin/gtkblist.c b/pidgin/gtkblist.c
--- a/pidgin/gtkblist.c
+++ b/pidgin/gtkblist.c
@@ -1576,7 +1576,7 @@ pidgin_blist_make_buddy_menu(GtkWidget *
G_CALLBACK(gtk_blist_menu_showlog_cb), buddy, 0, 0, NULL);
}
- if (!PURPLE_BLIST_NODE_HAS_FLAG(node, PURPLE_BLIST_NODE_FLAG_NO_SAVE)) {
+ if (!purple_blist_node_get_dont_save(node)) {
gboolean show_offline = purple_blist_node_get_bool(node, "show_offline");
pidgin_new_item_from_stock(menu, show_offline ? _("Hide When Offline") : _("Show When Offline"),
NULL, G_CALLBACK(gtk_blist_menu_showoffline_cb), node, 0, 0, NULL);
More information about the Commits
mailing list