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 597895 - No accesor for GtkMenuShell::active
No accesor for GtkMenuShell::active
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Widget: Other
2.21.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 597610 612472 612481 627455
 
 
Reported: 2009-10-09 11:00 UTC by Jean Bréfort
Modified: 2011-05-04 13:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.54 KB, patch)
2010-03-10 17:57 UTC, Cody Russell
none Details | Review

Description Jean Bréfort 2009-10-09 11:00:25 UTC
At lease GtkMenuShell::children and GtkMenuShell::active should have accessors.
Comment 1 Javier Jardón (IRC: jjardon) 2009-10-09 11:42:24 UTC
I think you can use 

gtk_container_get_children()

for

GTK_MENU_SHELL ()->children
Comment 2 Jean Bréfort 2009-10-09 11:50:13 UTC
No, children is a member of GtkMenuShell, not of GtkContainer.
Comment 3 Michael Natterer 2009-10-09 12:17:15 UTC
Yes you can use gtk_container_get_children()
Comment 4 Jean Bréfort 2009-10-09 13:34:54 UTC
OK, I missed that, sorry. This leaves the active field.
Comment 5 Javier Jardón (IRC: jjardon) 2010-03-10 17:35:43 UTC
Hello Jean, Where are you planning on using this function?

Could you point us to the code?

Thank you
Comment 6 Cody Russell 2010-03-10 17:57:42 UTC
Created attachment 155770 [details] [review]
Proposed patch
Comment 7 Jean Bréfort 2010-03-10 18:30:46 UTC
Used there:

goffice/gtk/go-optionmenu.c:268

Actually, I defined a gtk_menu_shell_get_active for now.
Comment 8 Javier Jardón (IRC: jjardon) 2010-09-24 15:23:29 UTC
2.22 has been released. Change target milestore to 2.24
Comment 9 Jean Bréfort 2011-05-04 13:17:05 UTC
Actually, it is not really needed for Goffice. Things work monitoring appropriate events.
Comment 10 Javier Jardón (IRC: jjardon) 2011-05-04 13:47:51 UTC
Ok, closing the bug then