[gtksourceview] GISCAN: avoid warning with GtkTextRegion
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] GISCAN: avoid warning with GtkTextRegion
- Date: Mon, 19 Nov 2012 14:01:18 +0000 (UTC)
commit d7dfb6e2ca6d82df424e145a670d95f6dea177ff
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Sun Nov 18 18:40:15 2012 +0100
GISCAN: avoid warning with GtkTextRegion
The warning:
gtksourcetypes.h:58: Warning: GtkSource: symbol='GtkTextRegion': Skipping foreign identifier 'GtkTextRegion' from namespace Gtk
But it's maybe safer to rename GtkTextRegion as GtkSourceTextRegion, to
avoid a potential conflict with the Gtk namespace in the future.
gtksourceview/gtksourcetypes.h | 1 -
gtksourceview/gtktextregion.h | 2 +-
2 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcetypes.h b/gtksourceview/gtksourcetypes.h
index 5298e03..5cb1464 100644
--- a/gtksourceview/gtksourcetypes.h
+++ b/gtksourceview/gtksourcetypes.h
@@ -55,7 +55,6 @@ typedef struct _GtkSourceStyleSchemeManager GtkSourceStyleSchemeManager;
typedef struct _GtkSourceUndoManagerDefault GtkSourceUndoManagerDefault;
typedef struct _GtkSourceUndoManager GtkSourceUndoManager;
typedef struct _GtkSourceView GtkSourceView;
-typedef struct _GtkTextRegion GtkTextRegion;
G_END_DECLS
diff --git a/gtksourceview/gtktextregion.h b/gtksourceview/gtktextregion.h
index dc5d6fe..8784d05 100644
--- a/gtksourceview/gtktextregion.h
+++ b/gtksourceview/gtktextregion.h
@@ -23,10 +23,10 @@
#define __GTK_TEXT_REGION_H__
#include <gtk/gtk.h>
-#include <gtksourceview/gtksourcetypes.h>
G_BEGIN_DECLS
+typedef struct _GtkTextRegion GtkTextRegion;
typedef struct _GtkTextRegionIterator GtkTextRegionIterator;
struct _GtkTextRegionIterator {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]