Mercurial > pidgin
comparison console/gntplugin.c @ 14024:7109e6397a31
[gaim-migrate @ 16622]
Add commands /accounts, /buddylist, /debugwin and /plugins. It allows
the user to close those windows, and pop them back up when necessary --
provided a conversation window is open -- which I am assuming would be
the case most of the time. Until there's some better way of accessing
these dialogs (eg. menus), this is the only way.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 03 Aug 2006 07:16:35 +0000 |
parents | 7573bd40a190 |
children | 2d1b41e3cf0d |
comparison
equal
deleted
inserted
replaced
14023:07d645986c79 | 14024:7109e6397a31 |
---|---|
68 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(plugins.aboot), | 68 gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(plugins.aboot), |
69 text, GNT_TEXT_FLAG_NORMAL); | 69 text, GNT_TEXT_FLAG_NORMAL); |
70 gnt_text_view_scroll(GNT_TEXT_VIEW(plugins.aboot), 0); | 70 gnt_text_view_scroll(GNT_TEXT_VIEW(plugins.aboot), 0); |
71 } | 71 } |
72 | 72 |
73 static void | |
74 reset_plugin_window(GntWidget *window, gpointer null) | |
75 { | |
76 plugins.window = NULL; | |
77 plugins.tree = NULL; | |
78 plugins.aboot = NULL; | |
79 } | |
80 | |
73 void gg_plugins_show_all() | 81 void gg_plugins_show_all() |
74 { | 82 { |
75 GntWidget *window, *tree, *box, *aboot; | 83 GntWidget *window, *tree, *box, *aboot; |
76 GList *iter; | 84 GList *iter; |
77 if (plugins.window) | 85 if (plugins.window) |
116 gnt_tree_set_choice(GNT_TREE(tree), plug, gaim_plugin_is_loaded(plug)); | 124 gnt_tree_set_choice(GNT_TREE(tree), plug, gaim_plugin_is_loaded(plug)); |
117 } | 125 } |
118 gnt_tree_set_col_width(GNT_TREE(tree), 0, 30); | 126 gnt_tree_set_col_width(GNT_TREE(tree), 0, 30); |
119 g_signal_connect(G_OBJECT(tree), "toggled", G_CALLBACK(plugin_toggled_cb), NULL); | 127 g_signal_connect(G_OBJECT(tree), "toggled", G_CALLBACK(plugin_toggled_cb), NULL); |
120 g_signal_connect(G_OBJECT(tree), "selection_changed", G_CALLBACK(selection_changed), NULL); | 128 g_signal_connect(G_OBJECT(tree), "selection_changed", G_CALLBACK(selection_changed), NULL); |
129 g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(reset_plugin_window), NULL); | |
121 | 130 |
122 gnt_widget_show(window); | 131 gnt_widget_show(window); |
123 } | 132 } |
124 | 133 |