Re: using ItemHandler



  Have you seen
http://developer.gnome.org/doc/API/2.0/libbonobo/libbonobo-bonobo-item-handler.html
?

  You just have to:
handler_interface = bonobo_item_handler_new  (...);
bonobo_object_add_interface(myobject, handler_interface);

Then, it should just work.  Remember to add Bonobo/ItemHandler to the
list of implemented interfaces in the .server file.

A S?, 2003-08-02 ās 18:56, Jacob Perkins escreveu:
> I want to be able to get a control with an oafid that accepts arguments,
> such as OAFIID:GNOME_GPG_KeyProperties!PGP!jap1 where PGP could also be
> CMS and jap1 could be an arbitrary string. The libbonobo docs say that
> an ItemHandler is necessary for parsing the '!' commands. However, there
> is nothing that says how to do this. I can use
> bonobo_get_object("OAFIID:GNOME_GPG_KeyProperties", "Bonobo/Control",
> &ev) without a problem, but as soon as I add a '!' argument, it fails
> because the factory returns null, though the factory does seem to get
> started. So, how do I use an ItemHandler for the arguments? Are there
> any examples I can look it?
> Thanks
> 
> _______________________________________________
> gnome-components-list mailing list
> gnome-components-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-components-list
-- 
Gustavo J. A. M. Carneiro
<gjc inescporto pt> <gustavo users sourceforge net>




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