]> www.fi.muni.cz Git - evince.git/commitdiff
Works with cleaner Bonobo toolbar API.
authorMichael Meeks <mmeeks@src.gnome.org>
Mon, 23 Aug 1999 18:41:10 +0000 (18:41 +0000)
committerMichael Meeks <mmeeks@src.gnome.org>
Mon, 23 Aug 1999 18:41:10 +0000 (18:41 +0000)
pdf/xpdf/ChangeLog
pdf/xpdf/bonobo-image-x-pdf.cc
pdf/xpdf/gpdf.cc

index d9998c30c3daeed08a8aa62a17a9382e84808d5e..dbb1bccbaabba35b3e5d272f289647d779d35e58 100644 (file)
@@ -1,3 +1,8 @@
+1999-08-23  Michael Meeks  <michael@imaginator.com>
+
+       * gpdf.cc (container_launch_component): Fix flags.
+       (container_create_toolbar): Fix for new Bonobo.
+
 1999-08-23  Michael Meeks  <michael@imaginator.com>
 
        * Makefile.am: Added helper programs back in.
index ac45e1583729e6e525230bc04443259f08f68a2e..ca0dd6644a88b81483b942c8f1d71ce2d3d2f8ed 100644 (file)
@@ -478,15 +478,15 @@ view_create_menus (view_data_t *view_data)
                                     0, (GdkModifierType)0, page_first_cb, (gpointer)view_data);
   gnome_ui_handler_toolbar_new_item (uih, "/Prev",
                                     N_("Previous"), N_("View the previous page"), -1,
-                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST,
+                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_BACK,
                                     0, (GdkModifierType)0, page_prev_cb, (gpointer)view_data);
   gnome_ui_handler_toolbar_new_item (uih, "/Next",
                                     N_("Next"), N_("View the next page"), -1,
-                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST,
+                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FORWARD,
                                     0, (GdkModifierType)0, page_next_cb, (gpointer)view_data);
   gnome_ui_handler_toolbar_new_item (uih, "/Last",
                                     N_("Last"), N_("View the last page"), -1,
-                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST,
+                                    GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_LAST,
                                     0, (GdkModifierType)0, page_last_cb, (gpointer)view_data);
 }
 
index ba956e437d5ee59d6f7203a3a681656289d7eb4e..e61929442b9ec59b35c82276f145b8082308b945 100644 (file)
@@ -492,7 +492,7 @@ container_launch_component (GnomeClientSite *client_site,
         * Launch the component.
         */
        object_server = gnome_object_activate_with_goad_id (
-               NULL, component_goad_id, 0, NULL);
+               NULL, component_goad_id, GOAD_ACTIVATE_SHLIB, NULL);
 
        if (object_server == NULL)
                return NULL;
@@ -612,7 +612,7 @@ container_create_toolbar (Container *container)
        GnomeUIHandlerToolbarItem *toolbar;
 
        gnome_ui_handler_create_toolbar (container->uih, "pdf");
-       toolbar = gnome_ui_handler_toolbar_parse_uiinfo_list (container->uih, container_toolbar);
+       toolbar = gnome_ui_handler_toolbar_parse_uiinfo_list_with_data (container_toolbar, container);
        gnome_ui_handler_toolbar_add_list (container->uih, "/", toolbar);
        gnome_ui_handler_toolbar_free_list (toolbar);
 }