Commit b6af22c5 authored by Sebastian Ramacher's avatar Sebastian Ramacher

Draw 'search' result

Signed-off-by: Sebastian Ramacher's avatarSebastian Ramacher <sebastian+dev@ramacher.at>
parent b6c018ca
......@@ -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' />
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment