Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marius
zathura
Commits
b6af22c5
Commit
b6af22c5
authored
Jan 11, 2014
by
Sebastian Ramacher
Browse files
Draw 'search' result
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
b6c018ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
data/org.pwmt.zathura.xml
View file @
b6af22c5
...
...
@@ -21,7 +21,7 @@
<!-- Go to a page and highlight rectangles there. -->
<method
name=
'HighlightRects'
>
<arg
type=
'i'
name=
'page'
direction=
'in'
/>
<arg
type=
'a(dddd)'
name=
'rectangles'
direction=
'
out
'
/>
<arg
type=
'a(dddd)'
name=
'rectangles'
direction=
'
in
'
/>
<arg
type=
'b'
name=
'return'
direction=
'out'
/>
</method>
<property
type=
's'
name=
'filename'
access=
'read'
/>
...
...
synctex-dbus.c
View file @
b6af22c5
...
...
@@ -233,7 +233,7 @@ handle_method_call(GDBusConnection* UNUSED(connection),
GObject
*
widget
=
G_OBJECT
(
priv
->
zathura
->
pages
[
page
-
1
]);
g_object_set
(
widget
,
"draw-links"
,
FALSE
,
"search-results"
,
rectangles
,
"search-current"
,
0
,
NULL
);
"search-current"
,
0
,
"draw-search-results"
,
TRUE
,
NULL
);
}
}
...
...
@@ -267,8 +267,11 @@ static const GDBusInterfaceVTable interface_vtable =
static
const
unsigned
int
TIMEOUT
=
3000
;
bool
zathura_dbus_goto_page_and_highlight
(
const
char
*
filename
,
int
page
,
girara_list_t
*
rectangles
)
zathura_dbus_goto_page_and_highlight
(
const
char
*
filename
,
int
page
,
girara_list_t
*
rectangles
)
{
/* note: page is [1, number_of_pages] here */
if
(
filename
==
NULL
)
{
return
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment