Mercurial > pidgin.yaz
diff pidgin/gtknotify.c @ 21888:c88a3f2dbb52
Try to make a window transient for a suitable parent window. This currently
happens only for the request and notify windows, and only when they are
triggered by some GTK+ event.
There are some issues when a request/notify window pops up from activating
a popup menuitem. I found a fix for when the menuitem is activated by a
keypress. I'll try to find a fix for a mouse-button later.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 28 Nov 2007 01:54:34 +0000 |
parents | 059d6deebee7 |
children | 2a591a5b3322 |
line wrap: on
line diff
--- a/pidgin/gtknotify.c Wed Nov 28 00:17:27 2007 +0000 +++ b/pidgin/gtknotify.c Wed Nov 28 01:54:34 2007 +0000 @@ -284,6 +284,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 +686,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 +898,8 @@ pidgin_notify_searchresults_new_rows(gc, results, data); /* Show the window */ + pidgin_auto_parent_window(window); + gtk_widget_show(window); return data; }