Mercurial > pidgin
changeset 32401:f13cb8438ee8
Ensure that the user's close callback is invoked when search
results are closed in finch.
Fixes #14820.
committer: Elliott Sales de Andrade <qulogic@pidgin.im>
author | hyc@symas.com |
---|---|
date | Thu, 22 Dec 2011 05:45:40 +0000 |
parents | 3ce30748a583 |
children | 5b1666b06b34 |
files | finch/gntnotify.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntnotify.c Thu Dec 22 05:26:52 2011 +0000 +++ b/finch/gntnotify.c Thu Dec 22 05:45:40 2011 +0000 @@ -397,6 +397,12 @@ } } +static void +notify_sr_destroy_cb(GntWidget *window, void *data) +{ + purple_notify_close(PURPLE_NOTIFY_SEARCHRESULTS, window); +} + static void * finch_notify_searchresults(PurpleConnection *gc, const char *title, const char *primary, const char *secondary, @@ -481,6 +487,8 @@ } gnt_box_add_widget(GNT_BOX(window), box); + g_signal_connect(G_OBJECT(tree), "destroy", + G_CALLBACK(notify_sr_destroy_cb), NULL); finch_notify_sr_new_rows(gc, results, tree);