gnome_program_init with Gnome::Main



Hi:

 I'm trying to show the help of my program using Yelp. I've looking at
the source code of epiphany-browser and I've make some progress. But now
when I call gnome_help_display_with_doc_id I get this error: "domain not
found GNOME_FILE_DOMAIN_APP_HELP".

 In C I must do the following: (from epiphany source)

-----------------
  gnome_program_init (PACKAGE, VERSION,
                      LIBGNOMEUI_MODULE, argc, argv,
                      GNOME_PARAM_GOPTION_CONTEXT, option_context,
                      GNOME_PARAM_HUMAN_READABLE_NAME, _("Web
Browser"    ),
                      GNOME_PARAM_APP_DATADIR, DATADIR,
                      NULL);
-----------------

 Note the "GNOME_PARAM_APP_DATADIR, DATADIR," line.
 
 How can I pass params to my program that is done with gnomemm? Now this
is my code:

----------------.
  Gnome::Main gnomeMain(PACKAGE,
                        VERSION,
                        Gnome::UI::module_info_get(),
                        argc,
                        argv);
----------------

Thanks in advance and sorry for my bad english.

-- 
Diego Fdez. Durán <diego goedi net> | http://iota.goedi.net
GPG : 925C 9A21 7A11 3B13 6E43 50DB F579 D119 90D2 66BB


Attachment: signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada digitalmente



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