[zathura] [PATCH] Correctly handle archive_read_data_block() returning a size of 0

2013-05-16 Thread akbjker #
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

[zathura] [PATCH] Optimize initial loading time

2013-05-27 Thread akbjker
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

[zathura] [PATCH] Center pages

2014-01-19 Thread akbjker
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

Re: [zathura] [PATCH] Center pages

2014-01-20 Thread akbjker
>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