Mercurial > pidgin.yaz
diff pidgin/gtknotify.c @ 21975:c7c5e2ff2b04
merge of '46216b10d02d4e5cae2343e469f0e405088537d3'
and '795d7e0fc010741ba22123931ad0cca10f456bc8'
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Wed, 02 Jan 2008 22:15:06 +0000 |
parents | 2a591a5b3322 |
children | c38d72677c8a |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Tue Dec 18 18:18:31 2007 +0000 +++ b/pidgin/gtknotify.c Wed Jan 02 22:15:06 2008 +0000 @@ -166,16 +166,18 @@ mail_dialog = NULL; } -static void +static gboolean formatted_close_cb(GtkWidget *win, GdkEvent *event, void *user_data) { purple_notify_close(PURPLE_NOTIFY_FORMATTED, win); + return FALSE; } -static void +static gboolean searchresults_close_cb(PidginNotifySearchResultsData *data, GdkEvent *event, gpointer user_data) { purple_notify_close(PURPLE_NOTIFY_SEARCHRESULTS, data); + return FALSE; } static void @@ -284,6 +286,8 @@ gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); + pidgin_auto_parent_window(dialog); + gtk_widget_show_all(dialog); return dialog; @@ -684,6 +688,8 @@ g_object_set_data(G_OBJECT(window), "info-widget", imhtml); /* Show the window */ + pidgin_auto_parent_window(window); + gtk_widget_show(window); return window; @@ -894,6 +900,8 @@ pidgin_notify_searchresults_new_rows(gc, results, data); /* Show the window */ + pidgin_auto_parent_window(window); + gtk_widget_show(window); return data; }