Commit graph

1889 commits

Author SHA1 Message Date
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
Sebastian Ramacher
26333fb20c Run D-Bus service all the time
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 22:03:36 +01:00
Sebastian Ramacher
7e2c0f2e1e Generate introspection data from XML file
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-11 21:48:41 +01:00
Sebastian Ramacher
8d2e331b1a Fix up some types
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-10 18:53:21 +01:00
Sebastian Ramacher
bacdc19d23 Implement G and gg for index mode
Closes: #52

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-10 17:46:22 +01:00
Sebastian Ramacher
dbe5f7429a One more check
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-10 16:11:43 +01:00
Sebastian Ramacher
c575fe5f83 Use strtok_r instead of strtok
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-10 16:07:03 +01:00
Sebastian Ramacher
2c02dd97e6 Use g_key_file_* to set/get doubles
And use locale-independent functions everywhere else.

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
2014-01-10 15:49:24 +01:00