Mercurial > pidgin
diff console/gntdebug.c @ 13985:a7b1d2ab9cb0
[gaim-migrate @ 16555]
Do not crash when you close the debug window, or use the "/clear" command.
Enable the stuff in gntaccount.c that were waiting on the request-ui.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Mon, 24 Jul 2006 01:03:07 +0000 |
parents | b7a99d54a5a9 |
children | 7573bd40a190 |
line wrap: on
line diff
--- a/console/gntdebug.c Mon Jul 24 00:52:01 2006 +0000 +++ b/console/gntdebug.c Mon Jul 24 01:03:07 2006 +0000 @@ -80,6 +80,12 @@ return &uiops; } +static void +reset_debug_win(GntWidget *w, gpointer null) +{ + debug.window = debug.tview = NULL; +} + void gg_debug_window_show() { if (debug.window == NULL) @@ -90,6 +96,8 @@ debug.tview = gnt_text_view_new(); gnt_box_add_widget(GNT_BOX(debug.window), debug.tview); + + g_signal_connect(G_OBJECT(debug.window), "destroy", G_CALLBACK(reset_debug_win), NULL); } gnt_widget_show(debug.window);