Age | Commit message (Collapse) | Author | Files | Lines |
|
GtkWindow catches keybindings for the menu items _before_ passing them to
the focused widget. This is unfortunate and means that pressing ctrl+Left
arrow, Ctrl+Right arrow on the search bar ends up turning the EvView
instead of moving around the text.
Here we override GtkWindow's handler to do the same things that it
does, but in the opposite order and then we chain up to the grand
parent handler, skipping gtk_window_key_press_event.
See https://bugzilla.gnome.org/show_bug.cgi?id=676040
inspired from https://git.gnome.org/browse/evince/commit/?id=70a2c0780b1b44acfa18f4762a3400b89eb123b5
fix rhbz https://bugzilla.redhat.com/show_bug.cgi?id=1513826
|
|
and a loop to change their sensitivity
inspired from:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=d15eeda
https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=2ed0f3d
https://git.gnome.org/browse/evince/commit/?h=gnome-3-2&id=793361c
|
|
|
|
fixes https://github.com/mate-desktop/atril/issues/283
taken from:
https://git.gnome.org/browse/evince/commit/?id=c5a338c00253aeb88901c574ea150b3bd83634e7
|
|
|
|
|
|
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1f729d7
|
|
This is a quick fix for getting caret-navigation working in atril.
All this code needs to be reworked for epubs.
Note: caret-navigation is always enabled if text is selected with epubs,
for some reasons.
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3e468fa
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b2597d
|
|
Pending scroll SCROLL_TO_FIND_LOCATION, can jump to another page if the
location is in a different page. We should change the current page in
the model in this case too.
Origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=8709b39
|
|
If the cursor is not in a visible page
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=c187766
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=570927e
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=702079
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=fc9b6d1
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=702079
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6127a36
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=704616
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=830dd4e
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?id=f44ee84
|
|
Do not take into account the page area borders when looking the pages
where the selection starts or ends. This allows to start a new selection
from a page margin and prevents selection from disappearing when
selecting multiple pages and releasing the mouse between two pages.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4969e2b
|
|
when selection starts and ends at the same point
We can use the current page range in this case, since this will only
happen when starting a new word/line selection.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e92c98f
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=848459e
|
|
Actually return the text and offset range of the selected text in the
current page.
https://bugzilla.gnome.org/show_bug.cgi?id=704335
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=a178d26
|
|
Invalidate the previous and new regions instead.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=e39ac99
|
|
between lines
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=074dfec
|
|
Return 1 when there's selected text since evince only supports one
selection, and 0 if there isn't selected text.
https://bugzilla.gnome.org/show_bug.cgi?id=704396
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3a9d081
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=704399
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=32a67a6
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3666096
|
|
It will be scheduled if the adjustments change.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=0597aa7
|
|
Even though the caret cursor is not shown while there are active
selections we don't want the cursor blink timeout running and scheduling
redraws.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=41c660f
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4be9bc1
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=3e32b5d
|
|
They are handled by the EvView now.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1649067
|
|
They are handled by the EvView now.
We just leave the page up/down accels, so that they still work
even when the view is not focused.
origin commit (modified):
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=6a7c3db
|
|
All keybindings currently used by EvWindow. Having them in the view
makes them available to other EvView users and they can be overriden by
the themes.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=660b741
Fix Return key bidings
Do not use the helper function for keypad keys since Return doesn't have
a key un the keypad.
https://bugzilla.gnome.org/show_bug.cgi?id=704154
|
|
We were still using G_TYPE_BOOLEAN instead of GTK_TYPE_ORIENTATION. It
worked because both are integers in the end.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f9a65d4
|
|
This way only the regions affected by the selection are redrawn and we
don't need to schedule a full redraw every time clear_selection is
called.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4b4ea6c
|
|
orign commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1a9ba34
|
|
If we don't have a selection surface/region and points has been set, we
need a new selection surface/region even if the scale hasn't changed.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ca60329
|
|
from the document
https://bugzilla.gnome.org/show_bug.cgi?id=639932
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f8a0ce3
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=96b9a1
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=4592007
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=f72b619
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=701732
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=2590224
|
|
If the cursor is moved with left/right arrow keys the cursor moves the
beginning/end of the selection.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=9c3816b
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=702761
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=604cd6d
|
|
This way we just need to check the pointer returned.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=bf18b54
|
|
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=1691b14
|
|
And also the caret cursor location when positioned with the mouse when
clicking on areas with no text, like margins or even the space between
columns.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=415ab07
|
|
https://bugzilla.gnome.org/show_bug.cgi?id=702767
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=ac3800a
|
|
direction
If we are scrolling down schedule next pages first, otherwise schedule
the previous pages first.
origin commit:
https://git.gnome.org/browse/evince/commit/?h=gnome-3-10&id=b6f27b6
|