[zathura/f18] import patch from 0.2.3 to display a warning when no plugin is available

François Cami fcami at fedoraproject.org
Thu May 30 12:22:52 UTC 2013


commit 4b550027528b78fb2595adde4e14469b28245dad
Author: François Cami <fcami at fedoraproject.org>
Date:   Thu May 30 14:06:54 2013 +0200

    import patch from 0.2.3 to display a warning when no plugin is available

 zathura-0.2.2-missing-or-unknown-file-type.patch |   24 ++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/zathura-0.2.2-missing-or-unknown-file-type.patch b/zathura-0.2.2-missing-or-unknown-file-type.patch
new file mode 100644
index 0000000..8c1557c
--- /dev/null
+++ b/zathura-0.2.2-missing-or-unknown-file-type.patch
@@ -0,0 +1,24 @@
+diff -rU3 zathura-0.2.3/document.c zathura-0.2.3-patched/document.c
+--- zathura-0.2.3/document.c	2013-05-12 23:28:52.000000000 +0200
++++ zathura-0.2.3-patched/document.c	2013-05-28 21:24:19.585439351 +0200
+@@ -110,6 +110,7 @@
+ 
+   if (plugin == NULL) {
+     girara_error("unknown file type\n");
++    error = ZATHURA_ERROR_UNKNOWN;
+     goto error_free;
+   }
+ 
+diff -rU3 zathura-0.2.3/zathura.c zathura-0.2.3-patched/zathura.c
+--- zathura-0.2.3/zathura.c	2013-05-12 23:28:52.000000000 +0200
++++ zathura-0.2.3-patched/zathura.c	2013-05-28 21:24:25.955414704 +0200
+@@ -578,6 +578,9 @@
+       }
+       goto error_out;
+     }
++    if (error == ZATHURA_ERROR_OK ) {
++      girara_notify(zathura->ui.session, GIRARA_ERROR, _("Unsupported file type. Please install the necessary plugin."));
++    }
+     goto error_out;
+   }
+ 


More information about the scm-commits mailing list