Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/console/gntplugin.c Wed Aug 02 23:52:45 2006 +0000 +++ b/console/gntplugin.c Thu Aug 03 07:16:35 2006 +0000 @@ -70,6 +70,14 @@ gnt_text_view_scroll(GNT_TEXT_VIEW(plugins.aboot), 0); } +static void +reset_plugin_window(GntWidget *window, gpointer null) +{ + plugins.window = NULL; + plugins.tree = NULL; + plugins.aboot = NULL; +} + void gg_plugins_show_all() { GntWidget *window, *tree, *box, *aboot; @@ -118,6 +126,7 @@ gnt_tree_set_col_width(GNT_TREE(tree), 0, 30); g_signal_connect(G_OBJECT(tree), "toggled", G_CALLBACK(plugin_toggled_cb), NULL); g_signal_connect(G_OBJECT(tree), "selection_changed", G_CALLBACK(selection_changed), NULL); + g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(reset_plugin_window), NULL); gnt_widget_show(window); }