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 135710 - wnck window menu out of sync with metacity
wnck window menu out of sync with metacity
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
: 143510 143946 319789 327853 327969 (view as bug list)
Depends on:
Blocks: 155907
 
 
Reported: 2004-02-28 22:22 UTC by Rob Adams
Modified: 2006-01-21 19:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
resync (1.26 KB, patch)
2004-02-28 22:23 UTC, Rob Adams
none Details | Review
Really resync menus. (8.71 KB, patch)
2005-02-11 12:36 UTC, Christian Neumair
none Details | Review
Really resync menus. Attempt 2. (8.71 KB, patch)
2005-02-11 12:42 UTC, Christian Neumair
none Details | Review
Attempt 3. (9.58 KB, patch)
2005-02-11 22:46 UTC, Christian Neumair
none Details | Review
Proposed Patch (39.23 KB, patch)
2005-09-02 13:11 UTC, Srirama Sharma
committed Details | Review

Description Rob Adams 2004-02-28 22:22:33 UTC
I was actually surprised to discover that metacity was not generating the
wnck tasklist menu.  We should really use some sort of protocol to get
metacity to do this rather than libwnck.  At any rate in metacity the
window menu no longer has "Roll Up/Unroll" (it's replaced by an On Top
check menu item).  At the very least we should remove the shade window menu
options to sync the UI better.  Attached patch simply #if 0s the
appropriate code sections to remove the shade from the menu.
Comment 1 Rob Adams 2004-02-28 22:23:33 UTC
Created attachment 24911 [details] [review]
resync
Comment 2 Elijah Newren 2004-10-06 20:23:06 UTC
*** Bug 143510 has been marked as a duplicate of this bug. ***
Comment 3 Elijah Newren 2004-10-19 22:32:57 UTC
See also bug 96087 (which is actually about two bugs).
Comment 4 Elijah Newren 2004-10-19 22:49:19 UTC
*** Bug 143946 has been marked as a duplicate of this bug. ***
Comment 5 Christian Neumair 2005-02-11 12:36:43 UTC
Created attachment 37339 [details] [review]
Really resync menus.
Comment 6 Christian Neumair 2005-02-11 12:42:49 UTC
Created attachment 37340 [details] [review]
Really resync menus. Attempt 2.

This time with properly working mnemonic.

1. This neither fixes the protocol issue nor does it fix lack of workspace
action sync
2. This definitly has to be approved. We're string and UI frozen.
Comment 7 Elijah Newren 2005-02-11 21:46:30 UTC
Thanks for tackling this.  This patch overall looks good, but some nitpicks:

- Please use -p when submitting patches
- Please match the surrounding code style (replace tabs with spaces and only
  use one space between function name and its arguments in a .c file)
- The special casing of ABOVE in make_menu_item is inconsistent with the rest
  of the code
- You have a spurious change on an empty line

Also, while the patch is definitely nice, I don't think it's worth breaking
string or UI freeze for this (not many people know about or use the right click
menu).  Maybe Mark or Vincent or Havoc disagrees, but I see no harm in waiting
until after 2.10...
Comment 8 Christian Neumair 2005-02-11 22:46:05 UTC
Created attachment 37376 [details] [review]
Attempt 3.
Comment 9 Elijah Newren 2005-02-12 03:06:23 UTC
Seems fine to me for accepted-commit_after_freeze.  Vincent, Mark, or Havoc:
Could one of you comment?
Comment 10 Vincent Untz 2005-02-12 08:25:57 UTC
Comment on attachment 37376 [details] [review]
Attempt 3.

I think Elijah is right. I too think that not a lot of people use the context
menu on the window list.

Thanks for the patch!
Comment 11 Elijah Newren 2005-02-12 15:47:28 UTC
Comment on attachment 37376 [details] [review]
Attempt 3.

I'm sure Vincent meant accepted-commit_after_freeze and not
accepted-commit_now...
Comment 12 Vincent Untz 2005-02-12 16:03:52 UTC
Indeed. Thanks Elijah for watching me ;-)
Comment 13 Elijah Newren 2005-07-18 03:32:23 UTC
The patch has a trivial conflict now but otherwise is still fine.  Christian:
it's long after freeze.  Would you like to commit this now and notify
gnome-doc-list and gnome-i18n-list or should I?
Comment 14 Elijah Newren 2005-07-30 22:59:22 UTC
Ooops, forgot to do it; we'll have to wait until next thaw.
Comment 15 Srirama Sharma 2005-09-02 13:11:53 UTC
Created attachment 51715 [details] [review]
Proposed Patch

Recreated patches given by leena (in bug #96087) and Christian's patch with
some modifications.
Comment 16 Elijah Newren 2005-10-25 21:00:14 UTC
*** Bug 319789 has been marked as a duplicate of this bug. ***
Comment 17 Alexander “weej” Jones 2005-10-27 11:42:07 UTC
Is there no technical way to get wnck to simply invoke the metacity menu without cloning it? Or vice-versa.

I consider myself a GNOME power-user and I don't think I've clicked any of the window control buttons for months. Alt-right-click is a lot quicker. And if you want to close a lot of windows, right clicking window list items is quicker than the activate, find X, click X cycle.

My 2p.
Comment 18 Havoc Pennington 2005-10-29 04:22:12 UTC
I couldn't think of a way to have wnck invoke the metacity menu, no. Maybe
someone else can. It's easier to just sync them (it's not like they should be
changing often)

Comment 19 Alexander “weej” Jones 2005-10-29 11:14:13 UTC
I am just thinking that if an application wants to add custom window context
menu items like in Windows, the synchronisation would break. There probably
isn't currently a way to do that, though?
Comment 20 Christian Neumair 2005-10-29 12:00:10 UTC
IMHO the onliest way of achieving synchronized window menus is that we

a) expose the information using IPC, which allows for activation of custom
actions (are they planned at all?)

b) use a shared library providing the menu items. However, this still needs sync
since it requires that both have an idea of what rolling up a window is

c) continue to sync them, as the patch from Srirama does


I'm marking my patch as obsolete, since Srirama's patch consolidates more
synchronization work into one patch.

Elijah: Any chance that you could review the patch? :)
Comment 21 Vincent Untz 2006-01-20 21:17:05 UTC
*** Bug 327853 has been marked as a duplicate of this bug. ***
Comment 22 Vincent Untz 2006-01-21 13:28:34 UTC
*** Bug 327969 has been marked as a duplicate of this bug. ***
Comment 23 Elijah Newren 2006-01-21 19:53:31 UTC
Sorry for the incredibly long wait; I committed it finally.  Thanks Leena, Christian, and Srirama!