# HG changeset patch # User hyc@symas.com # Date 1324532740 0 # Node ID f13cb8438ee80b0e2444a5943afee74f2240eb89 # Parent 3ce30748a583acad47646b8fa1fcba0c05148f0f Ensure that the user's close callback is invoked when search results are closed in finch. Fixes #14820. committer: Elliott Sales de Andrade diff -r 3ce30748a583 -r f13cb8438ee8 finch/gntnotify.c --- 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);