[gtksourceview] Avoid warnings with glib-mkenums
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Avoid warnings with glib-mkenums
- Date: Mon, 19 Nov 2012 15:51:10 +0000 (UTC)
commit 6a2ce1e68ce3540beb9538fa5108fe10e79d93f6
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Sun Nov 18 17:37:26 2012 +0100
Avoid warnings with glib-mkenums
The warnings were:
/usr/bin/glib-mkenums: gtksourceview.h:133: Failed to parse `GTK_SOURCE_DRAW_SPACES_TAB | \ '
[...]
If 0b1111111 is used, there is another warning with GISCAN. So the best
is to use an hexadecimal number.
gtksourceview/gtksourceview.h | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 205323b..77e8ca8 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -129,13 +129,7 @@ typedef enum
GTK_SOURCE_DRAW_SPACES_LEADING = 1 << 4,
GTK_SOURCE_DRAW_SPACES_TEXT = 1 << 5,
GTK_SOURCE_DRAW_SPACES_TRAILING = 1 << 6,
- GTK_SOURCE_DRAW_SPACES_ALL = (GTK_SOURCE_DRAW_SPACES_SPACE | \
- GTK_SOURCE_DRAW_SPACES_TAB | \
- GTK_SOURCE_DRAW_SPACES_NEWLINE | \
- GTK_SOURCE_DRAW_SPACES_NBSP | \
- GTK_SOURCE_DRAW_SPACES_LEADING | \
- GTK_SOURCE_DRAW_SPACES_TEXT | \
- GTK_SOURCE_DRAW_SPACES_TRAILING)
+ GTK_SOURCE_DRAW_SPACES_ALL = 0x7f
} GtkSourceDrawSpacesFlags;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]