Commit Graph

1696 Commits

Author SHA1 Message Date
Sebastian Ramacher
35f278e1f3 Add shortcuts for ^C and Esc in all modes
This should fix #392 and hopefully doesn't break anything else.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-02-14 12:59:25 +01:00
Sebastian Ramacher
70f8e20e19 Use the actual mode in mode toggle calls 2014-02-14 12:11:12 +01:00
Sebastian Ramacher
806b69a1fe Disable a mode_set call that hasn't been doing anything for ages
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-02-14 12:09:47 +01:00
Sebastian Ramacher
a85decc8cc Only copy selected text in normal and fullscreen mode
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-02-14 11:46:17 +01:00
Sebastian Ramacher
f2fbf92621 Update po
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-31 10:37:16 +01:00
Sebastian Ramacher
a45cd0a474 CS
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-31 10:33:25 +01:00
Sebastian Ramacher
ac8be2d528 Translate error messages
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-31 10:19:27 +01:00
Sebastian Ramacher
eea53de243 Correctly safe print setting state
Since we are running the operation asynchronsly, we need to store the print
settings in a callback for the done signal.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-30 22:42:53 +01:00
Sebastian Ramacher
ace31581b4 Add --mode option
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-29 20:59:45 +01:00
Sebastian Ramacher
76e456ef4c Expose more properties via D-Bus
Thanks to Ork for the initial patch.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-28 18:32:07 +01:00
Sebastian Ramacher
935964bbf5 Remove unused zathura_adjustment_clone
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 18:06:38 +01:00
Sebastian Ramacher
71e10b5f3c Add a cast
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 17:31:46 +01:00
Sebastian Ramacher
b6778e390d Merge branch 'list-2014-01-20' into develop 2014-01-20 17:30:30 +01:00
akbjker
bb47adb270 Center pages
Whoops, you're right. I misunderstood the purpose of gtk_widget_reparent.

Here's the patch v2.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 16:33:30 +01:00
Sebastian Ramacher
3e5d7816c2 More documentation for synctex support
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 16:31:53 +01:00
Sebastian Ramacher
d43e1f07ff Add --synctex-pid option for the case where the process is known
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 01:53:09 +01:00
Sebastian Ramacher
9c45dd5278 Fix a return
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-20 00:55:39 +01:00
Sebastian Ramacher
34b5c556fe GObject references should be unref'd in dispose
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 21:03:40 +01:00
Sebastian Ramacher
693f1d713a GObject references should be unref'd in dispose
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 20:53:44 +01:00
Sebastian Ramacher
207f57b33b Call parent's finalize
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 20:50:54 +01:00
Sebastian Ramacher
af40bbabad Only allocate dynamically if we add to the list
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 19:42:54 +01:00
Sebastian Ramacher
7fc2b365ba g_try_realloc behaves like realloc
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 19:39:58 +01:00
Sebastian Ramacher
d83d7bc7d9 Create zathura instance later
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 17:17:14 +01:00
Sebastian Ramacher
3524c6da23 Add extra element for NULL at the end
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 17:15:09 +01:00
Sebastian Ramacher
71ef7c7eed Fix some memory leaks and a use after free
Also return proper D-Bus errors

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-19 17:09:33 +01:00
Moritz Lipp
0fc5b80121 Replace glib memory functions with try version 2014-01-19 16:47:08 +01:00
Sebastian Ramacher
bafbedbcef Add missing include
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-18 22:01:07 +01:00
Abdo Roig-Maranges
e17bb81cc3 honor search-hadjust setting in synctex forward search
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-18 21:59:50 +01:00
Sebastian Ramacher
fa06f015ba Deprecate scrollbar settings and update guioptions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-18 19:33:37 +01:00
Abdo Roig-Maranges
e72b2d52d4 fix type mismatch that broke synctex forward search
The problem was introduced in commit 5a992d2d46.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-18 18:21:44 +01:00
Abdo Roig-Maranges
633889f291 align highlighted rectangles correctly
Align center of the rectangle with the center of the viewport, vor both
keyword searches and synctex forward search.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 16:39:55 +01:00
Abdo Roig-Maranges
1a8e211a3b properly scale and rotate rectangle
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 16:38:11 +01:00
Abdo Roig-Maranges
ad4f5f5f79 fix rectangles subindex. Need page not 0
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 16:35:56 +01:00
Sebastian Ramacher
5a992d2d46 Make page an integer where possible
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 16:31:01 +01:00
Sebastian Ramacher
bfb3acc1b1 Fix the page number once while parsing the synctex output
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 16:21:44 +01:00
Abdo Roig-Maranges
2778868599 fix page range check
In those cases, page is in the range [1...N], both ends included.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-17 15:39:24 +01:00
Sebastian Ramacher
0e733af2a5 Fix some bugs in the D-Bus and synctex code
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-15 20:59:18 +01:00
Sebastian Ramacher
51267cdae0 Jump to the first rectangle 2014-01-15 20:38:42 +01:00
Sebastian Ramacher
8200dd0884 Get rid of ZATHURA_GTK_VERSION
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-15 18:50:06 +01:00
Sebastian Ramacher
e5b951451a Uninstall D-Bus interface definitions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-15 17:56:09 +01:00
Sebastian Ramacher
5a9f53b2b7 Add a header for D-Bus interface definitions
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-15 17:55:54 +01:00
Sebastian Ramacher
2eeaef341c Remove unused includes
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-14 18:13:14 +01:00
Sebastian Ramacher
5021767a18 Split of guess_content_type
… and use it everywhere we want to get the content type of a file.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-14 18:01:34 +01:00
Sebastian Ramacher
74fd28b4b2 Send rectangles not on the main page too
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-14 16:15:34 +01:00
Sebastian Ramacher
7e6112d883 Use the appropriate constant
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-12 23:29:33 +01:00
Sebastian Ramacher
8b701f609c Finish renaming
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-12 22:23:29 +01:00
Sebastian Ramacher
c64b4f545a Just support latexsuite for now
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 23:11:59 +01:00
Sebastian Ramacher
b6af22c525 Draw 'search' result
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 22:24:35 +01:00
Sebastian Ramacher
b6c018ca87 Add more methods to D-Bus interface
… and improve the rest.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 22:04:49 +01:00
Sebastian Ramacher
d0b7676bc3 Just return a list of rectangles
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 22:04:14 +01:00