mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-15 04:45:59 +01:00
Draw 'search' result
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
b6c018ca87
commit
b6af22c525
2 changed files with 6 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
||||||
<!-- Go to a page and highlight rectangles there. -->
|
<!-- Go to a page and highlight rectangles there. -->
|
||||||
<method name='HighlightRects'>
|
<method name='HighlightRects'>
|
||||||
<arg type='i' name='page' direction='in' />
|
<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' />
|
<arg type='b' name='return' direction='out' />
|
||||||
</method>
|
</method>
|
||||||
<property type='s' name='filename' access='read' />
|
<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]);
|
GObject* widget = G_OBJECT(priv->zathura->pages[page - 1]);
|
||||||
g_object_set(widget, "draw-links", FALSE, "search-results", rectangles,
|
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;
|
static const unsigned int TIMEOUT = 3000;
|
||||||
|
|
||||||
bool
|
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) {
|
if (filename == NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue