Hi,

Commit 5a992d2d460c0 introduced a type mismatch that breaks synctex forward
search, failing with a DBus.Error.InvalidArgs.

I attach a fix.

Abdó.

>From 48eb6481cfcb18d0d9da3d1cb7ff00d21a26ca27 Mon Sep 17 00:00:00 2001
From: Abdo Roig-Maranges <abdo.r...@gmail.com>
Date: Sat, 18 Jan 2014 18:10:26 +0100
Subject: [PATCH] fix type mismatch that broke synctex forward search

The problem was introduced in commit 5a992d2d460c0.
---
 dbus-interface.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dbus-interface.c b/dbus-interface.c
index ce9ea64..ee3dc6d 100644
--- a/dbus-interface.c
+++ b/dbus-interface.c
@@ -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);
     }
 
-    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) {
       GIRARA_LIST_FOREACH(secondary_rects, synctex_page_rect_t*, iter, rect)
         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,
       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_builder_unref(builder);
     if (ret == NULL) {
-- 
1.8.5.3

_______________________________________________
zathura mailing list
zathura@lists.pwmt.org
http://lists.pwmt.org/mailman/listinfo/zathura

Reply via email to