]> www.fi.muni.cz Git - evince.git/commitdiff
Fixup pdfto* programs,
authorMichael Meeks <mmeeks@src.gnome.org>
Mon, 23 Aug 1999 17:24:27 +0000 (17:24 +0000)
committerMichael Meeks <mmeeks@src.gnome.org>
Mon, 23 Aug 1999 17:24:27 +0000 (17:24 +0000)
Preliminary toolbar stuff.

pdf/xpdf/ChangeLog
pdf/xpdf/Makefile.am
pdf/xpdf/bonobo-image-x-pdf.cc
pdf/xpdf/gpdf.cc
pdf/xpdf/pdfimages.cc
pdf/xpdf/pdfinfo.cc
pdf/xpdf/pdftopbm.cc
pdf/xpdf/pdftops.cc
pdf/xpdf/pdftotext.cc

index ca4b0a4f1d86accb0bd626982125da3808d76b9a..d9998c30c3daeed08a8aa62a17a9382e84808d5e 100644 (file)
@@ -1,3 +1,9 @@
+1999-08-23  Michael Meeks  <michael@imaginator.com>
+
+       * Makefile.am: Added helper programs back in.
+
+       * bonobo-image-x-pdf.cc (view_create_menus): Toolbars.
+
 1999-08-23  Miguel de Icaza  <miguel@gnu.org>
 
        * bonobo-image-x-pdf.cc: Replace exit() with gtk_main_quit()
index 9e7873d589d0ea9c4176770cadb02bcfed44c510..b72a32ab3536191821ebfde33aa4dfc62f53fd79 100644 (file)
@@ -11,9 +11,7 @@ else
 gui = xpdf
 endif
 
-#bin_PROGRAMS = pdftops pdftotext pdfinfo pdftopbm pdfimages $(gui) bonobo-image-x-pdf
-# Wait for Derek to send updated pdfto*
-bin_PROGRAMS = $(gui) bonobo-image-x-pdf
+bin_PROGRAMS = pdftops pdftotext pdfinfo pdftopbm pdfimages $(gui) bonobo-image-x-pdf
 
 common_sources =               \
        Array.cc                \
index 3a36ecf8630e36a8b1a221e5123d85f710a80d3d..ac45e1583729e6e525230bc04443259f08f68a2e 100644 (file)
@@ -40,7 +40,6 @@ extern "C" {
 #include "BonoboStream.h"
 
 #define PDF_DEBUG 0
-#define UNTESTED 0
 
 GBool printCommands = gFalse;
 
@@ -472,25 +471,23 @@ view_create_menus (view_data_t *view_data)
                                  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
-                                
 }
 
 /*
index 5fc249eb23d4c104fa1dc0602c57166a2c282aa8..ba956e437d5ee59d6f7203a3a681656289d7eb4e 100644 (file)
@@ -41,8 +41,6 @@ extern "C" {
 #include "Error.h"
 #include "config.h"
 
-#define UNTESTED 0
-
 poptContext ctx;
 gint  gpdf_debug=0;
 
@@ -611,18 +609,12 @@ container_create_menus (Container *container)
 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 *
index 3742249613ff95e030c683a3b87ba808d70f2079..5ab74fbd988db3cc14163767d2d5f1fad8f7d82b 100644 (file)
@@ -72,9 +72,9 @@ int main(int argc, char *argv[]) {
   // read config file
   initParams(xpdfConfigFile);
 
-  // open PDF fihe
+  // open PDF file
   xref = NULL;
-  doc = new PDFDoc(new FileStream(fileOpen(fileName)), fileName);
+  doc = new PDFDoc(fileName);
   if (!doc->isOk()) {
     goto err1;
   }
index 510e12e7bba66dcfdbc70a501077f98da09b09e7..2c183c8385d77f288e8719b93f79a2102d656fcc 100644 (file)
@@ -61,7 +61,7 @@ int main(int argc, char *argv[]) {
 
   // open PDF file
   xref = NULL;
-  doc = new PDFDoc(new FileStream(fileOpen(fileName)), fileName);
+  doc = new PDFDoc(fileName);
   if (!doc->isOk())
     exit(1);
 
index c77130e3f74a88412d3e752c88332271d393a500..6cfe83059f9918af01ec5256516786973d713705 100644 (file)
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
 
   // open PDF file
   xref = NULL;
-  doc = new PDFDoc(new FileStream (fileOpen (fileName)), fileName);
+  doc = new PDFDoc(fileName);
   if (!doc->isOk())
     exit(1);
 
index 07dca22d960bea6d65ff61cee84299ee210c2701..d6fd6534258de72c0d12915936f610ff1cc97a37 100644 (file)
@@ -61,7 +61,6 @@ int main(int argc, char *argv[]) {
   PDFDoc *doc;
   GString *fileName;
   GString *psFileName;
-  FILE *file;
   PSOutputDev *psOut;
   GBool ok;
   char *p;
@@ -88,7 +87,7 @@ int main(int argc, char *argv[]) {
 
   // open PDF file
   xref = NULL;
-  doc = new PDFDoc(new FileStream (fileOpen (fileName)), fileName);
+  doc = new PDFDoc(fileName);
   if (!doc->isOk()) {
     goto err1;
   }
index 95ae83290eb787d121108f6aa03f09253a368861..189d4898fc89c333d115f409e5dde1c26fd87036 100644 (file)
@@ -84,7 +84,7 @@ int main(int argc, char *argv[]) {
 
   // open PDF file
   xref = NULL;
-  doc = new PDFDoc(new FileStream (fileOpen(fileName)), fileName);
+  doc = new PDFDoc(fileName);
   if (!doc->isOk()) {
     goto err1;
   }