/soc/2013/ankitkv/gobjectification: 7fb0d9fbbd66: do not display...
Ankit Vani
a at nevitus.org
Wed Aug 7 06:10:48 EDT 2013
Changeset: 7fb0d9fbbd6672766b8c78180ee2f5aeda16f806
Author: Ankit Vani <a at nevitus.org>
Date: 2013-08-07 15:40 +0530
Branch: soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/7fb0d9fbbd66
Description:
do not display plugins that load on query in the plugin list
diffstat:
finch/gntplugin.c | 3 +++
pidgin/gtkplugin.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
diffs (26 lines):
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -509,6 +509,9 @@ void finch_plugins_show_all(void)
{
PurplePlugin *plug = PURPLE_PLUGIN(iter->data);
+ if (purple_plugin_loads_on_query(plug))
+ continue;
+
gnt_tree_add_choice(GNT_TREE(tree), plug,
gnt_tree_create_row(GNT_TREE(tree),
purple_plugin_info_get_name(purple_plugin_get_info(plug))),
diff --git a/pidgin/gtkplugin.c b/pidgin/gtkplugin.c
--- a/pidgin/gtkplugin.c
+++ b/pidgin/gtkplugin.c
@@ -249,6 +249,9 @@ update_plugin_list(void *data)
plug = PURPLE_PLUGIN(l->data);
info = purple_plugin_get_info(plug);
+ if (purple_plugin_loads_on_query(plug))
+ continue;
+
gtk_list_store_append (ls, &iter);
if (purple_plugin_info_get_name(info)) {
More information about the Commits
mailing list