mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:05:59 +01:00
fix type mismatch that broke synctex forward search
The problem was introduced in commit 5a992d2d46
.
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
633889f291
commit
e72b2d52d4
1 changed files with 2 additions and 2 deletions
|
@ -426,7 +426,7 @@ zathura_dbus_goto_page_and_highlight(const char* filename, unsigned int page,
|
||||||
GIRARA_LIST_FOREACH_END(rectangles, zathura_rectangle_t*, iter, rect);
|
GIRARA_LIST_FOREACH_END(rectangles, zathura_rectangle_t*, iter, rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
GVariantBuilder* second_builder = g_variant_builder_new(G_VARIANT_TYPE("a(idddd)"));
|
GVariantBuilder* second_builder = g_variant_builder_new(G_VARIANT_TYPE("a(udddd)"));
|
||||||
if (secondary_rects != NULL) {
|
if (secondary_rects != NULL) {
|
||||||
GIRARA_LIST_FOREACH(secondary_rects, synctex_page_rect_t*, iter, rect)
|
GIRARA_LIST_FOREACH(secondary_rects, synctex_page_rect_t*, iter, rect)
|
||||||
g_variant_builder_add(second_builder, "(udddd)", rect->page,
|
g_variant_builder_add(second_builder, "(udddd)", rect->page,
|
||||||
|
@ -436,7 +436,7 @@ zathura_dbus_goto_page_and_highlight(const char* filename, unsigned int page,
|
||||||
|
|
||||||
GVariant* ret = g_dbus_connection_call_sync(connection,
|
GVariant* ret = g_dbus_connection_call_sync(connection,
|
||||||
name, DBUS_OBJPATH, DBUS_INTERFACE, "HighlightRects",
|
name, DBUS_OBJPATH, DBUS_INTERFACE, "HighlightRects",
|
||||||
g_variant_new("(ua(dddd)a(idddd))", page, builder, second_builder),
|
g_variant_new("(ua(dddd)a(udddd))", page, builder, second_builder),
|
||||||
G_VARIANT_TYPE("(b)"), G_DBUS_CALL_FLAGS_NONE, TIMEOUT, NULL, &error);
|
G_VARIANT_TYPE("(b)"), G_DBUS_CALL_FLAGS_NONE, TIMEOUT, NULL, &error);
|
||||||
g_variant_builder_unref(builder);
|
g_variant_builder_unref(builder);
|
||||||
if (ret == NULL) {
|
if (ret == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue