+2000-10-07 Michael Meeks <michael@helixcode.com>
+
+ * gpdf.cc (main): cut out stale gnorba fat.
+
+ * bonobo-application-x-pdf.cc (init_server_factory),
+ (init_bonobo_application_x_pdf_factory): ditto.
+
+ * bonobo-application-x-pdf.cc (embeddable_factory): remove the
+ sizeable interface.
+
2000-10-04 Michael Meeks <michael@helixcode.com>
* bonobo-application-x-pdf.cc (view_create_menus): upd.
#define GString G_String
#include <gnome.h>
-#if USING_OAF
#include <liboaf/liboaf.h>
-#else
-#include <libgnorba/gnorba.h>
-#endif
#include <gdk/gdkprivate.h>
#include <gdk/gdkx.h>
g_return_val_if_fail (container != NULL, FALSE);
g_return_val_if_fail (container->view_widget == NULL, FALSE);
-#if USING_OAF
- comp = container_activate_component (container, "OAFIID:gpdf_component:892f2727-e2ec-423c-91ad-6f7b75fec6c8");
+ comp = container_activate_component (
+ container, "OAFIID:gpdf_component:892f2727-e2ec-423c-91ad-6f7b75fec6c8");
-#else
- comp = container_activate_component (container, "bonobo-object:application-x-pdf");
-#endif
if (!comp || !(object = comp->server)) {
gnome_error_dialog (_("Could not launch bonobo object."));
return FALSE;
CORBA_exception_init (&ev);
-#if USING_OAF
gnomelib_register_popt_table (oaf_popt_options, "OAF");
gnome_init_with_popt_table("PDFViewer", "0.0.1",
argc, argv,
gpdf_popt_options, 0, &ctx);
orb = oaf_init (argc, argv);
-#else
- gnome_CORBA_init_with_popt_table ("PDFViewer", "0.0.1",
- &argc, argv,
- gpdf_popt_options, 0, &ctx,
- GNORBA_INIT_SERVER_FUNC, &ev);
-
- orb = gnome_CORBA_ORB ();
-#endif
CORBA_exception_free (&ev);