After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 643699 - empathy-auth-client window should be modal to the desktop
empathy-auth-client window should be modal to the desktop
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: Auth client
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-02 17:45 UTC by Laurent Bigonville
Modified: 2012-01-27 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
auth-client: set keep above on dialog (1.53 KB, patch)
2012-01-27 13:36 UTC, Guillaume Desmottes
committed Details | Review

Description Laurent Bigonville 2011-03-02 17:45:13 UTC
Hi,

The window to accept (or not) the an untrusted certificate should be modal to the contactlist
Comment 1 Guillaume Desmottes 2011-03-07 09:00:26 UTC
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?
Comment 2 Laurent Bigonville 2011-05-02 10:18:43 UTC
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
Comment 3 Guillaume Desmottes 2011-05-02 13:37:20 UTC
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?
Comment 4 Guillaume Desmottes 2012-01-27 13:36:07 UTC
Created attachment 206262 [details] [review]
auth-client: set keep above on dialog

This will avoid to accidentally 'loose' the dialog.