int main (int argc, char **argv) { bindtextdomain (PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (PACKAGE, "UTF-8"); textdomain (PACKAGE); if (!bonobo_ui_init ("peacock-html-toolbars-control", VERSION, &argc, argv)) g_error (_("Could not initialize Bonobo UI")); return bonobo_generic_factory_main (PEACOCK_HTML_TOOLBARS_FACTORY_OAFIID, peacock_html_toolbars_control_factory, NULL); }
int main (int argc, char **argv) { SampleDoc *doc; SampleApp *app; free (malloc (8)); if (!bonobo_ui_init ("container", VERSION, &argc, argv)) g_error ("Could not initialize libbonoboui!\n"); doc = sample_doc_new (); app = sample_app_new (doc); bonobo_main (); return 0; }