Re: gnome mdi dnd problem / GnomeUIInfo wrapping problem.





On Mon, 29 Jun 1998, Jaka Mocnik wrote:

> Andreas Kostyrka wrote:
> 
> > I've been just wondering if anybody is using the
> > gnome_app_create_menus_custom method?
> > Seemed quite cool to me when I wrapped GnomeUIInfos, but it seems that
> > Gnome MDI is not able to use a GnomeUIBuilderData. :(
> If you supply the GnomeUIInfo template, MDI sadly uses
> gnome_app_create_menus() function, but if you'd like to use
> gnome_app_create_menus_custom() or even some other method of menu
> creation, make sure you don't supply it any GnomeUIInfo and use
> create_menus signal instead. See conditionaly compiled (#ifndef
> USE_APP_HELPER) code in gnome-hello-7-mdi.c for an example of this. Of
> course it would be trivial to put another member in MDI for
> UIBuilderData and add another function for setting it, but I'd prefer to
> keep code leaner. 
Hmmm, perhaps a comment in the header about this would be nice?
(I mean, I had to find this bug with gdb, because I didn't think about
 it.)
What about a GNOME_UI_INFO_BUILDER_DATA entry? Then all the different
versions of create_menus become obsolete, and the GnomeUIInfo array is
self contained?

Andreas



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]