]> www.fi.muni.cz Git - evince.git/commitdiff
check for Bonobo >= 0.20
authorMichael Meeks <michael@helixcode.com>
Sat, 7 Oct 2000 22:29:28 +0000 (22:29 +0000)
committerMichael Meeks <mmeeks@src.gnome.org>
Sat, 7 Oct 2000 22:29:28 +0000 (22:29 +0000)
2000-10-07  Michael Meeks  <michael@helixcode.com>

* configure.in: check for Bonobo >= 0.20

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.

pdf/xpdf/ChangeLog
pdf/xpdf/gpdf.cc

index 3a995b627e697f555c2ddbd272b09116f40f8455..834dc5e8c4b5b345a3653d1587e814d2997546c8 100644 (file)
@@ -1,3 +1,13 @@
+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.
index 92dd95e76da7c00bc3239eb39d5b3cf37eaa4f0f..d8d0010b33ca1b0df3e8abf19682764a8ba674de 100644 (file)
@@ -12,11 +12,7 @@ extern "C" {
 #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>
@@ -116,12 +112,9 @@ extern "C" {
     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;
@@ -590,20 +583,11 @@ main (int argc, char **argv)
   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);