]> www.fi.muni.cz Git - evince.git/commitdiff
distribute gpdf-window-ui.xml GPDF_FOR_GNOME_1_4
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>
Fri, 4 Oct 2002 14:42:36 +0000 (14:42 +0000)
committerMartin Kretzschmar <mkretzschmar@src.gnome.org>
Fri, 4 Oct 2002 14:42:36 +0000 (14:42 +0000)
* shell/Makefile.am (EXTRA_DIST): distribute gpdf-window-ui.xml

* shell/gpdf-window-ui.xml: new file, based on xpdf/gpdf-ui.xml

* shell/gpdf.c (GPDF_IS_NON_NULL_WINDOW): add macro
(GW_RETURN_UNLESS_GW, GW_RETURN_VAL_UNLESS_GW): kill macros, use
GPDF_IS_NON_NULL_WINDOW with g_return_bla instead, this looks
more G'ish to me

* xpdf/.cvsignore: ignore gnome-pdf-viewer binary

* xpdf/Makefile.am (XML_FILES): don't distribute gpdf-ui.xml
(EXTRA_DIST): no ChangeLog here

* xpdf/gpdf-ui.xml: remove

* xpdf/gpdf-control-ui.xml: new file, based on
bonobo-application-x-pdf-ui.xml, half-hearted attempts to be
HIG-compliant

* xpdf/gpdf-control.cc (GPDF_IS_NON_NULL_CONTROL): add, use it
(gc_key_press_event): keyhandling mostly copied from embeddable
(verb_GoPagePrev_cb, verb_GoPageNext_cb, verb_GoPageFirst_cb)
(verb_GoPageLast_cb, gc_verbs []): add page verbs
(gc_set_ui_container, gc_unset_ui_container)
(gpdf_control_activate): install UI merging
(gc_set_zoom_items_visibility): only a dummy
(gpdf_control_construct): decompose into:
(gc_setup_persist, gc_setup_widgets): construct helpers

* xpdf/gpdf-embeddable-view.cc: use pdf_view_page_bla

* xpdf/gpdf-embeddable.h (bed_t): kill already unused typedef

* xpdf/pdf-view.h (pdf_view_page_prev, pdf_view_page_next)
(pdf_view_page_first, pdf_view_page_last): export

* xpdf/pdf-view.cc (first_page, last_page, next_page, prev_page):
static again
(pdf_view_page_prev, pdf_view_page_next, pdf_view_page_first)
(pdf_view_page_last): methods to be called by the control (and the
embeddable view) to do what their names say
(IS_NON_NULL_PDF_VIEW): like IS_PDF_VIEW with obvious extra check

pdf/xpdf/.cvsignore
pdf/xpdf/Makefile.am
pdf/xpdf/gpdf-ui.xml [deleted file]

index 6635416bb978c04e6d52cd1ae3aeca458dffe6b7..301a46b56fef6426a7b3f53d096377cebdcff5cc 100644 (file)
@@ -3,6 +3,7 @@
 Makefile
 Makefile.in
 bonobo-application-x-pdf
+gnome-pdf-viewer
 gpdf 
 pdfimages
 pdfinfo
index 5965b8705e2f939b2c6e0cc2fde79675ab6e88be..3155607d483b9c0b94d35aa2ca9f70cd9b2bb7eb 100644 (file)
@@ -208,11 +208,11 @@ oafdir = $(datadir)/oaf
 oaf_DATA = GNOME_PDF.oafinfo
 
 XML_FILES =                            \
-       gpdf-ui.xml                     \
-       bonobo-application-x-pdf-ui.xml
+       bonobo-application-x-pdf-ui.xml \
+       gpdf-control-ui.xml
 
 uidir = $(datadir)/gnome/ui
 ui_DATA = $(XML_FILES)
 
-EXTRA_DIST = $(stock_DATA) ChangeLog $(ltk)    \
+EXTRA_DIST = $(stock_DATA) $(ltk)      \
              $(oaf_DATA) config.h $(XML_FILES)
diff --git a/pdf/xpdf/gpdf-ui.xml b/pdf/xpdf/gpdf-ui.xml
deleted file mode 100644 (file)
index 7a52076..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<Root>
-
-<commands>
-        <cmd name="FileOpen" _label="Open" _tip="Open a file"
-       pixtype="stock" pixname="Open" accel="F3"/>
-       
-        <cmd name="FileClose" _label="Close"
-       _tip="Close the current file" pixtype="stock" pixname="Close"
-       accel="*Control*w"/>
-       
-        <cmd name="FileExit" _label="Exit" _tip="Exit the program"
-           pixtype="stock" pixname="Exit" accel="*Control*q"/>
-
-        <cmd name="FilePrint" _label="Print"
-       _tip="Print the current file" pixtype="stock" pixname="Print" hidden="0"/>
-       
-        <cmd name="FilePrintSetup" _label="Print Setup"
-          _tip="Setup the page settings for your current printer"
-         pixtype="stock" pixname="Print" hidden="0"/>
-
-        <cmd name="HelpAbout" _label="About..." _tip="About this application"
-        pixtype="stock" pixname="About"/>
-
-       <cmd name="DebugDumpXml" _label="Dump XML" _tip="Dump the UI Xml description"/>
-
-</commands>
-
-<menu>
-
-       <submenu name="File" _label="_File">
-        
-               <menuitem name="FileOpen" verb="" _label="_Open..."/>
-       
-               <placeholder name="FileOps"/>
-
-               <placeholder name="Print" delimit="top">
-
-                       <menuitem name="FilePrint" verb="" _label="_Print"/>
-       
-                       <menuitem name="FilePrintSetup" verb="" _label="Print S_etup..."/>
-
-               </placeholder>
-       
-               <menuitem name="FileClose" verb="" _label="_Close"/>
-       
-               <separator/>
-
-               <menuitem name="FileExit" verb="" _label="E_xit"/>
-
-       </submenu>
-
-       <placeholder name="Component"/>
-
-       <submenu name="Help" _label="_Help">
-       
-               <placeholder name="BuiltMenuItems"/>
-
-               <menuitem name="HelpAbout" verb="" _label="_About..."/>
-
-       </submenu>
-
-       <submenu name="Debug" _label="_Debug" hidden="1">
-
-               <menuitem name="DebugDumpXml" verb=""/>
-
-       </submenu>
-</menu>
-
-<dockitem name="Toolbar" behavior="exclusive">
-
-       <toolitem name="open" verb="FileOpen"/>
-        <toolitem name="print" verb="FilePrint"/>
-        <separator/>
-
-</dockitem>
-
-<status>
-       <item name="main"/>
-</status>
-
-</Root>
\ No newline at end of file