[Gtk-sharp-list] Creating a UIInfo for Gnome.App.CreateMenus

Alejandro Forero Cuervo bachue@bachue.com
Thu, 14 Oct 2004 09:25:52 -0500


--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> Can  anyone  please  explain  or   show  an  example  of  how  to
> create  an  appropriate   UIInfo  object  that  I   can  pass  to
> Gnome.App.CreateMenus?

I've looked further into this.

The   gnome_app_create_menus  function   receives  an   array  of
GnomeUIInfo structures (a GnomeUIInfo  *, described as "The first
in  an array  GnomeUIInfo instances  containing the  menu data").
However,  the Gnome.App.CreateMenus  method  receives one  UIInfo
instance.  Shouldn't it receive an array of UIInfo objects?

Also, in GTK+  I initialize the GnomeUIInfo  objects using macros
such as in:

    GNOMEUIINFO_ITEM_STOCK (N_("Play"), N_("Play a presentation"), somefunc, GNOME_STOCK_PIXMAP_EXEC),
    GNOMEUIINFO_MENU_FILE_TREE(file_menu)
    GNOMEUIINFO_MENU_HELP_TREE(help_menu)
    GNOMEUIINFO_END

How should I create/initialize them in GTK#?

Yesterday  I was  lead  to believe  by Miguel  on  IRC that  this
functionality might still  not be working in GTK#.   I would like
to help change that, but I  would need someone familiar with GTK#
to point out where to look.

I suppose  some code  would need  to be written  to receive  a C#
array with UIInfo objects and convert it to a C array that can be
passed  to gnome_app_create_menus?   Could anyone  point me  to a
relevant example and explain what I need to do?

Any thoughts on  what would be the ideal mechanism  to create the
UIInfo  objects? (I'm  entirely  new  to  C#  and  .NET,  started
learning just two days ago.)

gnome/gnome-api.raw indicates that it is generated from .metadata
files.  Can  anyone point  out what .metadata  files?  I  grep -i
menus everywhere (but  sample/ and doc/) but  the only references
to gnome_app_create_menus I can find is in gnome/gnome-api.raw.

Thanks.

Alejo.
http://bachue.com/alejo

---=(  Comunidad de Usuarios de Software Libre en Colombia  )=---
---=(  http://bachue.com/colibri )=--=( colibri@bachue.com  )=---

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBboxvkEv0SM2OU1kRAn6FAJ9dp86y7T+M/SusswY2AGphn0l8ggCeObbs
TAiVfo8ncO8aEBDCXeJm5Xo=
=QynT
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--