View | Details | Raw Unified | Return to bug 196438 | Differences between
and this patch

Collapse All | Expand All

(-)graphics/zathura/Makefile (-2 / +7 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	zathura
4
PORTNAME=	zathura
5
PORTVERSION=	0.2.9
5
PORTVERSION=	0.3.2
6
CATEGORIES=	graphics print
6
CATEGORIES=	graphics print
7
MASTER_SITES=	http://pwmt.org/projects/zathura/download/
7
MASTER_SITES=	http://pwmt.org/projects/zathura/download/
8
8
Lines 9-14 Link Here
9
MAINTAINER=	quentin.stievenart@gmail.com
9
MAINTAINER=	quentin.stievenart@gmail.com
10
COMMENT=	Customizable lightweight pdf viewer
10
COMMENT=	Customizable lightweight pdf viewer
11
11
12
LICENSE=	pwmt
13
LICENSE_NAME=	pwmt license
14
LICENSE_FILE=	${WRKSRC}/LICENSE
15
LICENSE_PERMS=	dist-mirror pkg-mirror auto-accept
16
12
LIB_DEPENDS=	libcairo.so:${PORTSDIR}/graphics/cairo \
17
LIB_DEPENDS=	libcairo.so:${PORTSDIR}/graphics/cairo \
13
		libgirara-gtk3.so:${PORTSDIR}/x11-toolkits/girara
18
		libgirara-gtk3.so:${PORTSDIR}/x11-toolkits/girara
14
BUILD_DEPENDS+=	rst2html:${PORTSDIR}/textproc/py-docutils
19
BUILD_DEPENDS+=	rst2html:${PORTSDIR}/textproc/py-docutils
Lines 52-58 Link Here
52
		-e 's/DL_LIB /#&/' \
57
		-e 's/DL_LIB /#&/' \
53
		${WRKSRC}/config.mk
58
		${WRKSRC}/config.mk
54
	${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
59
	${REINPLACE_CMD} -e 's|/etc|${PREFIX}&|g' \
55
		${WRKSRC}/config.h \
60
		${WRKSRC}/zathura/config.h \
56
		${WRKSRC}/doc/man/zathurarc.5.rst
61
		${WRKSRC}/doc/man/zathurarc.5.rst
57
	(cd ${WRKSRC}; ${RM} -f zathura.1 zathurarc.5)
62
	(cd ${WRKSRC}; ${RM} -f zathura.1 zathurarc.5)
58
63
(-)graphics/zathura/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (zathura-0.2.9.tar.gz) = 2c071d403ec9348b839567b2897850bf29d9c24c85982b5509a1a429a72ee09f
1
SHA256 (zathura-0.3.2.tar.gz) = fda6503dc5b21f7c667301798fbd2c978897e68b4555e8c731945cecd9d165e2
2
SIZE (zathura-0.2.9.tar.gz) = 196690
2
SIZE (zathura-0.3.2.tar.gz) = 202943
(-)graphics/zathura/files/patch-zathura_page-widget.c (+76 lines)
Line 0 Link Here
1
X-Git-Url: https://git.pwmt.org/?p=zathura.git;a=blobdiff_plain;f=zathura%2Fpage-widget.c;h=ad27c273f1ba04b66dd8a84337febec3729a68af;hp=309f63321cdbc27694fcba964faa3c4ecc48295f;hb=8d71a755d648c5856ef91d214bfdb46925f6c2f0;hpb=10f3da57c65a8ed7d4d3beff3e49da2bcddcf7a7
2
3
diff --git zathura/page-widget.c zathura/page-widget.c.orig
4
index 309f633..ad27c27 100644
5
--- zathura/page-widget.c
6
+++ zathura/page-widget.c.orig
7
@@ -28,8 +28,8 @@ typedef struct zathura_page_widget_private_s {
8
 
9
   struct {
10
     girara_list_t* list; /**< List of links on the page */
11
-    bool retrieved; /**< True if we already tried to retrieve the list of links */
12
-    bool draw; /**< True if links should be drawn */
13
+    gboolean retrieved; /**< True if we already tried to retrieve the list of links */
14
+    gboolean draw; /**< True if links should be drawn */
15
     unsigned int offset; /**< Offset to the links */
16
     unsigned int n; /**< Number */
17
   } links;
18
@@ -37,12 +37,12 @@ typedef struct zathura_page_widget_private_s {
19
   struct {
20
     girara_list_t* list; /**< A list if there are search results that should be drawn */
21
     int current; /**< The index of the current search result */
22
-    bool draw; /**< Draw search results */
23
+    gboolean draw; /**< Draw search results */
24
   } search;
25
 
26
   struct {
27
     girara_list_t* list; /**< List of images on the page */
28
-    bool retrieved; /**< True if we already tried to retrieve the list of images */
29
+    gboolean retrieved; /**< True if we already tried to retrieve the list of images */
30
     zathura_image_t* current; /**< Image data of selected image */
31
   } images;
32
 
33
@@ -52,7 +52,7 @@ typedef struct zathura_page_widget_private_s {
34
       int x; /**< X coordinate */
35
       int y; /**< Y coordinate */
36
     } selection_basepoint;
37
-    bool over_link;
38
+    gboolean over_link;
39
   } mouse;
40
 } zathura_page_widget_private_t;
41
 
42
@@ -313,13 +313,13 @@ zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* v
43
     case PROP_DRAW_LINKS:
44
       priv->links.draw = g_value_get_boolean(value);
45
       /* get links */
46
-      if (priv->links.draw == true && priv->links.retrieved == false) {
47
+      if (priv->links.draw == TRUE && priv->links.retrieved == FALSE) {
48
         priv->links.list      = zathura_page_links_get(priv->page, NULL);
49
-        priv->links.retrieved = true;
50
+        priv->links.retrieved = TRUE;
51
         priv->links.n         = (priv->links.list == NULL) ? 0 : girara_list_size(priv->links.list);
52
       }
53
 
54
-      if (priv->links.retrieved == true && priv->links.list != NULL) {
55
+      if (priv->links.retrieved == TRUE && priv->links.list != NULL) {
56
         GIRARA_LIST_FOREACH(priv->links.list, zathura_link_t*, iter, link)
57
         if (link != NULL) {
58
           zathura_rectangle_t rectangle = recalc_rectangle(priv->page, zathura_link_get_position(link));
59
@@ -338,7 +338,7 @@ zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* v
60
       }
61
       priv->search.list = g_value_get_pointer(value);
62
       if (priv->search.list != NULL && priv->search.draw) {
63
-        priv->links.draw = false;
64
+        priv->links.draw = FALSE;
65
         redraw_all_rects(pageview, priv->search.list);
66
       }
67
       priv->search.current = -1;
68
@@ -355,7 +355,7 @@ zathura_page_widget_set_property(GObject* object, guint prop_id, const GValue* v
69
         priv->search.current = girara_list_size(priv->search.list);
70
       } else {
71
         priv->search.current = val;
72
-        if (priv->search.draw == true && val >= 0 && val < (signed) girara_list_size(priv->search.list)) {
73
+        if (priv->search.draw == TRUE && val >= 0 && val < (signed) girara_list_size(priv->search.list)) {
74
           zathura_rectangle_t* rect = girara_list_nth(priv->search.list, priv->search.current);
75
           zathura_rectangle_t rectangle = recalc_rectangle(priv->page, *rect);
76
           redraw_rect(pageview, &rectangle);
(-)graphics/zathura/files/patch-zathura_shortcuts.c (+20 lines)
Line 0 Link Here
1
X-Git-Url: https://git.pwmt.org/?p=zathura.git;a=blobdiff_plain;f=zathura%2Fshortcuts.c;h=93182c0835f3c41157637f7d2b78dbb7ff3b1328;hp=0e6ca6349a529a9faff75f2a445f7cf0b7a3c98c;hb=8d71a755d648c5856ef91d214bfdb46925f6c2f0;hpb=10f3da57c65a8ed7d4d3beff3e49da2bcddcf7a7
2
3
diff --git zathura/shortcuts.c zathura/shortcuts.c.orig
4
index 0e6ca63..93182c0 100644
5
--- zathura/shortcuts.c
6
+++ zathura/shortcuts.c.orig
7
@@ -861,9 +861,11 @@ sc_search(girara_session_t* session, girara_argument_t* argument,
8
   const unsigned int num_pages = zathura_document_get_number_of_pages(zathura->document);
9
   const unsigned int cur_page  = zathura_document_get_current_page_number(zathura->document);
10
   GtkWidget *cur_page_widget = zathura_page_get_widget(zathura, zathura_document_get_page(zathura->document, cur_page));
11
-  bool nohlsearch, first_time_after_abort, draw;
12
+  bool nohlsearch, first_time_after_abort;
13
+  gboolean draw;
14
 
15
-  nohlsearch = first_time_after_abort = draw = false;
16
+  nohlsearch = first_time_after_abort = false;
17
+  draw = FALSE;
18
   girara_setting_get(session, "nohlsearch", &nohlsearch);
19
 
20
   if (nohlsearch == false) {
(-)graphics/zathura/pkg-plist (+1 lines)
Lines 9-14 Link Here
9
libdata/pkgconfig/zathura.pc
9
libdata/pkgconfig/zathura.pc
10
man/man1/zathura.1.gz
10
man/man1/zathura.1.gz
11
man/man5/zathurarc.5.gz
11
man/man5/zathurarc.5.gz
12
share/appdata/zathura.appdata.xml
12
share/applications/zathura.desktop
13
share/applications/zathura.desktop
13
share/dbus-1/interfaces/org.pwmt.zathura.xml
14
share/dbus-1/interfaces/org.pwmt.zathura.xml
14
%%NLS%%share/locale/ca/LC_MESSAGES/zathura.mo
15
%%NLS%%share/locale/ca/LC_MESSAGES/zathura.mo

Return to bug 196438