summaryrefslogtreecommitdiff
blob: 71e20ea02ccb4829a8db4991ab3ef5fe5d025d84 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
From 3d34cc10a5e62686f661a6653d43e2c42e6a26a2 Mon Sep 17 00:00:00 2001
From: Sorokin Alexei <sor.alexei@meowr.ru>
Date: Sat, 12 Dec 2015 16:49:22 +0300
Subject: [PATCH] Fix compilation with enabled GObject Introspection

---
 configure.ac | 2 ++
 src/main.c   | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 9b829d0..b3d398f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,6 +142,8 @@ else
 	have_introspection=no
 fi
 
+AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$have_introspection" = xyes)
+
 # ***************
 # ZLIB (required)
 # ***************
diff --git a/src/main.c b/src/main.c
index cc999e2..f1b92f7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,7 +30,7 @@
 #include <dbus/dbus-glib-bindings.h>
 #include <gdk/gdkx.h>
 #endif
-#ifdef HAVE_INSTROSPECTION
+#ifdef HAVE_INTROSPECTION
 #include <girepository.h>
 #endif
 
From d6f68de8ed0722fdfecca9f81d68f2a0ff9b82bd Mon Sep 17 00:00:00 2001
From: Wolfgang Ulbrich <chat-to-me@raveit.de>
Date: Sun, 6 Dec 2015 23:58:24 +0100
Subject: [PATCH] fix some gobject-introspection build warnings

---
 src/uta.c | 30 ++++++++++++++----------------
 1 file changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/uta.c b/src/uta.c
index 8df97bc..c44834d 100644
--- a/src/uta.c
+++ b/src/uta.c
@@ -38,9 +38,7 @@
    be variables. They can also be pstruct->el lvalues. */
 #define eom_expand(p, type, max) do { if(max) { p = eom_renew (p, type, max <<= 1); } else { max = 1; p = g_new(type, 1); } } while (0)
 
-
-
-/**
+/*
  * eom_uta_new: Allocate a new uta.
  * @x0: Left coordinate of uta.
  * @y0: Top coordinate of uta.
@@ -51,7 +49,7 @@
  * tiles, not pixels.
  *
  * Returns: the newly allocated #EomUta.
- **/
+ */
 static EomUta *
 eom_uta_new (int x0, int y0, int x1, int y1)
 {
@@ -68,13 +66,13 @@ eom_uta_new (int x0, int y0, int x1, int y1)
   return uta;
 }
 
-/**
+/*
  * eom_uta_free: Free a uta.
  * @uta: The uta to free.
  *
  * Frees the microtile array structure, including the actual microtile
  * data.
- **/
+ */
 void
 eom_uta_free (EomUta *uta)
 {
@@ -82,14 +80,14 @@ eom_uta_free (EomUta *uta)
   g_free (uta);
 }
 
-/**
+/*
  * eom_irect_intersect: Find intersection of two integer rectangles.
  * @dest: Where the result is stored.
  * @src1: A source rectangle.
  * @src2: Another source rectangle.
  *
  * Finds the intersection of @src1 and @src2.
- **/
+ */
 void
 eom_irect_intersect (EomIRect *dest, const EomIRect *src1, const EomIRect *src2) {
   dest->x0 = MAX (src1->x0, src2->x0);
@@ -98,18 +96,18 @@ eom_irect_intersect (EomIRect *dest, const EomIRect *src1, const EomIRect *src2)
   dest->y1 = MIN (src1->y1, src2->y1);
 }
 
-/**
+/*
  * eom_irect_empty: Determine whether integer rectangle is empty.
  * @src: The source rectangle.
  *
  * Return value: TRUE if @src is an empty rectangle, FALSE otherwise.
- **/
+ */
 int
 eom_irect_empty (const EomIRect *src) {
   return (src->x1 <= src->x0 || src->y1 <= src->y0);
 }
 
-/**
+/*
  * eom_uta_from_irect: Generate uta covering a rectangle.
  * @bbox: The source rectangle.
  *
@@ -117,7 +115,7 @@ eom_irect_empty (const EomIRect *src) {
  * function with a @bbox with zero height or width.
  *
  * Return value: the new uta.
- **/
+ */
 static EomUta *
 eom_uta_from_irect (EomIRect *bbox)
 {
@@ -217,7 +215,7 @@ eom_uta_from_irect (EomIRect *bbox)
  * big enough to fit the specified microtile coordinates, or a new array if
  * it needed to be grown.  In the second case, the original @uta will be
  * freed automatically.
- **/
+ */
 EomUta *
 uta_ensure_size (EomUta *uta, int x1, int y1, int x2, int y2)
 {
@@ -284,7 +282,7 @@ uta_ensure_size (EomUta *uta, int x1, int y1, int x2, int y2)
  * Return value: The original @uta, or a new microtile array if the original one
  * needed to be grown to fit the specified rectangle.  In the second case, the
  * original @uta will be freed automatically.
- **/
+ */
 EomUta *
 uta_add_rect (EomUta *uta, int x1, int y1, int x2, int y2)
 {
@@ -552,7 +550,7 @@ uta_add_rect (EomUta *uta, int x1, int y1, int x2, int y2)
  * Removes a rectangular region from the specified microtile array.  Due to the
  * way microtile arrays represent regions, the tiles at the edge of the
  * rectangle may not be clipped exactly.
- **/
+ */
 void
 uta_remove_rect (EomUta *uta, int x1, int y1, int x2, int y2)
 {
@@ -1047,7 +1045,7 @@ copy_tile (EomUta *uta, int x, int y, int xofs, int yofs)
  * expanded if the destination area does not fit within it; rather only the area
  * that fits will be copied.  The source rectangle must be completely contained
  * within the microtile array.
- **/
+ */
 void
 uta_copy_area (EomUta *uta, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
 {