[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnomemm-list
Subject:    [gnomemm] accesing menu and toolbar widgets
From:       Marcus Brinkmann <Marcus.Brinkmann () ruhr-uni-bochum ! de>
Date:       2003-03-13 21:34:40
[Download RAW message or body]

Hi,

here is a spicy issue.  Judging from earlier mails on this list, this has
come up frequently without solution, but maybe I am missing something.

The problem is accessing the widgets of the menu and toolbar.  This is
frequently needed to make menu and toolbar items (in)sensitive.

I took the naive option of accessing the widgets in the info array.  This
worked (after create_menus) for the menubar, but not for the toolbar.  My
guess, from looking at the source code, is that this is because of internal
copies made for the info structures.  The internal copy apparently is
necessary.  However, the internal copy is not accessible with public
interfaces.

Unfortunately, I can not even suggest to copy the widget pointers from the
internal object to the user provided object, as the reference is const.
So, an interface change or at least extension is absolutely necessary.
A simple accessor function to the internal object would be a minimal
workaround.

Are there any existing plans on that issue?  Or can you suggest a way to
avoid the internal copy.

Thanks,
Marcus


-- 
`Rhubarb is no Egyptian god.' GNU      http://www.gnu.org    marcus@gnu.org
Marcus Brinkmann              The Hurd http://www.gnu.org/software/hurd/
Marcus.Brinkmann@ruhr-uni-bochum.de
http://www.marcus-brinkmann.de/
_______________________________________________
gnomemm-list mailing list
gnomemm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnomemm-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic