diff options
author | Michael Meeks <mmeeks@src.gnome.org> | 1999-08-22 22:54:36 (GMT) |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 1999-08-22 22:54:36 (GMT) |
commit | 6091292b5aead4bde60bd17dac218b9256012424 (patch) | |
tree | c084a0a441b087dccc34033bd16ca159b8180ce7 /pdf/xpdf | |
parent | 501ff563423f874072522d40aca5b2c927f9e475 (diff) |
Fixes to work with latest bonobo.
Diffstat (limited to 'pdf/xpdf')
-rw-r--r-- | pdf/xpdf/bonobo-image-x-pdf.cc | 16 | ||||
-rw-r--r-- | pdf/xpdf/gpdf.cc | 5 |
2 files changed, 17 insertions, 4 deletions
diff --git a/pdf/xpdf/bonobo-image-x-pdf.cc b/pdf/xpdf/bonobo-image-x-pdf.cc index 2881532..8d49a33 100644 --- a/pdf/xpdf/bonobo-image-x-pdf.cc +++ b/pdf/xpdf/bonobo-image-x-pdf.cc @@ -456,6 +456,18 @@ view_create_menus (view_data_t *view_data) N_("First"), N_("View the first page"), -1, GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST, 0, (GdkModifierType)0, page_first_cb, (gpointer)view_data); + gnome_ui_handler_toolbar_new_item (uih, "/Prev", GNOME_UI_HANDLER_MENU_ITEM, + N_("Previous"), N_("View the previous page"), -1, + GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST, + 0, (GdkModifierType)0, page_prev_cb, (gpointer)view_data); + gnome_ui_handler_toolbar_new_item (uih, "/Next", GNOME_UI_HANDLER_MENU_ITEM, + N_("Next"), N_("View the next page"), -1, + GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST, + 0, (GdkModifierType)0, page_next_cb, (gpointer)view_data); + gnome_ui_handler_toolbar_new_item (uih, "/Last", GNOME_UI_HANDLER_MENU_ITEM, + N_("Last"), N_("View the last page"), -1, + GNOME_UI_HANDLER_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_FIRST, + 0, (GdkModifierType)0, page_last_cb, (gpointer)view_data); #endif } @@ -770,8 +782,8 @@ main (int argc, char *argv []) gtk_widget_set_default_colormap (gdk_rgb_get_cmap ()); gtk_widget_set_default_visual (gdk_rgb_get_visual ()); - bonobo_activate (); - gtk_main (); + + bonobo_main (); CORBA_exception_free (&ev); diff --git a/pdf/xpdf/gpdf.cc b/pdf/xpdf/gpdf.cc index d7e9134..633ab23 100644 --- a/pdf/xpdf/gpdf.cc +++ b/pdf/xpdf/gpdf.cc @@ -424,7 +424,7 @@ container_set_view (Container *container, Component *component) /* * Create the remote view and the local ViewFrame. */ - view_frame = gnome_client_site_embeddable_new_view (component->client_site); + view_frame = gnome_client_site_new_view (component->client_site); component->view_frame = view_frame; /* @@ -690,6 +690,7 @@ main (int argc, char **argv) if (bonobo_init (orb, NULL, NULL) == FALSE) g_error (_("Could not initialize Bonobo!\n")); + bonobo_activate (); view_files = poptGetArgs (ctx); @@ -704,8 +705,8 @@ main (int argc, char **argv) poptFreeContext (ctx); - bonobo_activate (); gtk_main (); return 0; } + |