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 351479 - [PATCH] "Clear List... " dialog shouldn't be transient
[PATCH] "Clear List... " dialog shouldn't be transient
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.14
Other Linux
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-15 15:15 UTC by Xavier Claessens
Modified: 2006-08-19 07:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (948 bytes, patch)
2006-08-15 15:18 UTC, Xavier Claessens
committed Details | Review

Description Xavier Claessens 2006-08-15 15:15:27 UTC
When I click on "Clear List..." in the popup menu of the tray icon, the confirm dialog's parent is the main window. So it I do it from another desktop than where the main window is I don't see the dialog. Other dialogs from this menu aren't transient.

Patch coming...
Comment 1 Xavier Claessens 2006-08-15 15:18:27 UTC
Created attachment 70954 [details] [review]
proposed patch
Comment 2 Martyn Russell 2006-08-15 16:02:25 UTC
Committed, thanks ;)
Comment 3 Richard Hult 2006-08-16 06:00:40 UTC
At least for some other dialogs we pass the parent in so that when launched from the contact list, it's transient, and otherwise it's not. It's a bit strange that the dialog always ends up centered now.
Comment 4 Martyn Russell 2006-08-16 07:30:58 UTC
I agree, but it is more strange IMO that it doesn't appear at all and when the user then clicks on the menu again, the items are still present when it looks like it silently cleared the list.

Other options are done from the contact list which has to be on the same screen.

Actually, I kind of agree with the positioning, I would rather it was close to the tray widget, but I am not sure we should really worry about it.
Comment 5 Richard Hult 2006-08-16 07:43:54 UTC
I meant that when started from the contact list, it should use that as transient, otherwise not. That makes it positioned properly.
Comment 6 Martyn Russell 2006-08-16 08:07:05 UTC
I agree actually! Ahoy men, revert ALL patches immediately! Quickly, attension!! Move it move it!!
Comment 7 Richard Hult 2006-08-18 21:28:59 UTC
Reopening then.
Comment 8 Xavier Claessens 2006-08-19 06:58:16 UTC
The problem is that's the same GtkMenu for both. Maybe we should do something like that:

if (main window is visible and on the active virtual desktop)
  parent = main window
else
  parent = NULL

I guess to know about the current virtual desktop we should use libwnck ? I'll try to find how to do that.
Comment 9 Richard Hult 2006-08-19 07:32:21 UTC
We have some code to do that already, gossip_window_get_is_visible().
Comment 10 Martyn Russell 2006-08-19 07:42:26 UTC
Fixed thanks.