Re: GtkItemFactory -- need example




 TJ> On 23 Jul 1998, Thomas Mailund Jensen wrote:
 TJ> > I am trying to deduce how to use gtk item factory, which isn't too
 TJ> > easy with only the source.  I could really use an example.  Is there
 TJ> > anywhere I can get such?

 TJ> the CVS gimp uses GtkItemFactory already, as well, as GLE.

Er...where do I get gle?

 TJ>   menubar_factory = gtk_item_factory_new (GTK_TYPE_MENU_BAR,
 TJ> 					       "ExampleApp",
                                               ^^^^^^^^^^^
I'm not sure what this 'path' parameter does.  I can only get away
with "<RandomString>" arguments.  I can see the effect in the file it
dumps, but is this the only place?

 TJ> 					       NULL);

 TJ> i hope that helps, feel free to ask more questions though ;)

OK...I have different windows, which need different menubars.  Right
now I create a factory for each window.  Is this necessary, or can
they share, only share from a certain point that is.

I would like something like the entire menu in the main window:

  +-----------+------------+-------------+
  | Foo       | Bar        | Baz         |
  +-----------+------------+-------------+

and menus starting at a certain "path offset" in the other windows,
e.g. only:

  +------------+
  | Foo        |
  +------------+

or perhabs even

  +------------+-------------+
  | Bar        | Baz         |
  +------------+-------------+


I think thats all for now...

/mailund



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