Which subsequently causes g_malloc0 to fail and return NULL.
cb.patch
Description: Binary data
___
zathura mailing list
zathura@lists.pwmt.org
http://lists.pwmt.org/mailman/listinfo/zathura
This patch moves the page initialization code to read_archive(), so that
the program can retrive the dimensions of all pages in one read loop
instead of reopening the archive and searching through it over and over
again.
Also, instead of decoding the entire image just to get its dimensions, the
in
Quick patch to center-align pages that have different sizes.
Also fixes a bug that forces all the ZathuraPages to the size of the
largest one, therefore causing GTK's default background color to be
drawn instead of the one set in zathurarc.
This feels kind of hacky, though. In the long term, it mi
>From a first look at it, this leaks all old GtkAlignment instances on every
>page_widget_set_mode call.
Whoops, you're right. I misunderstood the purpose of gtk_widget_reparent.
Here's the patch v2.
diff --git a/zathura.c b/zathura.c
index 75aabc5..49a78b0 100644
--- a/zathura.c
+++ b/zathura.c