]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/gpdf.cc
kill ghastly hack adding -lbonobo. (bonobo_application_x_pdf_LDADD): add
[evince.git] / pdf / xpdf / gpdf.cc
index a78a37e176c227526ff4b0fc8aa5199daf696af9..e9a6f8410e8ab0f460cc90d22387bbccfcec204a 100644 (file)
@@ -3,7 +3,6 @@
  *
  * Author:
  *   Michael Meeks <michael@imaginator.com>
  *
  * Author:
  *   Michael Meeks <michael@imaginator.com>
- *
  */
 #include <stdio.h>
 #include <stdlib.h>
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -118,7 +117,7 @@ extern "C" {
     g_return_val_if_fail (container->view_widget == NULL, FALSE);
 
 #if USING_OAF
     g_return_val_if_fail (container->view_widget == NULL, FALSE);
 
 #if USING_OAF
-    comp = container_activate_component (container, "OAFIID:gpdf_componet: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");
 
 #else
     comp = container_activate_component (container, "bonobo-object:application-x-pdf");
@@ -149,7 +148,9 @@ extern "C" {
     }
     
     Bonobo_PersistStream_load (persist,
     }
     
     Bonobo_PersistStream_load (persist,
-                             (Bonobo_Stream) bonobo_object_corba_objref (BONOBO_OBJECT (stream)), &ev);
+                             (Bonobo_Stream) bonobo_object_corba_objref (BONOBO_OBJECT (stream)),
+                              "application/pdf",
+                              &ev);
 
     Bonobo_Unknown_unref (persist, &ev);
     CORBA_Object_release (persist, &ev);
 
     Bonobo_Unknown_unref (persist, &ev);
     CORBA_Object_release (persist, &ev);