]> www.fi.muni.cz Git - evince.git/commit
Work with OAF and fix various bugs:
authorMaciej Stachowiak <mstachow@src.gnome.org>
Sun, 7 May 2000 19:05:40 +0000 (19:05 +0000)
committerMaciej Stachowiak <mstachow@src.gnome.org>
Sun, 7 May 2000 19:05:40 +0000 (19:05 +0000)
commit9c4aa5453d1eaaa13eacb1d44e36c013be9cf3f9
tree46ec5b24dfe0f9328bbbb3eb4f3564f790720a9d
parentca48d2651f141a7b3e451af043f12ef999c25995
Work with OAF and fix various bugs:

* configure.in, aclocal.m4: Detect when Bonobo is built with OAF
support, and if so use OAF.
* xpdf/Makefile.am: When using OAF, link against OAF and install
oafinfo file.
* xpdf/gpdf.cc: Include oaf headers when using OAF.
(openpdf): Use OAFIID to activate the component when using OAF.
(container_set_view), (container_launch_component),
(container_new): Put the view in an EventBox, not a
ScrolledWindow; the component now handles scrolling itself.
(key_press_event_cb): Removed; key press handling moved to
component.
(main): Initialize OAF instead of GOAD when using OAF.
* xpdf/bonobo-application-x-pdf.cc: Include OAF headers when using
OAF.
(redraw_view): Handle the case where we are loading before the
view is realized by connecting to the "realize" signal handler
and deferring redrawing until then in that case.
(real_redraw_view): Function to do the real redrawing.
(load_pdf_from_stream): Don't call `realize_mainbox' directly, let
`real_redraw_view' do it.
(key_press_event_cb): In response to various key bindings, scroll
the view, navigate pages, or zoom in/out.
(button_press_event_cb): Grab the keyboard focus on a press of
button 1.
(view_create_menus): Rename menus to be more standard, and provide
accelerators for menus and items.
(realize_mainbox): Get window ourselves if we have to.
(view_factory): Put the view in a scrolled window so scrolling can
be handled by the component itself. Connect to "key_press" and
"button_press" for keyboard and focus handling. Set the
GTK_CAN_FOCUS flag for the main view widget.
(init_bonobo_application_x_pdf_factory, init_server_factory): Use
OAF when appropriate.

* xpdf/application-x-pdf.oafinfo: New file, OAF activation record.
pdf/xpdf/GNOME_PDF.oafinfo [new file with mode: 0644]
pdf/xpdf/GNOME_XPDF.oafinfo [new file with mode: 0644]
pdf/xpdf/Makefile.am
pdf/xpdf/application-x-pdf.oafinfo [new file with mode: 0644]
pdf/xpdf/gpdf.cc