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 704336 - More fixes for PopupMenu
More fixes for PopupMenu
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-07-16 16:24 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-07-17 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
popupMenu: Fix parenting implementation (2.34 KB, patch)
2013-07-16 16:24 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
popupMenu: Use the parent field for sensitivity chaining (2.71 KB, patch)
2013-07-16 16:24 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
popupMenu: Fix closing submenus when clicking on the expander (1.21 KB, patch)
2013-07-16 16:25 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
popupMenu: Remove non-all-spanning versions of colspan in popup menus (5.36 KB, patch)
2013-07-16 16:25 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-07-16 16:24:53 UTC
Some of these I missed before in the last patch due to last-minute changes.
Others are yet more code cleanups.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-07-16 16:24:55 UTC
Created attachment 249281 [details] [review]
popupMenu: Fix parenting implementation

I got confused between menus and menu items.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-07-16 16:24:58 UTC
Created attachment 249282 [details] [review]
popupMenu: Use the parent field for sensitivity chaining

Instead of a signal mess.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-07-16 16:25:01 UTC
Created attachment 249283 [details] [review]
popupMenu: Fix closing submenus when clicking on the expander

We need to make sure that we reset the opened submenu when we close the
submenu, not trick the toplevel into thinking a closed submenu is the
currently opened menu.
Comment 4 Jasper St. Pierre (not reading bugmail) 2013-07-16 16:25:05 UTC
Created attachment 249284 [details] [review]
popupMenu: Remove non-all-spanning versions of colspan in popup menus

This simplifies the code considerably, and makes 'expand' behave as expected.
Comment 5 Giovanni Campagna 2013-07-17 15:57:57 UTC
Review of attachment 249281 [details] [review]:

Ok
Comment 6 Giovanni Campagna 2013-07-17 15:58:27 UTC
Review of attachment 249282 [details] [review]:

That's better.
Comment 7 Giovanni Campagna 2013-07-17 15:59:18 UTC
Review of attachment 249283 [details] [review]:

Ok
Comment 8 Giovanni Campagna 2013-07-17 16:00:09 UTC
Review of attachment 249284 [details] [review]:

So now "expand" means "span: -1" too?
Comment 9 Jasper St. Pierre (not reading bugmail) 2013-07-17 16:15:44 UTC
Yes, effectively. I couldn't find anywhere where we didn't always use the two together.

It's still not the greatest API. You'll see what I do for this when I land the aggregate menus.
Comment 10 Giovanni Campagna 2013-07-17 16:45:57 UTC
Review of attachment 249284 [details] [review]:

Ok then (I used expand with this meaning in the past too, so I like it)
Comment 11 Jasper St. Pierre (not reading bugmail) 2013-07-17 16:52:49 UTC
Attachment 249281 [details] pushed as a4a6e7c - popupMenu: Fix parenting implementation
Attachment 249282 [details] pushed as 5a5b3bf - popupMenu: Use the parent field for sensitivity chaining
Attachment 249283 [details] pushed as a2b499c - popupMenu: Fix closing submenus when clicking on the expander
Attachment 249284 [details] pushed as 126f0ed - popupMenu: Remove non-all-spanning versions of colspan in popup menus