#include "BonoboStream.h"
#define PDF_DEBUG 0
-#define UNTESTED 0
GBool printCommands = gFalse;
N_("Last"), N_("View the last page"), -1,
GNOME_UI_HANDLER_PIXMAP_NONE, NULL, 0,
(GdkModifierType)0, page_last_cb, (gpointer)view_data);
-#if UNTESTED > 0
- gnome_ui_handler_toolbar_new_item (uih, "/First", GNOME_UI_HANDLER_MENU_ITEM,
+
+ gnome_ui_handler_toolbar_new_item (uih, "/First",
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,
+ 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,
0, (GdkModifierType)0, page_prev_cb, (gpointer)view_data);
- gnome_ui_handler_toolbar_new_item (uih, "/Next", GNOME_UI_HANDLER_MENU_ITEM,
+ 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,
0, (GdkModifierType)0, page_next_cb, (gpointer)view_data);
- gnome_ui_handler_toolbar_new_item (uih, "/Last", GNOME_UI_HANDLER_MENU_ITEM,
+ 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,
0, (GdkModifierType)0, page_last_cb, (gpointer)view_data);
-#endif
-
}
/*
#include "Error.h"
#include "config.h"
-#define UNTESTED 0
-
poptContext ctx;
gint gpdf_debug=0;
static void
container_create_toolbar (Container *container)
{
- GnomeUIHandlerMenuItem *toolbar;
-
-#if UNTESTED > 0
- gnome_ui_handler_create_menubar (container->uih);
+ GnomeUIHandlerToolbarItem *toolbar;
- /*
- * Create the basic menus out of UIInfo structures.
- */
- toolbar = gnome_ui_handler_toolbar_parse_uiinfo_list_with_data (container_toolbar, container);
- gnome_ui_handler_toolbar_add_list (container->uih, "/", menu_list);
- gnome_ui_handler_toolbar_free_list (menu_list);
-#endif
+ gnome_ui_handler_create_toolbar (container->uih, "pdf");
+ toolbar = gnome_ui_handler_toolbar_parse_uiinfo_list (container->uih, container_toolbar);
+ gnome_ui_handler_toolbar_add_list (container->uih, "/", toolbar);
+ gnome_ui_handler_toolbar_free_list (toolbar);
}
static Container *