GNOME Bugzilla – Bug 643699
empathy-auth-client window should be modal to the desktop
Last modified: 2012-01-27 13:38:39 UTC
Hi, The window to accept (or not) the an untrusted certificate should be modal to the contactlist
I agree, that would be nice. Problem is, this dialog is in the empathy-auth-client binary while the contact list is in empathy. Thomas: is it possible to do that?
Looks like g{t,d}k_window_set_transient_for() is what you are looking for, empathy-auth-client should returns the xid of the newly opened window on the bus
So I think we have to use gdk_x11_window_foreign_new_for_display (); and then gdk_window_set_transient_for(). Assuming we do it in empathy-auth-client (and not the other way around), we need the display-name (to use gdk_display_open()) and the XLib Window ID of the Contact list. But actually, is that really what we want? If we continue to integrate IM deeper into GNOME 3, we may end up not having the contact list running at all. Maybe this dialog should be "modal" to the whole desktop, as the ssk key agent one?
Created attachment 206262 [details] [review] auth-client: set keep above on dialog This will avoid to accidentally 'loose' the dialog.