#include "Error.h"
#include "config.h"
-#define UNTESTED 0
-
poptContext ctx;
gint gpdf_debug=0;
static GnomeUIInfo container_menu_zoom [] = {
{ GNOME_APP_UI_ITEM, N_("_Zoom in"),
N_("Increase the size of objects in the PDF"),
- NULL, zoom_in_cmd },
+ zoom_in_cmd },
{ GNOME_APP_UI_ITEM, N_("_Zoom out"),
N_("Decrease the size of objects in the PDF"),
zoom_out_cmd },
* 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;
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.
- */
+ gnome_ui_handler_create_toolbar (container->uih, "pdf");
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_toolbar_add_list (container->uih, "/", toolbar);
+ gnome_ui_handler_toolbar_free_list (toolbar);
}
static Container *