Age | Commit message (Collapse) | Author | Files | Lines |
|
Quoting the BROWSER variable is nice to protect against spaces in the
filename, but it keeps multiple arguments from passing through. The
latter is more useful as it allows you to do things like
BROWSER="gdb --args epiphany" ./test/browser.sh.
|
|
This ensures that it doesn't open with the same (failed) tabs as last
time.
|
|
GtkSocket/GtkPlug behave differently when the plug is embedded in the
same process rather than running in a separate process. It seems that
epiphany does the former while firefox does the latter and that might be
causing some of the behavioral differences.
When the previewer is run without options, the plug is embedded in the
same proceess. When executed with the -f/--fork option, the plug is run
from a separate process.
|
|
On newer glib, G_MESSAGES_DEBUG controls which domains get their debug
messages printed. Set this in addition to the local EVBP_DEBUG setup so
that debug messages are received on older and newer glib.
|
|
Instead of hardcoding the test script to use firefox only, make it more
flexible so that other epiphany and other Mozilla browsers can be
started.
|
|
Mozilla browsers allow starting a totally separate instance when a
profile is specified and -no-remote is passed on the command line. This
allows much easier testing without killing any currently running
browsers.
|
|
To make things more useful for GNOME/epiphany, which is squarely in gtk3
land, allow building both the gtk2 and gtk3 versions of the plugin. I'm
not sure what will happen when both plugin's are in the browser's path.
A subsequent patch will allow finer grained control of the installation
directory.
|
|
This plugs a big hole in the previewer test app where the widget was
used differently than in the browser. Now they both get instantiated
through GtkSocket/GtkPlug.
|
|
Rather than build all the EvbpViewer sources twice, make a convience
library for the tests to link to. This does add the unfortunate effect
of relinking libevbp-viewer.la and libevbp.la every time there's a
change in the source, though.
|
|
When we try to construct the filename from the document title, use the
mime type mappings to get a suffix.
|
|
|
|
|
|
This adds the page selector widget to the toolbar with actions. The code
is copied directly from evince's libmisc.
|
|
It turns out that the reason the toolbar was getting focus first for
my previewer and not the real evince-previewer was that the toolbar
buttons were set as sensitive when the widget was shown. If instead
the document is loaded after the window is shown like in both the
plugin and the real previewer, then the initial focus will be on the
scrolled window as desired.
|
|
Some simple html to show both local and remote PDFs in their own
window and as objects embedded on the page. It should probably have a
couple more file types, too.
|
|
Add back the toolbar to the EvbpViewer widget. As on the previous
attempt, the UI manager XML is being kept inline so now external files
are needed. Right now this just has the page up/down buttons.
|
|
Start building up a widget object, EvbpViewer, again. Once we're doing
anything more complicated than just putting an EvView in a scrolled
window, it'll help to keep most of it in it's own widget. The widget
subclasses GtkBox so we can just put a toolbar and scrolled window in.
|
|
A simple wrapper script setting the plugin path to include the built
library, enabling the debug messages, and loading the test pdf unless
told otherwise. An environment variable EVBP_PROFILE allows to use a
specific firefox profile rather than the default.
|
|
We really only need the headers for xulrunner and nspr and don't want
to link anything since the symbols will all resolve at runtime when
the plugin is loaded.
|
|
I wrote a lot of this last year.
|
|
The code is very similar to the plugin and gives an opportunity to
make sure the way we use evince still works correctly.
|
|
GPL seems more appropriate than LGPL at this point since I can't see
anyone linking to this code. And v2+ seems like a good compromise
since so many people are anti-v3.
|
|
And it works! Instead of using the EvPreviewer object, just create the
documents and widgets straight in the plugin. This removes the toolbar
for now and just leaves a scrolled window for the view. We'll get that
back later.
|
|
|
|
We could hardcode a list of likely MIME types that the plugin will
support, but we can get the information directly from evince's
backends manager. A mapping from mime type to file extension (which
Mozilla wants) is used and contains all the MIME types supported by
evince as of gnome-2-30.
A small test program has been added to show the constructed MIME
description as used by Mozilla.
|
|
For GCC, allow the warning flags to enabled. Turn them on by default so
we see things ahead of time.
|
|
The test program is a just a simple exerciser for the EvPreviewer
widget, and the pdf is borrowed from evince.
|