changed values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within

2007-02-05  Michael Natterer  <mitch@imendio.com>

	* gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
	values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
	ansi C enum value limits. Fixes bug #46757.


svn path=/trunk/; revision=17260
This commit is contained in:
Michael Natterer 2007-02-05 10:36:27 +00:00 committed by Michael Natterer
parent aa5785710a
commit aca7e2316a
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-02-05 Michael Natterer <mitch@imendio.com>
* gtk/gtktextbuffer.h (enum GtkTextBufferTargetInfo): changed
values from G_MAXUINT-0, -1, -2 to -1, -2, -3 so we stay within
ansi C enum value limits. Fixes bug #46757.
2007-02-03 Soren Sandmann <sandmann@daimi.au.dk> 2007-02-03 Soren Sandmann <sandmann@daimi.au.dk>
* gtk/gtksequence.[ch]: Remove these files since GSequence has * gtk/gtksequence.[ch]: Remove these files since GSequence has

View File

@ -49,9 +49,9 @@ G_BEGIN_DECLS
*/ */
typedef enum typedef enum
{ {
GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = G_MAXUINT - 0, GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = - 1,
GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = G_MAXUINT - 1, GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = - 2,
GTK_TEXT_BUFFER_TARGET_INFO_TEXT = G_MAXUINT - 2 GTK_TEXT_BUFFER_TARGET_INFO_TEXT = - 3
} GtkTextBufferTargetInfo; } GtkTextBufferTargetInfo;
typedef struct _GtkTextBTree GtkTextBTree; typedef struct _GtkTextBTree GtkTextBTree;