#ifdef HAVE_CONFIG_H #include #endif #ifdef GNOME_GTKHTML_EDITOR_SHLIB #include #else #include #endif #include #include #include #include #include #include #include #include #include #include #include #include "Editor.h" #include "gtkhtml.h" #include "gtkhtml-private.h" #include "gtkhtml-properties.h" #include "htmlcursor.h" #include "htmlengine.h" #include "htmlengine-edit.h" #include "htmlengine-edit-cut-and-paste.h" #include "htmlengine-edit-movement.h" #include "htmlengine-edit-selection-updater.h" #include "htmlimage.h" #include "htmlinterval.h" #include "htmlselection.h" #include "htmlfontmanager.h" #include "htmlsettings.h" #include "htmlpainter.h" #include "htmlplainpainter.h" #include "engine.h" #include "menubar.h" #include "persist-file.h" #include "persist-stream.h" #include "popup.h" #include "toolbar.h" #include "properties.h" #include "text.h" #include "paragraph.h" #include "body.h" #include "spellchecker.h" #include "html-stream-mem.h" #include "gtkhtmldebug.h" #include "editor-control-factory.h" int main (int argc, char **argv) { BonoboGenericFactory *factory; #ifdef GTKHTML_HAVE_GCONF GError *gconf_error = NULL; #endif /* Initialize the i18n support */ textdomain (GETTEXT_PACKAGE); bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); gnome_program_init(PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv, GNOME_PROGRAM_STANDARD_PROPERTIES, GNOME_PARAM_HUMAN_READABLE_NAME, _("GtkHTML Editor Control"), NULL); /* #ifdef GTKHTML_HAVE_GCONF if (!gconf_init (argc, argv, &gconf_error)) { g_assert (gconf_error != NULL); g_error ("GConf init failed:\n %s", gconf_error->message); return 1; } #endif */ factory = bonobo_generic_factory_new (CONTROL_FACTORY_ID, editor_control_factory, NULL); if (factory) { bonobo_running_context_auto_exit_unref (BONOBO_OBJECT (factory)); bonobo_activate (); bonobo_main (); return bonobo_ui_debug_shutdown (); } else return 1; }