gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h gtk/Makefile.am gtk/makenums.pl

Mon Jun 15 16:29:45 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
	  gtk/Makefile.am gtk/makenums.pl

	Removed out the G_ENUM/FLAGS mechanism in favor
	of a perl script that parses the standard headers
	(with occasional /*< nick=foo >*/ style overrides)
	and extracts the enumerations.

	  gtk/maketypes.awk: Small improvments to the
	  translation of names. (Avoid splitting gc into
	  g_c_.)

Mon Jun 15 16:25:44 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/Makefile.am gtk/gtk.h gtk/gtkfontsel.[ch] gtk/testgtk.c:
	Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget,
        and a simple example for testgtk.

Mon Jun 15 15:58:34 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtkentry.c:
	- Restored gtk_entry_adjust_scroll to static
	- Changed text positioning code so that we always
	  display as large a portion of the text as possible.

Mon Jun 15 15:42:12 1998  Owen Taylor  <otaylor@gtk.org>

	* gtk/gtktext.c (gtk_text_finalize): Free internal
	structures of text widget. Also, unreference pixmaps
	when unrealizing.

Sat Jun 13 19:14:39 1998  Owen Taylor  <otaylor@gtk.org>

	* gdk/gdkinputcommon.h (gdk_input_device_new): Change
	3.3.1 bug workaround to number keys starting at 1.

Sat Jun 13 11:56:57 1998  Owen Taylor  <otaylor@gtk.org>

	* docs/gtk_tut.sgml: Fixed urls for complete example
	source for scribble+widget-writing examples.
This commit is contained in:
Owen Taylor 1998-06-15 21:27:17 +00:00 committed by Owen Taylor
parent e144ff2bb5
commit 48a9f44f31
35 changed files with 2398 additions and 1724 deletions

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -1,3 +1,45 @@
Mon Jun 15 16:29:45 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdktypes.h gdk/gdkprivate.h gtk/gtk*.h
gtk/Makefile.am gtk/makenums.pl
Removed out the G_ENUM/FLAGS mechanism in favor
of a perl script that parses the standard headers
(with occasional /*< nick=foo >*/ style overrides)
and extracts the enumerations.
gtk/maketypes.awk: Small improvments to the
translation of names. (Avoid splitting gc into
g_c_.)
Mon Jun 15 16:25:44 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtk.h gtk/gtkfontsel.[ch]:
Damon Chaplin's <DAChaplin@email.msn.com> Font selection widget.
Mon Jun 15 15:58:34 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtkentry.c:
- Restored gtk_entry_adjust_scroll to static
- Changed text positioning code so that we always
display as large a portion of the text as possible.
Mon Jun 15 15:42:12 1998 Owen Taylor <otaylor@gtk.org>
* gtk/gtktext.c (gtk_text_finalize): Free internal
structures of text widget. Also, unreference pixmaps
when unrealizing.
Sat Jun 13 19:14:39 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputcommon.h (gdk_input_device_new): Change
3.3.1 bug workaround to number keys starting at 1.
Sat Jun 13 11:56:57 1998 Owen Taylor <otaylor@gtk.org>
* docs/gtk_tut.sgml: Fixed urls for complete example
source for scribble+widget-writing examples.
Sat Jun 13 11:48:26 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkpixmap.c (gdk_pixmap_extract_color):

View File

@ -7593,8 +7593,8 @@ other people can benefit. The best place to do this is probably the
Complete sources for the example widgets are available at the place you
got this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<!-- ----------------------------------------------------------------- -->
@ -9465,8 +9465,8 @@ mundane details like creating the main window. The complete
source code is available from the location from which you got
this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<!-- ----------------------------------------------------------------- -->
@ -9799,8 +9799,8 @@ That completes the changes to ``XInputize'' our program. As with
the first version, the complete source is available at the location
from which you got this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<sect2> Further sophistications <label id="sec_Further_Sophistications">

View File

@ -7593,8 +7593,8 @@ other people can benefit. The best place to do this is probably the
Complete sources for the example widgets are available at the place you
got this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<!-- ----------------------------------------------------------------- -->
@ -9465,8 +9465,8 @@ mundane details like creating the main window. The complete
source code is available from the location from which you got
this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<!-- ----------------------------------------------------------------- -->
@ -9799,8 +9799,8 @@ That completes the changes to ``XInputize'' our program. As with
the first version, the complete source is available at the location
from which you got this tutorial, or from:
<htmlurl url="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial"
name="http://www.msc.cornell.edu/~otaylor/gtk-gimp/tutorial">
<htmlurl url="http://www.gtk.org/~otaylor/gtk/tutorial/"
name="http://www.gtk.org/~otaylor/gtk/tutorial/">
<sect2> Further sophistications <label id="sec_Further_Sophistications">

View File

@ -328,7 +328,7 @@ gdk_colors_store (GdkColormap *colormap,
gdk_colormap_change (colormap, ncolors);
}
gint
gboolean
gdk_colors_alloc (GdkColormap *colormap,
gint contiguous,
gulong *planes,
@ -467,13 +467,13 @@ gdk_color_black (GdkColormap *colormap,
return return_val;
}
gint
gboolean
gdk_color_parse (const gchar *spec,
GdkColor *color)
{
Colormap xcolormap;
XColor xcolor;
gint return_val;
gboolean return_val;
g_return_val_if_fail (spec != NULL, FALSE);
g_return_val_if_fail (color != NULL, FALSE);
@ -493,7 +493,7 @@ gdk_color_parse (const gchar *spec,
return return_val;
}
gint
gboolean
gdk_color_alloc (GdkColormap *colormap,
GdkColor *color)
{
@ -501,7 +501,7 @@ gdk_color_alloc (GdkColormap *colormap,
GdkVisual *visual;
XColor xcolor;
gchar *available = NULL;
gint return_val;
gboolean return_val;
gint i, index;
g_return_val_if_fail (colormap != NULL, FALSE);
@ -622,7 +622,7 @@ gdk_color_alloc (GdkColormap *colormap,
return return_val;
}
gint
gboolean
gdk_color_change (GdkColormap *colormap,
GdkColor *color)
{

View File

@ -186,7 +186,7 @@ gdk_input_device_new(XDeviceInfo *device, gint include_core)
if ((xki->min_keycode == 8) && (xki->max_keycode == 32))
{
gdkdev->info.num_keys = 32;
gdkdev->min_keycode = 0;
gdkdev->min_keycode = 1;
}
else
{

View File

@ -204,12 +204,12 @@ struct _GdkRegionPrivate
};
typedef enum {
G_NV (GDK_DEBUG_MISC, misc, 1 << 0),
G_NV (GDK_DEBUG_EVENTS, events, 1 << 1),
G_NV (GDK_DEBUG_DND, dnd, 1 << 2),
G_NV (GDK_DEBUG_COLOR_CONTEXT,color-context, 1 << 3),
G_NV (GDK_DEBUG_XIM, xim, 1 << 4)
} G_FLAGS (GdkDebugFlag);
GDK_DEBUG_MISC = 1 << 0,
GDK_DEBUG_EVENTS = 1 << 1,
GDK_DEBUG_DND = 1 << 2,
GDK_DEBUG_COLOR_CONTEXT = 1 << 3,
GDK_DEBUG_XIM = 1 << 4
} GdkDebugFlag;
void gdk_window_init (void);
void gdk_visual_init (void);

View File

@ -35,7 +35,6 @@
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
@ -116,14 +115,14 @@ typedef void* GdkIM;
*/
typedef enum
{
G_SV (GDK_WINDOW_ROOT, root),
G_SV (GDK_WINDOW_TOPLEVEL, toplevel),
G_SV (GDK_WINDOW_CHILD, child),
G_SV (GDK_WINDOW_DIALOG, dialog),
G_SV (GDK_WINDOW_TEMP, temp),
G_SV (GDK_WINDOW_PIXMAP, pixmap),
G_SV (GDK_WINDOW_FOREIGN, foreign)
} G_ENUM (GdkWindowType);
GDK_WINDOW_ROOT,
GDK_WINDOW_TOPLEVEL,
GDK_WINDOW_CHILD,
GDK_WINDOW_DIALOG,
GDK_WINDOW_TEMP,
GDK_WINDOW_PIXMAP,
GDK_WINDOW_FOREIGN
} GdkWindowType;
/* Classes of windows.
* InputOutput: Almost every window should be of this type. Such windows
@ -136,9 +135,9 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_INPUT_OUTPUT, input-output),
G_SV (GDK_INPUT_ONLY, input-only)
} G_ENUM (GdkWindowClass);
GDK_INPUT_OUTPUT,
GDK_INPUT_ONLY
} GdkWindowClass;
/* Types of images.
* Normal: Normal X image type. These are slow as they involve passing
@ -152,10 +151,10 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_IMAGE_NORMAL, normal),
G_SV (GDK_IMAGE_SHARED, shared),
G_SV (GDK_IMAGE_FASTEST, fastest)
} G_ENUM (GdkImageType);
GDK_IMAGE_NORMAL,
GDK_IMAGE_SHARED,
GDK_IMAGE_FASTEST
} GdkImageType;
/* Types of visuals.
* StaticGray:
@ -167,13 +166,13 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_VISUAL_STATIC_GRAY, static-gray),
G_SV (GDK_VISUAL_GRAYSCALE, grayscale),
G_SV (GDK_VISUAL_STATIC_COLOR, static-color),
G_SV (GDK_VISUAL_PSEUDO_COLOR, pseudo-color),
G_SV (GDK_VISUAL_TRUE_COLOR, true-color),
G_SV (GDK_VISUAL_DIRECT_COLOR, direct-color)
} G_ENUM (GdkVisualType);
GDK_VISUAL_STATIC_GRAY,
GDK_VISUAL_GRAYSCALE,
GDK_VISUAL_STATIC_COLOR,
GDK_VISUAL_PSEUDO_COLOR,
GDK_VISUAL_TRUE_COLOR,
GDK_VISUAL_DIRECT_COLOR
} GdkVisualType;
/* Types of font.
* GDK_FONT_FONT: the font is an XFontStruct.
@ -181,9 +180,9 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_FONT_FONT, font),
G_SV (GDK_FONT_FONTSET, fontset)
} G_ENUM (GdkFontType);
GDK_FONT_FONT,
GDK_FONT_FONTSET
} GdkFontType;
/* Window attribute mask values.
* GDK_WA_TITLE: The "title" field is valid.
@ -195,24 +194,24 @@ typedef enum
*/
typedef enum
{
G_NV (GDK_WA_TITLE, title, 1 << 1),
G_NV (GDK_WA_X, x, 1 << 2),
G_NV (GDK_WA_Y, y, 1 << 3),
G_NV (GDK_WA_CURSOR, cursor, 1 << 4),
G_NV (GDK_WA_COLORMAP, colormap, 1 << 5),
G_NV (GDK_WA_VISUAL, visual, 1 << 6),
G_NV (GDK_WA_WMCLASS, wmclass, 1 << 7),
G_NV (GDK_WA_NOREDIR, noredir, 1 << 8)
} G_FLAGS (GdkWindowAttributesType);
GDK_WA_TITLE = 1 << 1,
GDK_WA_X = 1 << 2,
GDK_WA_Y = 1 << 3,
GDK_WA_CURSOR = 1 << 4,
GDK_WA_COLORMAP = 1 << 5,
GDK_WA_VISUAL = 1 << 6,
GDK_WA_WMCLASS = 1 << 7,
GDK_WA_NOREDIR = 1 << 8
} GdkWindowAttributesType;
/* Size restriction enumeration.
*/
typedef enum
{
G_NV (GDK_HINT_POS, pos, 1 << 0),
G_NV (GDK_HINT_MIN_SIZE, min-size, 1 << 1),
G_NV (GDK_HINT_MAX_SIZE, max-size, 1 << 2)
} G_FLAGS (GdkWindowHints);
GDK_HINT_POS = 1 << 0,
GDK_HINT_MIN_SIZE = 1 << 1,
GDK_HINT_MAX_SIZE = 1 << 2
} GdkWindowHints;
/* GC function types.
* Copy: Overwrites destination pixels with the source pixels.
@ -221,10 +220,10 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_COPY, copy),
G_SV (GDK_INVERT, invert),
G_SV (GDK_XOR, xor)
} G_ENUM (GdkFunction);
GDK_COPY,
GDK_INVERT,
GDK_XOR
} GdkFunction;
/* GC fill types.
* Solid:
@ -234,11 +233,11 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_SOLID, solid),
G_SV (GDK_TILED, tiled),
G_SV (GDK_STIPPLED, stippled),
G_SV (GDK_OPAQUE_STIPPLED, opaque-stippled)
} G_ENUM (GdkFill);
GDK_SOLID,
GDK_TILED,
GDK_STIPPLED,
GDK_OPAQUE_STIPPLED
} GdkFill;
/* GC fill rule for polygons
* EvenOddRule
@ -246,9 +245,9 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_EVEN_ODD_RULE, even-odd-rule),
G_SV (GDK_WINDING_RULE, winding-rule)
} G_ENUM (GdkFillRule);
GDK_EVEN_ODD_RULE,
GDK_WINDING_RULE
} GdkFillRule;
/* GC line styles
* Solid:
@ -257,10 +256,10 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_LINE_SOLID, solid),
G_SV (GDK_LINE_ON_OFF_DASH, on-off-dash),
G_SV (GDK_LINE_DOUBLE_DASH, double-dash)
} G_ENUM (GdkLineStyle);
GDK_LINE_SOLID,
GDK_LINE_ON_OFF_DASH,
GDK_LINE_DOUBLE_DASH
} GdkLineStyle;
/* GC cap styles
* CapNotLast:
@ -270,11 +269,11 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_CAP_NOT_LAST, not-last),
G_SV (GDK_CAP_BUTT, butt),
G_SV (GDK_CAP_ROUND, round),
G_SV (GDK_CAP_PROJECTING, projecting)
} G_ENUM (GdkCapStyle);
GDK_CAP_NOT_LAST,
GDK_CAP_BUTT,
GDK_CAP_ROUND,
GDK_CAP_PROJECTING
} GdkCapStyle;
/* GC join styles
* JoinMiter:
@ -283,10 +282,10 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_JOIN_MITER, miter),
G_SV (GDK_JOIN_ROUND, round),
G_SV (GDK_JOIN_BEVEL, bevel)
} G_ENUM (GdkJoinStyle);
GDK_JOIN_MITER,
GDK_JOIN_ROUND,
GDK_JOIN_BEVEL
} GdkJoinStyle;
/* Cursor types.
*/
@ -298,18 +297,16 @@ typedef enum
} GdkCursorType;
typedef enum {
G_SV (GDK_FILTER_CONTINUE, continue), /* Event not handled,
* continue processesing */
G_SV (GDK_FILTER_TRANSLATE, translate), /* Translated event stored */
G_SV (GDK_FILTER_REMOVE, remove) /* Terminate processing,
* removing event */
} G_ENUM (GdkFilterReturn);
GDK_FILTER_CONTINUE, /* Event not handled, continue processesing */
GDK_FILTER_TRANSLATE, /* Translated event stored */
GDK_FILTER_REMOVE /* Terminate processing, removing event */
} GdkFilterReturn;
typedef enum {
G_SV (GDK_VISIBILITY_UNOBSCURED, unobscured),
G_SV (GDK_VISIBILITY_PARTIAL, partial),
G_SV (GDK_VISIBILITY_FULLY_OBSCURED, fully-obscured)
} G_ENUM (GdkVisibilityState);
GDK_VISIBILITY_UNOBSCURED,
GDK_VISIBILITY_PARTIAL,
GDK_VISIBILITY_FULLY_OBSCURED
} GdkVisibilityState;
/* Event types.
* Nothing: No event occurred.
@ -335,68 +332,67 @@ typedef enum {
*/
typedef enum
{
G_NV (GDK_NOTHING, NOTHING, -1),
G_NV (GDK_DELETE, delete, 0),
G_NV (GDK_DESTROY, destroy, 1),
G_NV (GDK_EXPOSE, expose, 2),
G_NV (GDK_MOTION_NOTIFY, motion-notify, 3),
G_NV (GDK_BUTTON_PRESS, button-press, 4),
G_NV (GDK_2BUTTON_PRESS, 2button-press, 5),
G_NV (GDK_3BUTTON_PRESS, 3button-press, 6),
G_NV (GDK_BUTTON_RELEASE, button-release, 7),
G_NV (GDK_KEY_PRESS, key-press, 8),
G_NV (GDK_KEY_RELEASE, key-release, 9),
G_NV (GDK_ENTER_NOTIFY, enter-notify, 10),
G_NV (GDK_LEAVE_NOTIFY, leave-notify, 11),
G_NV (GDK_FOCUS_CHANGE, focus-change, 12),
G_NV (GDK_CONFIGURE, configure, 13),
G_NV (GDK_MAP, map, 14),
G_NV (GDK_UNMAP, unmap, 15),
G_NV (GDK_PROPERTY_NOTIFY, property-notify, 16),
G_NV (GDK_SELECTION_CLEAR, selection-clear, 17),
G_NV (GDK_SELECTION_REQUEST, selection-request,18),
G_NV (GDK_SELECTION_NOTIFY, selection-notify,19),
G_NV (GDK_PROXIMITY_IN, proximity-in, 20),
G_NV (GDK_PROXIMITY_OUT, proximity-out, 21),
G_NV (GDK_DRAG_BEGIN, drag-begin, 22),
G_NV (GDK_DRAG_REQUEST, drag-request, 23),
G_NV (GDK_DROP_ENTER, drop-enter, 24),
G_NV (GDK_DROP_LEAVE, drop-leave, 25),
G_NV (GDK_DROP_DATA_AVAIL, drop-data-avail, 26),
G_NV (GDK_CLIENT_EVENT, client-event, 27),
G_NV (GDK_VISIBILITY_NOTIFY, visibility-notify, 28),
G_NV (GDK_NO_EXPOSE, no-expose, 29),
G_NV (GDK_OTHER_EVENT, other-event, 9999) /* Deprecated, use
* filters instead */
} G_ENUM (GdkEventType);
GDK_NOTHING = -1,
GDK_DELETE = 0,
GDK_DESTROY = 1,
GDK_EXPOSE = 2,
GDK_MOTION_NOTIFY = 3,
GDK_BUTTON_PRESS = 4,
GDK_2BUTTON_PRESS = 5,
GDK_3BUTTON_PRESS = 6,
GDK_BUTTON_RELEASE = 7,
GDK_KEY_PRESS = 8,
GDK_KEY_RELEASE = 9,
GDK_ENTER_NOTIFY = 10,
GDK_LEAVE_NOTIFY = 11,
GDK_FOCUS_CHANGE = 12,
GDK_CONFIGURE = 13,
GDK_MAP = 14,
GDK_UNMAP = 15,
GDK_PROPERTY_NOTIFY = 16,
GDK_SELECTION_CLEAR = 17,
GDK_SELECTION_REQUEST = 18,
GDK_SELECTION_NOTIFY = 19,
GDK_PROXIMITY_IN = 20,
GDK_PROXIMITY_OUT = 21,
GDK_DRAG_BEGIN = 22,
GDK_DRAG_REQUEST = 23,
GDK_DROP_ENTER = 24,
GDK_DROP_LEAVE = 25,
GDK_DROP_DATA_AVAIL = 26,
GDK_CLIENT_EVENT = 27,
GDK_VISIBILITY_NOTIFY = 28,
GDK_NO_EXPOSE = 29,
GDK_OTHER_EVENT = 9999 /* Deprecated, use filters instead */
} GdkEventType;
/* Event masks. (Used to select what types of events a window
* will receive).
*/
typedef enum
{
G_NV (GDK_EXPOSURE_MASK, exposure-mask, 1 << 1),
G_NV (GDK_POINTER_MOTION_MASK, pointer-motion-mask, 1 << 2),
G_NV (GDK_POINTER_MOTION_HINT_MASK, pointer-motion-hint-mask, 1 << 3),
G_NV (GDK_BUTTON_MOTION_MASK, button-motion-mask, 1 << 4),
G_NV (GDK_BUTTON1_MOTION_MASK, button1-motion-mask, 1 << 5),
G_NV (GDK_BUTTON2_MOTION_MASK, button2-motion-mask, 1 << 6),
G_NV (GDK_BUTTON3_MOTION_MASK, button3-motion-mask, 1 << 7),
G_NV (GDK_BUTTON_PRESS_MASK, button-press-mask, 1 << 8),
G_NV (GDK_BUTTON_RELEASE_MASK, button-release-mask, 1 << 9),
G_NV (GDK_KEY_PRESS_MASK, key-press-mask, 1 << 10),
G_NV (GDK_KEY_RELEASE_MASK, key-release-mask, 1 << 11),
G_NV (GDK_ENTER_NOTIFY_MASK, enter-notify-mask, 1 << 12),
G_NV (GDK_LEAVE_NOTIFY_MASK, leave-notify-mask, 1 << 13),
G_NV (GDK_FOCUS_CHANGE_MASK, focus-change-mask, 1 << 14),
G_NV (GDK_STRUCTURE_MASK, structure-mask, 1 << 15),
G_NV (GDK_PROPERTY_CHANGE_MASK, property-change-mask, 1 << 16),
G_NV (GDK_VISIBILITY_NOTIFY_MASK, visibility-notify-mask, 1 << 17),
G_NV (GDK_PROXIMITY_IN_MASK, proximity-in-mask, 1 << 18),
G_NV (GDK_PROXIMITY_OUT_MASK, proximity-out-mask, 1 << 19),
G_NV (GDK_SUBSTRUCTURE_MASK, substructure-mask, 1 << 20),
G_NV (GDK_ALL_EVENTS_MASK, all-events-mask, 0x0FFFFF)
} G_FLAGS (GdkEventMask);
GDK_EXPOSURE_MASK = 1 << 1,
GDK_POINTER_MOTION_MASK = 1 << 2,
GDK_POINTER_MOTION_HINT_MASK = 1 << 3,
GDK_BUTTON_MOTION_MASK = 1 << 4,
GDK_BUTTON1_MOTION_MASK = 1 << 5,
GDK_BUTTON2_MOTION_MASK = 1 << 6,
GDK_BUTTON3_MOTION_MASK = 1 << 7,
GDK_BUTTON_PRESS_MASK = 1 << 8,
GDK_BUTTON_RELEASE_MASK = 1 << 9,
GDK_KEY_PRESS_MASK = 1 << 10,
GDK_KEY_RELEASE_MASK = 1 << 11,
GDK_ENTER_NOTIFY_MASK = 1 << 12,
GDK_LEAVE_NOTIFY_MASK = 1 << 13,
GDK_FOCUS_CHANGE_MASK = 1 << 14,
GDK_STRUCTURE_MASK = 1 << 15,
GDK_PROPERTY_CHANGE_MASK = 1 << 16,
GDK_VISIBILITY_NOTIFY_MASK = 1 << 17,
GDK_PROXIMITY_IN_MASK = 1 << 18,
GDK_PROXIMITY_OUT_MASK = 1 << 19,
GDK_SUBSTRUCTURE_MASK = 1 << 20,
GDK_ALL_EVENTS_MASK = 0x0FFFFF
} GdkEventMask;
/* Types of enter/leave notifications.
* Ancestor:
@ -408,13 +404,13 @@ typedef enum
*/
typedef enum
{
G_NV (GDK_NOTIFY_ANCESTOR, ancestor, 0),
G_NV (GDK_NOTIFY_VIRTUAL, virtual, 1),
G_NV (GDK_NOTIFY_INFERIOR, inferior, 2),
G_NV (GDK_NOTIFY_NONLINEAR, nonlinear, 3),
G_NV (GDK_NOTIFY_NONLINEAR_VIRTUAL, nonlinear-virtual, 4),
G_NV (GDK_NOTIFY_UNKNOWN, unknown, 5)
} G_ENUM (GdkNotifyType);
GDK_NOTIFY_ANCESTOR = 0,
GDK_NOTIFY_VIRTUAL = 1,
GDK_NOTIFY_INFERIOR = 2,
GDK_NOTIFY_NONLINEAR = 3,
GDK_NOTIFY_NONLINEAR_VIRTUAL = 4,
GDK_NOTIFY_UNKNOWN = 5
} GdkNotifyType;
/* Enter/leave event modes.
* NotifyNormal
@ -423,188 +419,188 @@ typedef enum
*/
typedef enum
{
G_SV (GDK_CROSSING_NORMAL, crossing-normal),
G_SV (GDK_CROSSING_GRAB, crossing-grab),
G_SV (GDK_CROSSING_UNGRAB, crossing-ungrab)
} G_ENUM (GdkCrossingMode);
GDK_CROSSING_NORMAL,
GDK_CROSSING_GRAB,
GDK_CROSSING_UNGRAB
} GdkCrossingMode;
/* Types of modifiers.
*/
typedef enum
{
G_NV (GDK_SHIFT_MASK, shift-mask, 1 << 0),
G_NV (GDK_LOCK_MASK, lock-mask, 1 << 1),
G_NV (GDK_CONTROL_MASK, control-mask, 1 << 2),
G_NV (GDK_MOD1_MASK, mod1-mask, 1 << 3),
G_NV (GDK_MOD2_MASK, mod2-mask, 1 << 4),
G_NV (GDK_MOD3_MASK, mod3-mask, 1 << 5),
G_NV (GDK_MOD4_MASK, mod4-mask, 1 << 6),
G_NV (GDK_MOD5_MASK, mod5-mask, 1 << 7),
G_NV (GDK_BUTTON1_MASK, button1-mask, 1 << 8),
G_NV (GDK_BUTTON2_MASK, button2-mask, 1 << 9),
G_NV (GDK_BUTTON3_MASK, button3-mask, 1 << 10),
G_NV (GDK_BUTTON4_MASK, button4-mask, 1 << 11),
G_NV (GDK_BUTTON5_MASK, button5-mask, 1 << 12),
G_NV (GDK_MODIFIER_MASK, modifier-mask, 0x1fff)
} G_FLAGS (GdkModifierType);
GDK_SHIFT_MASK = 1 << 0,
GDK_LOCK_MASK = 1 << 1,
GDK_CONTROL_MASK = 1 << 2,
GDK_MOD1_MASK = 1 << 3,
GDK_MOD2_MASK = 1 << 4,
GDK_MOD3_MASK = 1 << 5,
GDK_MOD4_MASK = 1 << 6,
GDK_MOD5_MASK = 1 << 7,
GDK_BUTTON1_MASK = 1 << 8,
GDK_BUTTON2_MASK = 1 << 9,
GDK_BUTTON3_MASK = 1 << 10,
GDK_BUTTON4_MASK = 1 << 11,
GDK_BUTTON5_MASK = 1 << 12,
GDK_MODIFIER_MASK = 0x1fff
} GdkModifierType;
typedef enum
{
G_NV (GDK_CLIP_BY_CHILDREN, clip-by-children, 0),
G_NV (GDK_INCLUDE_INFERIORS, include-inferiors, 1)
} G_ENUM (GdkSubwindowMode);
GDK_CLIP_BY_CHILDREN = 0,
GDK_INCLUDE_INFERIORS = 1
} GdkSubwindowMode;
typedef enum
{
G_NV (GDK_INPUT_READ, read, 1 << 0),
G_NV (GDK_INPUT_WRITE, write, 1 << 1),
G_NV (GDK_INPUT_EXCEPTION, exception, 1 << 2)
} G_FLAGS (GdkInputCondition);
GDK_INPUT_READ = 1 << 0,
GDK_INPUT_WRITE = 1 << 1,
GDK_INPUT_EXCEPTION = 1 << 2
} GdkInputCondition;
typedef enum
{
G_NV (GDK_OK, ok, 0),
G_NV (GDK_ERROR, error, -1),
G_NV (GDK_ERROR_PARAM, error-param, -2),
G_NV (GDK_ERROR_FILE, error-file, -3),
G_NV (GDK_ERROR_MEM, error-mem, -4)
} G_ENUM (GdkStatus);
GDK_OK = 0,
GDK_ERROR = -1,
GDK_ERROR_PARAM = -2,
GDK_ERROR_FILE = -3,
GDK_ERROR_MEM = -4
} GdkStatus;
typedef enum
{
G_SV (GDK_LSB_FIRST, lsb-first),
G_SV (GDK_MSB_FIRST, msb-first)
} G_ENUM (GdkByteOrder);
GDK_LSB_FIRST,
GDK_MSB_FIRST
} GdkByteOrder;
typedef enum
{
G_NV (GDK_GC_FOREGROUND, foreground, 1 << 0),
G_NV (GDK_GC_BACKGROUND, background, 1 << 1),
G_NV (GDK_GC_FONT, font, 1 << 2),
G_NV (GDK_GC_FUNCTION, function, 1 << 3),
G_NV (GDK_GC_FILL, fill, 1 << 4),
G_NV (GDK_GC_TILE, tile, 1 << 5),
G_NV (GDK_GC_STIPPLE, stipple, 1 << 6),
G_NV (GDK_GC_CLIP_MASK, clip-mask, 1 << 7),
G_NV (GDK_GC_SUBWINDOW, subwindow, 1 << 8),
G_NV (GDK_GC_TS_X_ORIGIN, ts-x-origin, 1 << 9),
G_NV (GDK_GC_TS_Y_ORIGIN, ts-y-origin, 1 << 10),
G_NV (GDK_GC_CLIP_X_ORIGIN, clip-x-origin, 1 << 11),
G_NV (GDK_GC_CLIP_Y_ORIGIN, clip-y-origin, 1 << 12),
G_NV (GDK_GC_EXPOSURES, exposures, 1 << 13),
G_NV (GDK_GC_LINE_WIDTH, line-width, 1 << 14),
G_NV (GDK_GC_LINE_STYLE, line-style, 1 << 15),
G_NV (GDK_GC_CAP_STYLE, cap-style, 1 << 16),
G_NV (GDK_GC_JOIN_STYLE, join-style, 1 << 17)
} G_FLAGS (GdkGCValuesMask);
GDK_GC_FOREGROUND = 1 << 0,
GDK_GC_BACKGROUND = 1 << 1,
GDK_GC_FONT = 1 << 2,
GDK_GC_FUNCTION = 1 << 3,
GDK_GC_FILL = 1 << 4,
GDK_GC_TILE = 1 << 5,
GDK_GC_STIPPLE = 1 << 6,
GDK_GC_CLIP_MASK = 1 << 7,
GDK_GC_SUBWINDOW = 1 << 8,
GDK_GC_TS_X_ORIGIN = 1 << 9,
GDK_GC_TS_Y_ORIGIN = 1 << 10,
GDK_GC_CLIP_X_ORIGIN = 1 << 11,
GDK_GC_CLIP_Y_ORIGIN = 1 << 12,
GDK_GC_EXPOSURES = 1 << 13,
GDK_GC_LINE_WIDTH = 1 << 14,
GDK_GC_LINE_STYLE = 1 << 15,
GDK_GC_CAP_STYLE = 1 << 16,
GDK_GC_JOIN_STYLE = 1 << 17
} GdkGCValuesMask;
typedef enum
{
G_NV (GDK_SELECTION_PRIMARY, primary, 1),
G_NV (GDK_SELECTION_SECONDARY, secondary, 2)
} G_ENUM (GdkSelection);
GDK_SELECTION_PRIMARY = 1,
GDK_SELECTION_SECONDARY = 2
} GdkSelection;
typedef enum
{
G_SV (GDK_PROPERTY_NEW_VALUE, new-value),
G_SV (GDK_PROPERTY_DELETE, delete)
} G_ENUM (GdkPropertyState);
GDK_PROPERTY_NEW_VALUE,
GDK_PROPERTY_DELETE
} GdkPropertyState;
typedef enum
{
G_SV (GDK_PROP_MODE_REPLACE, replace),
G_SV (GDK_PROP_MODE_PREPEND, prepend),
G_SV (GDK_PROP_MODE_APPEND, append)
} G_ENUM (GdkPropMode);
GDK_PROP_MODE_REPLACE,
GDK_PROP_MODE_PREPEND,
GDK_PROP_MODE_APPEND
} GdkPropMode;
/* These definitions are for version 1 of the OffiX D&D protocol,
taken from <OffiX/DragAndDropTypes.h> */
typedef enum
{
G_NV (GDK_DNDTYPE_NOTDND, NOTDND, -1),
G_NV (GDK_DNDTYPE_UNKNOWN, UNKNOWN, 0),
G_NV (GDK_DNDTYPE_RAWDATA, RAWDATA, 1),
G_NV (GDK_DNDTYPE_FILE, FILE, 2),
G_NV (GDK_DNDTYPE_FILES, FILES, 3),
G_NV (GDK_DNDTYPE_TEXT, text, 4),
G_NV (GDK_DNDTYPE_DIR, dir, 5),
G_NV (GDK_DNDTYPE_LINK, link, 6),
G_NV (GDK_DNDTYPE_EXE, exe, 7),
G_NV (GDK_DNDTYPE_URL, url, 8),
G_NV (GDK_DNDTYPE_MIME, mime, 9),
G_NV (GDK_DNDTYPE_END, end, 10)
} G_ENUM (GdkDndType);
GDK_DNDTYPE_NOTDND = -1,
GDK_DNDTYPE_UNKNOWN = 0,
GDK_DNDTYPE_RAWDATA = 1,
GDK_DNDTYPE_FILE = 2,
GDK_DNDTYPE_FILES = 3,
GDK_DNDTYPE_TEXT = 4,
GDK_DNDTYPE_DIR = 5,
GDK_DNDTYPE_LINK = 6,
GDK_DNDTYPE_EXE = 7,
GDK_DNDTYPE_URL = 8,
GDK_DNDTYPE_MIME = 9,
GDK_DNDTYPE_END = 10
} GdkDndType;
/* Enums for XInput support */
typedef enum
{
G_SV (GDK_SOURCE_MOUSE, mouse),
G_SV (GDK_SOURCE_PEN, pen),
G_SV (GDK_SOURCE_ERASER, eraser),
G_SV (GDK_SOURCE_CURSOR, cursor)
} G_ENUM (GdkInputSource);
GDK_SOURCE_MOUSE,
GDK_SOURCE_PEN,
GDK_SOURCE_ERASER,
GDK_SOURCE_CURSOR
} GdkInputSource;
typedef enum
{
G_SV (GDK_MODE_DISABLED, disabled),
G_SV (GDK_MODE_SCREEN, screen),
G_SV (GDK_MODE_WINDOW, window)
} G_ENUM (GdkInputMode);
GDK_MODE_DISABLED,
GDK_MODE_SCREEN,
GDK_MODE_WINDOW
} GdkInputMode;
typedef enum
{
G_SV (GDK_AXIS_IGNORE, ignore),
G_SV (GDK_AXIS_X, x),
G_SV (GDK_AXIS_Y, y),
G_SV (GDK_AXIS_PRESSURE, pressure),
G_SV (GDK_AXIS_XTILT, xtilt),
G_SV (GDK_AXIS_YTILT, ytilt),
G_SV (GDK_AXIS_LAST, last)
} G_ENUM (GdkAxisUse);
GDK_AXIS_IGNORE,
GDK_AXIS_X,
GDK_AXIS_Y,
GDK_AXIS_PRESSURE,
GDK_AXIS_XTILT,
GDK_AXIS_YTILT,
GDK_AXIS_LAST
} GdkAxisUse;
/* The next two types define enums for predefined atoms relating
* to selections. In general, one will need to use gdk_intern_atom
*/
typedef enum
{
G_NV (GDK_TARGET_BITMAP, bitmap, 5),
G_NV (GDK_TARGET_COLORMAP, colormap, 7),
G_NV (GDK_TARGET_DRAWABLE, drawable, 17),
G_NV (GDK_TARGET_PIXMAP, pixmap, 20),
G_NV (GDK_TARGET_STRING, string, 31)
} G_ENUM (GdkTarget);
to selections. In general, one will need to use gdk_intern_atom */
typedef enum
{
G_NV (GDK_SELECTION_TYPE_ATOM, atom, 4),
G_NV (GDK_SELECTION_TYPE_BITMAP, bitmap, 5),
G_NV (GDK_SELECTION_TYPE_COLORMAP, colormap, 7),
G_NV (GDK_SELECTION_TYPE_DRAWABLE, drawable, 17),
G_NV (GDK_SELECTION_TYPE_INTEGER, integer, 19),
G_NV (GDK_SELECTION_TYPE_PIXMAP, pixmap, 20),
G_NV (GDK_SELECTION_TYPE_WINDOW, window, 33),
G_NV (GDK_SELECTION_TYPE_STRING, string, 31)
} G_ENUM (GdkSelectionType);
GDK_TARGET_BITMAP = 5,
GDK_TARGET_COLORMAP = 7,
GDK_TARGET_DRAWABLE = 17,
GDK_TARGET_PIXMAP = 20,
GDK_TARGET_STRING = 31
} GdkTarget;
typedef enum
{
G_SV (GDK_EXTENSION_EVENTS_NONE, none),
G_SV (GDK_EXTENSION_EVENTS_ALL, all),
G_SV (GDK_EXTENSION_EVENTS_CURSOR, cursor)
} G_ENUM (GdkExtensionMode);
GDK_SELECTION_TYPE_ATOM = 4,
GDK_SELECTION_TYPE_BITMAP = 5,
GDK_SELECTION_TYPE_COLORMAP = 7,
GDK_SELECTION_TYPE_DRAWABLE = 17,
GDK_SELECTION_TYPE_INTEGER = 19,
GDK_SELECTION_TYPE_PIXMAP = 20,
GDK_SELECTION_TYPE_WINDOW = 33,
GDK_SELECTION_TYPE_STRING = 31
} GdkSelectionType;
typedef enum
{
GdkIMPreeditArea = 0x0001L,
GdkIMPreeditCallbacks = 0x0002L,
GdkIMPreeditPosition = 0x0004L,
GdkIMPreeditNothing = 0x0008L,
GdkIMPreeditNone = 0x0010L,
GdkIMStatusArea = 0x0100L,
GdkIMStatusCallbacks = 0x0200L,
GdkIMStatusNothing = 0x0400L,
GdkIMStatusNone = 0x0800L
GDK_EXTENSION_EVENTS_NONE,
GDK_EXTENSION_EVENTS_ALL,
GDK_EXTENSION_EVENTS_CURSOR
} GdkExtensionMode;
typedef enum /*< flags >*/
{
GdkIMPreeditArea = 0x0001L, /*< nick=preedit-area >*/
GdkIMPreeditCallbacks = 0x0002L, /*< nick=preedit-callbacks >*/
GdkIMPreeditPosition = 0x0004L, /*< nick=preedit-position >*/
GdkIMPreeditNothing = 0x0008L, /*< nick=preedit-nothing >*/
GdkIMPreeditNone = 0x0010L, /*< nick=preedit-none >*/
GdkIMStatusArea = 0x0100L, /*< nick=status-area >*/
GdkIMStatusCallbacks = 0x0200L, /*< nick=status-callbacks >*/
GdkIMStatusNothing = 0x0400L, /*< nick=status-nothing >*/
GdkIMStatusNone = 0x0800L /*< nick=status-none >*/
} GdkIMStyle;
/* The next two enumeration values current match the
@ -614,24 +610,24 @@ typedef enum
*/
typedef enum
{
G_NV (GDK_DECOR_ALL, all, 1 << 0),
G_NV (GDK_DECOR_BORDER, border, 1 << 1),
G_NV (GDK_DECOR_RESIZEH, resizeh, 1 << 2),
G_NV (GDK_DECOR_TITLE, title, 1 << 3),
G_NV (GDK_DECOR_MENU, menu, 1 << 4),
G_NV (GDK_DECOR_MINIMIZE, minimize, 1 << 5),
G_NV (GDK_DECOR_MAXIMIZE, maximize, 1 << 6)
} G_FLAGS (GdkWMDecoration);
GDK_DECOR_ALL = 1 << 0,
GDK_DECOR_BORDER = 1 << 1,
GDK_DECOR_RESIZEH = 1 << 2,
GDK_DECOR_TITLE = 1 << 3,
GDK_DECOR_MENU = 1 << 4,
GDK_DECOR_MINIMIZE = 1 << 5,
GDK_DECOR_MAXIMIZE = 1 << 6
} GdkWMDecoration;
typedef enum
{
G_NV (GDK_FUNC_ALL, all, 1 << 0),
G_NV (GDK_FUNC_RESIZE, resize, 1 << 1),
G_NV (GDK_FUNC_MOVE, move, 1 << 2),
G_NV (GDK_FUNC_MINIMIZE, minimize, 1 << 3),
G_NV (GDK_FUNC_MAXIMIZE, maximize, 1 << 4),
G_NV (GDK_FUNC_CLOSE, close, 1 << 5)
} G_FLAGS (GdkWMFunction);
GDK_FUNC_ALL = 1 << 0,
GDK_FUNC_RESIZE = 1 << 1,
GDK_FUNC_MOVE = 1 << 2,
GDK_FUNC_MINIMIZE = 1 << 3,
GDK_FUNC_MAXIMIZE = 1 << 4,
GDK_FUNC_CLOSE = 1 << 5
} GdkWMFunction;
#define GdkIMPreeditMask \
( GdkIMPreeditArea | GdkIMPreeditCallbacks | \
@ -660,13 +656,13 @@ typedef void (*GdkDestroyNotify) (gpointer data);
typedef enum
{
G_SV (GDK_CC_MODE_UNDEFINED, undefined),
G_SV (GDK_CC_MODE_BW, bw),
G_SV (GDK_CC_MODE_STD_CMAP, std-cmap),
G_SV (GDK_CC_MODE_TRUE, true),
G_SV (GDK_CC_MODE_MY_GRAY, my-gray),
G_SV (GDK_CC_MODE_PALETTE, palette)
} G_ENUM (GdkColorContextMode);
GDK_CC_MODE_UNDEFINED,
GDK_CC_MODE_BW,
GDK_CC_MODE_STD_CMAP,
GDK_CC_MODE_TRUE,
GDK_CC_MODE_MY_GRAY,
GDK_CC_MODE_PALETTE
} GdkColorContextMode;
/* Types of overlapping between a rectangle and a region
* GDK_OVERLAP_RECTANGLE_IN: rectangle is in region
@ -676,10 +672,10 @@ typedef enum
typedef enum
{
G_SV (GDK_OVERLAP_RECTANGLE_IN, in),
G_SV (GDK_OVERLAP_RECTANGLE_OUT, out),
G_SV (GDK_OVERLAP_RECTANGLE_PART, part)
} G_ENUM (GdkOverlapType);
GDK_OVERLAP_RECTANGLE_IN,
GDK_OVERLAP_RECTANGLE_OUT,
GDK_OVERLAP_RECTANGLE_PART
} GdkOverlapType;
/* The color type.
* A color consists of red, green and blue values in the
@ -701,7 +697,7 @@ struct _GdkColor
*/
struct _GdkColormap
{
gint size;
gint size;
GdkColor *colors;
};
@ -724,15 +720,15 @@ struct _GdkVisual
GdkByteOrder byte_order;
gint colormap_size;
gint bits_per_rgb;
guint32 red_mask;
gint red_shift;
gint red_prec;
guint32 green_mask;
gint green_shift;
gint green_prec;
guint32 blue_mask;
gint blue_shift;
gint blue_prec;
@ -846,47 +842,47 @@ struct _GdkColorContext
{
GdkVisual *visual;
GdkColormap *colormap;
gint num_colors; /* available no. of colors in colormap */
gint max_colors; /* maximum no. of colors */
gint num_allocated; /* no. of allocated colors */
GdkColorContextMode mode;
gint need_to_free_colormap;
GdkAtom std_cmap_atom;
gulong *clut; /* color look-up table */
GdkColor *cmap; /* colormap */
GHashTable *color_hash; /* hash table of allocated colors */
GdkColor *palette; /* preallocated palette */
gint num_palette; /* size of palette */
GdkColorContextDither *fast_dither; /* fast dither matrix */
struct
{
gint red;
gint green;
gint blue;
} shifts;
struct
{
gulong red;
gulong green;
gulong blue;
} masks;
struct
{
gint red;
gint green;
gint blue;
} bits;
gulong max_entry;
gulong black_pixel;
gulong white_pixel;
};
@ -1101,7 +1097,7 @@ struct _GdkEventDragRequest
guint8 isdrop; /* This gdk event can be generated by a couple of
X events - this lets the app know whether the
drop really occurred or we just set the data */
GdkPoint drop_coords;
gchar *data_type;
guint32 timestamp;

View File

@ -328,7 +328,7 @@ gdk_colors_store (GdkColormap *colormap,
gdk_colormap_change (colormap, ncolors);
}
gint
gboolean
gdk_colors_alloc (GdkColormap *colormap,
gint contiguous,
gulong *planes,
@ -467,13 +467,13 @@ gdk_color_black (GdkColormap *colormap,
return return_val;
}
gint
gboolean
gdk_color_parse (const gchar *spec,
GdkColor *color)
{
Colormap xcolormap;
XColor xcolor;
gint return_val;
gboolean return_val;
g_return_val_if_fail (spec != NULL, FALSE);
g_return_val_if_fail (color != NULL, FALSE);
@ -493,7 +493,7 @@ gdk_color_parse (const gchar *spec,
return return_val;
}
gint
gboolean
gdk_color_alloc (GdkColormap *colormap,
GdkColor *color)
{
@ -501,7 +501,7 @@ gdk_color_alloc (GdkColormap *colormap,
GdkVisual *visual;
XColor xcolor;
gchar *available = NULL;
gint return_val;
gboolean return_val;
gint i, index;
g_return_val_if_fail (colormap != NULL, FALSE);
@ -622,7 +622,7 @@ gdk_color_alloc (GdkColormap *colormap,
return return_val;
}
gint
gboolean
gdk_color_change (GdkColormap *colormap,
GdkColor *color)
{

View File

@ -186,7 +186,7 @@ gdk_input_device_new(XDeviceInfo *device, gint include_core)
if ((xki->min_keycode == 8) && (xki->max_keycode == 32))
{
gdkdev->info.num_keys = 32;
gdkdev->min_keycode = 0;
gdkdev->min_keycode = 1;
}
else
{

View File

@ -32,6 +32,7 @@ libgtk_1_1_la_SOURCES = \
gtkeventbox.c \
gtkfilesel.c \
gtkfixed.c \
gtkfontsel.c \
gtkframe.c \
gtkgamma.c \
gtkgc.c \
@ -134,6 +135,7 @@ gtkinclude_HEADERS = \
gtkfeatures.h \
gtkfilesel.h \
gtkfixed.h \
gtkfontsel.h \
gtkframe.h \
gtkgamma.h \
gtkgc.h \
@ -212,9 +214,10 @@ auto-files:
make $(srcdir)/gtktypebuiltins.h
# generate gtk.defs file from gtk-boxed.defs and gcc -E
$(srcdir)/gtk.defs: @MAINT@ makeenums.awk makeenums.h gtk-boxed.defs
$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
awk -f $(srcdir)/makeenums.awk - defs > $@
$(srcdir)/gtk.defs: @MAINT@ makeenums.pl gtk-boxed.defs
srcdir=$(srcdir) \
perl $(srcdir)/makeenums.pl defs $(srcdir)/gtk*.h \
$(top_srcdir)/gdk/gdk*.h > $@
cat $(srcdir)/gtk-boxed.defs >> $@
# generate type identifier header (GTK_TYPE_WIDGET_FLAGS)
@ -229,10 +232,11 @@ $(srcdir)/gtktypebuiltins_vars.c: @MAINT@ $(srcdir)/gtk.defs maketypes.awk
$(srcdir)/gtktypebuiltins_ids.c: @MAINT@ $(srcdir)/gtk.defs maketypes.awk
awk -f $(srcdir)/maketypes.awk $(srcdir)/gtk.defs entries > $@
# generate enum value arrays from gcc -E
$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ makeenums.awk makeenums.h $(srcdir)/gtk.defs
$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
awk -f $(srcdir)/makeenums.awk - arrays > $@
# generate enum value arrays
$(srcdir)/gtktypebuiltins_evals.c: @MAINT@ makeenums.pl $(srcdir)/gtk.defs
srcdir=$(srcdir) \
perl $(srcdir)/makeenums.pl arrays $(srcdir)/gtk*.h \
$(top_srcdir)/gdk/gdk*.h > $@
# special remake rules
#$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/makeenums.awk

File diff suppressed because it is too large Load Diff

View File

@ -50,6 +50,7 @@
#include <gtk/gtkfeatures.h>
#include <gtk/gtkfilesel.h>
#include <gtk/gtkfixed.h>
#include <gtk/gtkfontsel.h>
#include <gtk/gtkframe.h>
#include <gtk/gtkgamma.h>
#include <gtk/gtkgc.h>

View File

@ -24,10 +24,10 @@ extern "C" {
#endif /* __cplusplus */
typedef enum {
G_NV (GTK_DEBUG_OBJECTS, objects, 1 << 0),
G_NV (GTK_DEBUG_MISC, misc, 1 << 1),
G_NV (GTK_DEBUG_SIGNALS, signals, 1 << 2)
} G_FLAGS (GtkDebugFlag);
GTK_DEBUG_OBJECTS = 1 << 0,
GTK_DEBUG_MISC = 1 << 1,
GTK_DEBUG_SIGNALS = 1 << 2
} GtkDebugFlag;
#ifdef G_ENABLE_DEBUG

View File

@ -72,7 +72,7 @@ static void gtk_entry_queue_draw (GtkEntry *entry);
static gint gtk_entry_timer (gpointer data);
static gint gtk_entry_position (GtkEntry *entry,
gint x);
void gtk_entry_adjust_scroll (GtkEntry *entry);
static void gtk_entry_adjust_scroll (GtkEntry *entry);
static void gtk_entry_grow_text (GtkEntry *entry);
static void gtk_entry_insert_text (GtkEditable *editable,
const gchar *new_text,
@ -651,7 +651,6 @@ gtk_entry_size_allocate (GtkWidget *widget,
{
GtkEntry *entry;
GtkEditable *editable;
gint offset;
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_ENTRY (widget));
@ -673,14 +672,6 @@ gtk_entry_size_allocate (GtkWidget *widget,
allocation->width - (widget->style->klass->xthickness + INNER_BORDER) * 2,
widget->requisition.height - (widget->style->klass->ythickness + INNER_BORDER) * 2);
/* Display as much text as we can */
offset = MAX(0, entry->char_offset[entry->nchars] -
(allocation->width -
(widget->style->klass->xthickness + INNER_BORDER) * 2));
if (entry->scroll_offset > offset)
entry->scroll_offset = offset;
/* And make sure the cursor is on screen */
gtk_entry_adjust_scroll (entry);
@ -1398,12 +1389,12 @@ gtk_entry_find_position (GtkEntry *entry,
gint end = entry->nchars;
gint half;
if (x <= 0)
return 0;
if (x >= entry->char_offset[end])
return end;
if (x < 0)
return 0;
/* invariant - char_pos[start] <= x < char_pos[end] */
/* invariant - char_offset[start] <= x < char_offset[end] */
while (start != end)
{
@ -1429,7 +1420,7 @@ gtk_entry_position (GtkEntry *entry,
void
gtk_entry_adjust_scroll (GtkEntry *entry)
{
gint xoffset;
gint xoffset, max_offset;
gint text_area_width;
g_return_if_fail (entry != NULL);
@ -1440,6 +1431,13 @@ gtk_entry_adjust_scroll (GtkEntry *entry)
gdk_window_get_size (entry->text_area, &text_area_width, NULL);
/* Display as much text as we can */
max_offset = MAX(0, entry->char_offset[entry->nchars] - text_area_width);
if (entry->scroll_offset > max_offset)
entry->scroll_offset = max_offset;
/* And make sure cursor is on screen */
xoffset = entry->char_offset[gtk_entry_find_char (entry, GTK_EDITABLE(entry)->current_pos)];
xoffset -= entry->scroll_offset;
@ -2155,6 +2153,7 @@ gtk_entry_style_set (GtkWidget *widget,
scroll_char = gtk_entry_find_position (entry, entry->scroll_offset);
gtk_entry_recompute_offsets (GTK_ENTRY (widget));
entry->scroll_offset = entry->char_offset[scroll_char];
gtk_entry_adjust_scroll (entry);
gdk_window_set_background (widget->window, &widget->style->base[GTK_STATE_NORMAL]);
gdk_window_set_background (entry->text_area, &widget->style->base[GTK_STATE_NORMAL]);

View File

@ -8,7 +8,7 @@
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
@ -19,293 +19,282 @@
#ifndef __GTK_ENUMS_H__
#define __GTK_ENUMS_H__
#include <glib.h>
#ifdef __cplusplus
extern "C" {
#pragma }
#endif /* __cplusplus */
typedef enum
{
/* should the accelerator appear in
* the widget's display?
*/
G_NV (GTK_ACCEL_VISIBLE, visible, 1 << 0),
GTK_ACCEL_VISIBLE = 1 << 0,
/* should the signal associated with
* this accelerator be also visible?
*/
G_NV (GTK_ACCEL_SIGNAL_VISIBLE, signal-visible, 1 << 1),
GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1,
/* may the accelerator be removed
* again?
*/
G_NV (GTK_ACCEL_LOCKED, locked, 1 << 2),
G_NV (GTK_ACCEL_MASK, mask, 0x07)
} G_FLAGS (GtkAccelFlags);
GTK_ACCEL_LOCKED = 1 << 2,
GTK_ACCEL_MASK = 0x07
} GtkAccelFlags;
/* Arrow types */
typedef enum
{
G_SV (GTK_ARROW_UP, up),
G_SV (GTK_ARROW_DOWN, down),
G_SV (GTK_ARROW_LEFT, left),
G_SV (GTK_ARROW_RIGHT, right)
} G_ENUM (GtkArrowType);
GTK_ARROW_UP,
GTK_ARROW_DOWN,
GTK_ARROW_LEFT,
GTK_ARROW_RIGHT
} GtkArrowType;
/* Attach options (for tables) */
typedef enum
{
G_NV (GTK_EXPAND, expand, 1 << 0),
G_NV (GTK_SHRINK, shrink, 1 << 1),
G_NV (GTK_FILL, fill, 1 << 2)
} G_FLAGS (GtkAttachOptions);
GTK_EXPAND = 1 << 0,
GTK_SHRINK = 1 << 1,
GTK_FILL = 1 << 2
} GtkAttachOptions;
/* button box styles */
/* Button box styles */
typedef enum
{
GTK_BUTTONBOX_DEFAULT_STYLE,
GTK_BUTTONBOX_SPREAD,
GTK_BUTTONBOX_EDGE,
GTK_BUTTONBOX_START,
GTK_BUTTONBOX_END
} GtkButtonBoxStyle;
/* Curve types */
typedef enum
{
G_SV (GTK_BUTTONBOX_DEFAULT_STYLE, default),
G_SV (GTK_BUTTONBOX_SPREAD, spread),
G_SV (GTK_BUTTONBOX_EDGE, edge),
G_SV (GTK_BUTTONBOX_START, start),
G_SV (GTK_BUTTONBOX_END, end)
} G_ENUM (GtkButtonBoxStyle);
/* curve types */
typedef enum
{
G_SV (GTK_CURVE_TYPE_LINEAR, linear) /* linear interpolation */,
G_SV (GTK_CURVE_TYPE_SPLINE, spline) /* spline interpolation */,
G_SV (GTK_CURVE_TYPE_FREE, free) /* free form curve */
} G_ENUM (GtkCurveType);
GTK_CURVE_TYPE_LINEAR, /* linear interpolation */
GTK_CURVE_TYPE_SPLINE, /* spline interpolation */
GTK_CURVE_TYPE_FREE /* free form curve */
} GtkCurveType;
/* Focus movement types */
typedef enum
{
G_SV (GTK_DIR_TAB_FORWARD, tab-forward),
G_SV (GTK_DIR_TAB_BACKWARD, tab-backward),
G_SV (GTK_DIR_UP, up),
G_SV (GTK_DIR_DOWN, down),
G_SV (GTK_DIR_LEFT, left),
G_SV (GTK_DIR_RIGHT, right)
} G_ENUM (GtkDirectionType);
GTK_DIR_TAB_FORWARD,
GTK_DIR_TAB_BACKWARD,
GTK_DIR_UP,
GTK_DIR_DOWN,
GTK_DIR_LEFT,
GTK_DIR_RIGHT
} GtkDirectionType;
/* justification for label and maybe other widgets (text?) */
typedef enum
{
G_SV (GTK_JUSTIFY_LEFT, left),
G_SV (GTK_JUSTIFY_RIGHT, right),
G_SV (GTK_JUSTIFY_CENTER, center),
G_SV (GTK_JUSTIFY_FILL, fill)
} G_ENUM (GtkJustification);
GTK_JUSTIFY_LEFT,
GTK_JUSTIFY_RIGHT,
GTK_JUSTIFY_CENTER,
GTK_JUSTIFY_FILL
} GtkJustification;
/* GtkPatternSpec match types */
typedef enum
{
G_SV (GTK_MATCH_ALL, all) /* "*A?A*" */,
G_SV (GTK_MATCH_ALL_TAIL, all-tail) /* "*A?AA" */,
G_SV (GTK_MATCH_HEAD, head) /* "AAAA*" */,
G_SV (GTK_MATCH_TAIL, tail) /* "*AAAA" */,
G_SV (GTK_MATCH_EXACT, exact) /* "AAAAA" */,
G_SV (GTK_MATCH_LAST, last)
} G_ENUM (GtkMatchType);
GTK_MATCH_ALL, /* "*A?A*" */
GTK_MATCH_ALL_TAIL, /* "*A?AA" */
GTK_MATCH_HEAD, /* "AAAA*" */
GTK_MATCH_TAIL, /* "*AAAA" */
GTK_MATCH_EXACT, /* "AAAAA" */
GTK_MATCH_LAST
} GtkMatchType;
/* menu factory types (outdated) */
typedef enum
{
G_SV (GTK_MENU_FACTORY_MENU, menu),
G_SV (GTK_MENU_FACTORY_MENU_BAR, menu-bar),
G_SV (GTK_MENU_FACTORY_OPTION_MENU, option-menu)
} G_ENUM (GtkMenuFactoryType);
GTK_MENU_FACTORY_MENU,
GTK_MENU_FACTORY_MENU_BAR,
GTK_MENU_FACTORY_OPTION_MENU
} GtkMenuFactoryType;
/* gtk metrics */
typedef enum
{
G_SV (GTK_PIXELS, pixels),
G_SV (GTK_INCHES, inches),
G_SV (GTK_CENTIMETERS, centimeters)
} G_ENUM (GtkMetricType);
GTK_PIXELS,
GTK_INCHES,
GTK_CENTIMETERS
} GtkMetricType;
/* Orientation for toolbars, etc. */
typedef enum
{
G_SV (GTK_ORIENTATION_HORIZONTAL, horizontal),
G_SV (GTK_ORIENTATION_VERTICAL, vertical)
} G_ENUM (GtkOrientation);
GTK_ORIENTATION_HORIZONTAL,
GTK_ORIENTATION_VERTICAL
} GtkOrientation;
/* Packing types (for boxes) */
typedef enum
{
G_SV (GTK_PACK_START, start),
G_SV (GTK_PACK_END, end)
} G_ENUM (GtkPackType);
GTK_PACK_START,
GTK_PACK_END
} GtkPackType;
/* priorities for path lookups */
typedef enum
{
G_NV (GTK_PATH_PRIO_LOWEST, lowest, 0),
G_NV (GTK_PATH_PRIO_GTK, gtk, 4),
G_NV (GTK_PATH_PRIO_APPLICATION, application, 8),
G_NV (GTK_PATH_PRIO_RC, rc, 12),
G_NV (GTK_PATH_PRIO_HIGHEST, highest, 15),
G_NV (GTK_PATH_PRIO_MASK, mask, 0x0f)
} G_ENUM (GtkPathPriorityType);
GTK_PATH_PRIO_LOWEST = 0,
GTK_PATH_PRIO_GTK = 4,
GTK_PATH_PRIO_APPLICATION = 8,
GTK_PATH_PRIO_RC = 12,
GTK_PATH_PRIO_HIGHEST = 15,
GTK_PATH_PRIO_MASK = 0x0f
} GtkPathPriorityType;
/* widget path types */
typedef enum
{
G_SV (GTK_PATH_WIDGET, widget),
G_SV (GTK_PATH_WIDGET_CLASS, widget-class),
G_SV (GTK_PATH_CLASS, class)
} G_ENUM (GtkPathType);
GTK_PATH_WIDGET,
GTK_PATH_WIDGET_CLASS,
GTK_PATH_CLASS
} GtkPathType;
/* Scrollbar policy types (for scrolled windows) */
typedef enum
{
G_SV (GTK_POLICY_ALWAYS, always),
G_SV (GTK_POLICY_AUTOMATIC, automatic)
} G_ENUM (GtkPolicyType);
GTK_POLICY_ALWAYS,
GTK_POLICY_AUTOMATIC
} GtkPolicyType;
/* gtk position */
typedef enum
{
G_SV (GTK_POS_LEFT, left),
G_SV (GTK_POS_RIGHT, right),
G_SV (GTK_POS_TOP, top),
G_SV (GTK_POS_BOTTOM, bottom)
} G_ENUM (GtkPositionType);
GTK_POS_LEFT,
GTK_POS_RIGHT,
GTK_POS_TOP,
GTK_POS_BOTTOM
} GtkPositionType;
/* GtkPreview types */
typedef enum
{
G_SV (GTK_PREVIEW_COLOR, color),
G_SV (GTK_PREVIEW_GRAYSCALE, grayscale),
G_NV (GTK_PREVIEW_GREYSCALE, greyscale, GTK_PREVIEW_GRAYSCALE)
} G_ENUM (GtkPreviewType);
GTK_PREVIEW_COLOR,
GTK_PREVIEW_GRAYSCALE
} GtkPreviewType;
/* Style for buttons */
typedef enum
{
G_SV (GTK_RELIEF_NORMAL, normal),
G_SV (GTK_RELIEF_NONE, none)
} G_ENUM (GtkReliefStyle);
GTK_RELIEF_NORMAL,
GTK_RELIEF_NONE
} GtkReliefStyle;
/* signal run types */
typedef enum /*< flags >*/
{
GTK_RUN_FIRST = 0x1,
GTK_RUN_LAST = 0x2,
GTK_RUN_BOTH = 0x3,
GTK_RUN_MASK = 0xF,
GTK_RUN_NO_RECURSE = 0x10,
GTK_RUN_ACTION = 0x20
} GtkSignalRunType;
/* scrolling types */
typedef enum
{
G_SV (GTK_SCROLL_NONE, none),
G_SV (GTK_SCROLL_STEP_BACKWARD, step-backward),
G_SV (GTK_SCROLL_STEP_FORWARD, step-forward),
G_SV (GTK_SCROLL_PAGE_BACKWARD, page-backward),
G_SV (GTK_SCROLL_PAGE_FORWARD, page-forward),
G_SV (GTK_SCROLL_JUMP, jump)
} G_ENUM (GtkScrollType);
GTK_SCROLL_NONE,
GTK_SCROLL_STEP_BACKWARD,
GTK_SCROLL_STEP_FORWARD,
GTK_SCROLL_PAGE_BACKWARD,
GTK_SCROLL_PAGE_FORWARD,
GTK_SCROLL_JUMP
} GtkScrollType;
/* list selection modes */
typedef enum
{
G_SV (GTK_SELECTION_SINGLE, single),
G_SV (GTK_SELECTION_BROWSE, browse),
G_SV (GTK_SELECTION_MULTIPLE, multiple),
G_SV (GTK_SELECTION_EXTENDED, extended)
} G_ENUM (GtkSelectionMode);
GTK_SELECTION_SINGLE,
GTK_SELECTION_BROWSE,
GTK_SELECTION_MULTIPLE,
GTK_SELECTION_EXTENDED
} GtkSelectionMode;
/* Shadow types */
typedef enum
{
G_SV (GTK_SHADOW_NONE, none),
G_SV (GTK_SHADOW_IN, in),
G_SV (GTK_SHADOW_OUT, out),
G_SV (GTK_SHADOW_ETCHED_IN, etched-in),
G_SV (GTK_SHADOW_ETCHED_OUT, etched-out)
} G_ENUM (GtkShadowType);
/* signal run types */
typedef enum
{
G_NV (GTK_RUN_FIRST, first, 0x1),
G_NV (GTK_RUN_LAST, last, 0x2),
G_NV (GTK_RUN_BOTH, both, 0x3),
G_NV (GTK_RUN_MASK, mask, 0xF),
G_NV (GTK_RUN_NO_RECURSE, no-recurse, 0x10),
G_NV (GTK_RUN_ACTION, action, 0x20)
} G_FLAGS (GtkSignalRunType);
GTK_SHADOW_NONE,
GTK_SHADOW_IN,
GTK_SHADOW_OUT,
GTK_SHADOW_ETCHED_IN,
GTK_SHADOW_ETCHED_OUT
} GtkShadowType;
/* Widget states */
typedef enum
{
G_SV (GTK_STATE_NORMAL, normal),
G_SV (GTK_STATE_ACTIVE, active),
G_SV (GTK_STATE_PRELIGHT, prelight),
G_SV (GTK_STATE_SELECTED, selected),
G_SV (GTK_STATE_INSENSITIVE, insensitive)
} G_ENUM (GtkStateType);
GTK_STATE_NORMAL,
GTK_STATE_ACTIVE,
GTK_STATE_PRELIGHT,
GTK_STATE_SELECTED,
GTK_STATE_INSENSITIVE
} GtkStateType;
/* directions for submenus */
/* Directions for submenus */
typedef enum
{
G_SV (GTK_DIRECTION_LEFT, left),
G_SV (GTK_DIRECTION_RIGHT, right)
} G_ENUM (GtkSubmenuDirection);
GTK_DIRECTION_LEFT,
GTK_DIRECTION_RIGHT
} GtkSubmenuDirection;
/* placement of submenus */
/* Placement of submenus */
typedef enum
{
G_SV (GTK_TOP_BOTTOM, top-bottom),
G_SV (GTK_LEFT_RIGHT, left-right)
} G_ENUM (GtkSubmenuPlacement);
GTK_TOP_BOTTOM,
GTK_LEFT_RIGHT
} GtkSubmenuPlacement;
/* Style for toolbars */
typedef enum
{
G_SV (GTK_TOOLBAR_ICONS, icons),
G_SV (GTK_TOOLBAR_TEXT, text),
G_SV (GTK_TOOLBAR_BOTH, both)
} G_ENUM (GtkToolbarStyle);
GTK_TOOLBAR_ICONS,
GTK_TOOLBAR_TEXT,
GTK_TOOLBAR_BOTH
} GtkToolbarStyle;
/* trough types for GtkRange */
/* Trough types for GtkRange */
typedef enum
{
G_SV (GTK_TROUGH_NONE, none),
G_SV (GTK_TROUGH_START, start),
G_SV (GTK_TROUGH_END, end),
G_SV (GTK_TROUGH_JUMP, jump)
} G_ENUM (GtkTroughType);
GTK_TROUGH_NONE,
GTK_TROUGH_START,
GTK_TROUGH_END,
GTK_TROUGH_JUMP
} GtkTroughType;
/* Data update types (for ranges) */
typedef enum
{
G_SV (GTK_UPDATE_CONTINUOUS, continuous),
G_SV (GTK_UPDATE_DISCONTINUOUS, discontinuous),
G_SV (GTK_UPDATE_DELAYED, delayed)
} G_ENUM (GtkUpdateType);
GTK_UPDATE_CONTINUOUS,
GTK_UPDATE_DISCONTINUOUS,
GTK_UPDATE_DELAYED
} GtkUpdateType;
/* Generic visibility flags */
typedef enum
{
G_SV (GTK_VISIBILITY_NONE, none),
G_SV (GTK_VISIBILITY_PARTIAL, partial),
G_SV (GTK_VISIBILITY_FULL, full)
} G_ENUM (GtkVisibility);
GTK_VISIBILITY_NONE,
GTK_VISIBILITY_PARTIAL,
GTK_VISIBILITY_FULL
} GtkVisibility;
/* window position types */
/* Window position types */
typedef enum
{
G_SV (GTK_WIN_POS_NONE, none),
G_SV (GTK_WIN_POS_CENTER, center),
G_SV (GTK_WIN_POS_MOUSE, mouse)
} G_ENUM (GtkWindowPosition);
GTK_WIN_POS_NONE,
GTK_WIN_POS_CENTER,
GTK_WIN_POS_MOUSE
} GtkWindowPosition;
/* Window types */
typedef enum
{
G_SV (GTK_WINDOW_TOPLEVEL, toplevel),
G_SV (GTK_WINDOW_DIALOG, dialog),
G_SV (GTK_WINDOW_POPUP, popup)
} G_ENUM (GtkWindowType);
GTK_WINDOW_TOPLEVEL,
GTK_WINDOW_DIALOG,
GTK_WINDOW_POPUP
} GtkWindowType;
#ifdef __cplusplus
}

View File

@ -100,12 +100,12 @@ extern "C" {
*/
typedef enum
{
G_NV (GTK_DESTROYED, destroyed, 1 << 0),
G_NV (GTK_FLOATING, floating, 1 << 1),
G_NV (GTK_CONNECTED, connected, 1 << 2),
GTK_RESERVED_2,
G_NV (GTK_OBJECT_FLAG_LAST, object-flag-last, GTK_RESERVED_2)
} G_FLAGS (GtkObjectFlags);
GTK_DESTROYED = 1 << 0,
GTK_FLOATING = 1 << 1,
GTK_CONNECTED = 1 << 2,
GTK_RESERVED_2 = 1 << 3,
GTK_OBJECT_FLAG_LAST = GTK_RESERVED_2
} GtkObjectFlags;
/* Macros for extracting the object_flags from GtkObject.
*/
@ -123,15 +123,14 @@ typedef enum
*/
typedef enum
{
G_NV (GTK_ARG_READABLE, readable, 1 << 0),
G_NV (GTK_ARG_WRITABLE, writable, 1 << 1),
G_NV (GTK_ARG_CONSTRUCT, construct, 1 << 2),
G_NV (GTK_ARG_MASK, mask, 0x03),
GTK_ARG_READABLE = 1 << 0,
GTK_ARG_WRITABLE = 1 << 1,
GTK_ARG_CONSTRUCT = 1 << 2,
GTK_ARG_MASK = 0x03,
/* aliases
*/
G_NV (GTK_ARG_READWRITE, readwrite, GTK_ARG_READABLE | GTK_ARG_WRITABLE)
} G_FLAGS (GtkArgFlags);
GTK_ARG_READWRITE = GTK_ARG_READABLE | GTK_ARG_WRITABLE
} GtkArgFlags;
typedef struct _GtkObjectClass GtkObjectClass;

View File

@ -43,41 +43,30 @@ typedef struct _GtkPacker GtkPacker;
typedef struct _GtkPackerClass GtkPackerClass;
typedef struct _GtkPackerChild GtkPackerChild;
typedef enum
{
G_NV (GTK_PACK_EXPAND, pack-expand, 1 << 0),
G_NV (GTK_FILL_X, fill-x, 1 << 1),
G_NV (GTK_FILL_Y, fill-y, 1 << 2)
} G_FLAGS (GtkPackerOptions);
typedef enum {
GTK_PACK_EXPAND = 1 << 0, /*< nick=expand >*/
GTK_FILL_X = 1 << 1,
GTK_FILL_Y = 1 << 2
} GtkPackerOptions;
typedef enum
{
G_SV (GTK_SIDE_TOP, top),
G_SV (GTK_SIDE_BOTTOM, bottom),
G_SV (GTK_SIDE_LEFT, left),
G_SV (GTK_SIDE_RIGHT, right)
} G_ENUM (GtkSideType);
typedef enum {
GTK_SIDE_TOP,
GTK_SIDE_BOTTOM,
GTK_SIDE_LEFT,
GTK_SIDE_RIGHT
} GtkSideType;
typedef enum
{
G_SV (GTK_ANCHOR_CENTER, center),
G_SV (GTK_ANCHOR_NORTH, north),
G_SV (GTK_ANCHOR_NORTH_WEST, north-west),
G_SV (GTK_ANCHOR_NORTH_EAST, north-east),
G_SV (GTK_ANCHOR_SOUTH, south),
G_SV (GTK_ANCHOR_SOUTH_WEST, south-west),
G_SV (GTK_ANCHOR_SOUTH_EAST, south-east),
G_SV (GTK_ANCHOR_WEST, west),
G_SV (GTK_ANCHOR_EAST, east),
GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
GTK_ANCHOR_W = GTK_ANCHOR_WEST,
GTK_ANCHOR_E = GTK_ANCHOR_EAST
} G_ENUM (GtkAnchorType);
typedef enum {
GTK_ANCHOR_CENTER,
GTK_ANCHOR_N,
GTK_ANCHOR_NW,
GTK_ANCHOR_NE,
GTK_ANCHOR_S,
GTK_ANCHOR_SW,
GTK_ANCHOR_SE,
GTK_ANCHOR_W,
GTK_ANCHOR_E
} GtkAnchorType;
struct _GtkPackerChild
{

View File

@ -30,19 +30,18 @@ extern "C" {
#endif /* __cplusplus */
/* The private flags that are used in the private_flags member of GtkWidget.
*/
typedef enum
{
G_NV (PRIVATE_GTK_USER_STYLE, user-style, 1 << 0),
G_NV (PRIVATE_GTK_REDRAW_PENDING, redraw-pending, 1 << 1),
G_NV (PRIVATE_GTK_RESIZE_PENDING, resize-pending, 1 << 2),
G_NV (PRIVATE_GTK_RESIZE_NEEDED, resize-needed, 1 << 3),
G_NV (PRIVATE_GTK_LEAVE_PENDING, leave-pending, 1 << 4),
G_NV (PRIVATE_GTK_HAS_SHAPE_MASK, has-shape-mask, 1 << 5),
G_NV (PRIVATE_GTK_IN_REPARENT, in-reparent, 1 << 6)
} G_FLAGS (GtkPrivateFlags);
PRIVATE_GTK_USER_STYLE = 1 << 0,
PRIVATE_GTK_REDRAW_PENDING = 1 << 1,
PRIVATE_GTK_RESIZE_PENDING = 1 << 2,
PRIVATE_GTK_RESIZE_NEEDED = 1 << 3,
PRIVATE_GTK_LEAVE_PENDING = 1 << 4,
PRIVATE_GTK_HAS_SHAPE_MASK = 1 << 5,
PRIVATE_GTK_IN_REPARENT = 1 << 6
} GtkPrivateFlags;
/* Macros for extracting a widgets private_flags from GtkWidget.
*/

View File

@ -159,6 +159,7 @@ struct _LineParams
static void gtk_text_class_init (GtkTextClass *klass);
static void gtk_text_init (GtkText *text);
static void gtk_text_destroy (GtkObject *object);
static void gtk_text_finalize (GtkObject *object);
static void gtk_text_realize (GtkWidget *widget);
static void gtk_text_unrealize (GtkWidget *widget);
static void gtk_text_style_set (GtkWidget *widget,
@ -274,6 +275,7 @@ static void scroll_int (GtkText* text, gint diff);
static void process_exposes (GtkText *text);
/* Cache Management. */
static void free_cache (GtkText* text);
static GList* remove_cache_line (GtkText* text, GList* list);
/* Key Motion. */
@ -460,6 +462,7 @@ gtk_text_class_init (GtkTextClass *class)
parent_class = gtk_type_class (gtk_editable_get_type ());
object_class->destroy = gtk_text_destroy;
object_class->finalize = gtk_text_finalize;
widget_class->realize = gtk_text_realize;
widget_class->unrealize = gtk_text_unrealize;
@ -933,6 +936,38 @@ gtk_text_destroy (GtkObject *object)
GTK_OBJECT_CLASS(parent_class)->destroy (object);
}
static void
gtk_text_finalize (GtkObject *object)
{
GtkText *text;
GList *tmp_list;
g_return_if_fail (object != NULL);
g_return_if_fail (GTK_IS_TEXT (object));
text = (GtkText *)object;
/* Clean up the internal structures */
g_free (text->text);
free_cache (text);
tmp_list = text->text_properties;
while (tmp_list)
{
g_mem_chunk_free (text_property_chunk, tmp_list->data);
tmp_list = tmp_list->next;
}
g_list_free (text->text_properties);
if (text->scratch_buffer)
g_free (text->scratch_buffer);
g_list_free (text->tab_stops);
GTK_OBJECT_CLASS(parent_class)->finalize (object);
}
static void
gtk_text_realize (GtkWidget *widget)
{
@ -1113,6 +1148,9 @@ gtk_text_unrealize (GtkWidget *widget)
gdk_gc_destroy (text->gc);
text->gc = NULL;
gdk_pixmap_unref (text->line_wrap_bitmap);
gdk_pixmap_unref (text->line_arrow_bitmap);
if (GTK_WIDGET_CLASS (parent_class)->unrealize)
(* GTK_WIDGET_CLASS (parent_class)->unrealize) (widget);
}

View File

@ -39,16 +39,15 @@ extern "C" {
#define GTK_TOOLBAR_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_toolbar_get_type (), GtkToolbarClass)
#define GTK_IS_TOOLBAR(obj) GTK_CHECK_TYPE (obj, gtk_toolbar_get_type ())
enum _GtkToolbarChildType
typedef enum
{
GTK_TOOLBAR_CHILD_SPACE,
GTK_TOOLBAR_CHILD_BUTTON,
GTK_TOOLBAR_CHILD_TOGGLEBUTTON,
GTK_TOOLBAR_CHILD_RADIOBUTTON,
GTK_TOOLBAR_CHILD_WIDGET
};
} GtkToolbarChildType;
typedef enum _GtkToolbarChildType GtkToolbarChildType;
typedef struct _GtkToolbarChild GtkToolbarChild;
typedef struct _GtkToolbar GtkToolbar;
typedef struct _GtkToolbarClass GtkToolbarClass;

View File

@ -1,45 +1,9 @@
/* type macros, generated by maketypes.awk */
extern GtkType GTK_TYPE_GDK_WINDOW_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_CLASS;
extern GtkType GTK_TYPE_GDK_IMAGE_TYPE;
extern GtkType GTK_TYPE_GDK_VISUAL_TYPE;
extern GtkType GTK_TYPE_GDK_FONT_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_HINTS;
extern GtkType GTK_TYPE_GDK_FUNCTION;
extern GtkType GTK_TYPE_GDK_FILL;
extern GtkType GTK_TYPE_GDK_FILL_RULE;
extern GtkType GTK_TYPE_GDK_LINE_STYLE;
extern GtkType GTK_TYPE_GDK_CAP_STYLE;
extern GtkType GTK_TYPE_GDK_JOIN_STYLE;
extern GtkType GTK_TYPE_GDK_FILTER_RETURN;
extern GtkType GTK_TYPE_GDK_VISIBILITY_STATE;
extern GtkType GTK_TYPE_GDK_EVENT_TYPE;
extern GtkType GTK_TYPE_GDK_EVENT_MASK;
extern GtkType GTK_TYPE_GDK_NOTIFY_TYPE;
extern GtkType GTK_TYPE_GDK_CROSSING_MODE;
extern GtkType GTK_TYPE_GDK_MODIFIER_TYPE;
extern GtkType GTK_TYPE_GDK_SUBWINDOW_MODE;
extern GtkType GTK_TYPE_GDK_INPUT_CONDITION;
extern GtkType GTK_TYPE_GDK_STATUS;
extern GtkType GTK_TYPE_GDK_BYTE_ORDER;
extern GtkType GTK_TYPE_GDK_G_C_VALUES_MASK;
extern GtkType GTK_TYPE_GDK_SELECTION;
extern GtkType GTK_TYPE_GDK_PROPERTY_STATE;
extern GtkType GTK_TYPE_GDK_PROP_MODE;
extern GtkType GTK_TYPE_GDK_DND_TYPE;
extern GtkType GTK_TYPE_GDK_INPUT_SOURCE;
extern GtkType GTK_TYPE_GDK_INPUT_MODE;
extern GtkType GTK_TYPE_GDK_AXIS_USE;
extern GtkType GTK_TYPE_GDK_TARGET;
extern GtkType GTK_TYPE_GDK_SELECTION_TYPE;
extern GtkType GTK_TYPE_GDK_EXTENSION_MODE;
extern GtkType GTK_TYPE_GDK_W_M_DECORATION;
extern GtkType GTK_TYPE_GDK_W_M_FUNCTION;
extern GtkType GTK_TYPE_GDK_COLOR_CONTEXT_MODE;
extern GtkType GTK_TYPE_GDK_OVERLAP_TYPE;
extern GtkType GTK_TYPE_GDK_DEBUG_FLAG;
extern GtkType GTK_TYPE_CELL_TYPE;
extern GtkType GTK_TYPE_C_TREE_POS;
extern GtkType GTK_TYPE_C_TREE_LINE_STYLE;
extern GtkType GTK_TYPE_DEBUG_FLAG;
extern GtkType GTK_TYPE_ACCEL_FLAGS;
extern GtkType GTK_TYPE_ARROW_TYPE;
extern GtkType GTK_TYPE_ATTACH_OPTIONS;
@ -58,10 +22,10 @@ extern GtkType GTK_TYPE_POLICY_TYPE;
extern GtkType GTK_TYPE_POSITION_TYPE;
extern GtkType GTK_TYPE_PREVIEW_TYPE;
extern GtkType GTK_TYPE_RELIEF_STYLE;
extern GtkType GTK_TYPE_SIGNAL_RUN_TYPE;
extern GtkType GTK_TYPE_SCROLL_TYPE;
extern GtkType GTK_TYPE_SELECTION_MODE;
extern GtkType GTK_TYPE_SHADOW_TYPE;
extern GtkType GTK_TYPE_SIGNAL_RUN_TYPE;
extern GtkType GTK_TYPE_STATE_TYPE;
extern GtkType GTK_TYPE_SUBMENU_DIRECTION;
extern GtkType GTK_TYPE_SUBMENU_PLACEMENT;
@ -71,15 +35,59 @@ extern GtkType GTK_TYPE_UPDATE_TYPE;
extern GtkType GTK_TYPE_VISIBILITY;
extern GtkType GTK_TYPE_WINDOW_POSITION;
extern GtkType GTK_TYPE_WINDOW_TYPE;
extern GtkType GTK_TYPE_FUNDAMENTAL_TYPE;
extern GtkType GTK_TYPE_DEBUG_FLAG;
extern GtkType GTK_TYPE_OBJECT_FLAGS;
extern GtkType GTK_TYPE_ARG_FLAGS;
extern GtkType GTK_TYPE_WIDGET_FLAGS;
extern GtkType GTK_TYPE_PACKER_OPTIONS;
extern GtkType GTK_TYPE_SIDE_TYPE;
extern GtkType GTK_TYPE_ANCHOR_TYPE;
extern GtkType GTK_TYPE_PRIVATE_FLAGS;
extern GtkType GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY;
extern GtkType GTK_TYPE_TOOLBAR_CHILD_TYPE;
extern GtkType GTK_TYPE_TREE_VIEW_MODE;
extern GtkType GTK_TYPE_FUNDAMENTAL_TYPE;
extern GtkType GTK_TYPE_WIDGET_FLAGS;
extern GtkType GTK_TYPE_GDK_DEBUG_FLAG;
extern GtkType GTK_TYPE_GDK_WINDOW_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_CLASS;
extern GtkType GTK_TYPE_GDK_IMAGE_TYPE;
extern GtkType GTK_TYPE_GDK_VISUAL_TYPE;
extern GtkType GTK_TYPE_GDK_FONT_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE;
extern GtkType GTK_TYPE_GDK_WINDOW_HINTS;
extern GtkType GTK_TYPE_GDK_FUNCTION;
extern GtkType GTK_TYPE_GDK_FILL;
extern GtkType GTK_TYPE_GDK_FILL_RULE;
extern GtkType GTK_TYPE_GDK_LINE_STYLE;
extern GtkType GTK_TYPE_GDK_CAP_STYLE;
extern GtkType GTK_TYPE_GDK_JOIN_STYLE;
extern GtkType GTK_TYPE_GDK_CURSOR_TYPE;
extern GtkType GTK_TYPE_GDK_FILTER_RETURN;
extern GtkType GTK_TYPE_GDK_VISIBILITY_STATE;
extern GtkType GTK_TYPE_GDK_EVENT_TYPE;
extern GtkType GTK_TYPE_GDK_EVENT_MASK;
extern GtkType GTK_TYPE_GDK_NOTIFY_TYPE;
extern GtkType GTK_TYPE_GDK_CROSSING_MODE;
extern GtkType GTK_TYPE_GDK_MODIFIER_TYPE;
extern GtkType GTK_TYPE_GDK_SUBWINDOW_MODE;
extern GtkType GTK_TYPE_GDK_INPUT_CONDITION;
extern GtkType GTK_TYPE_GDK_STATUS;
extern GtkType GTK_TYPE_GDK_BYTE_ORDER;
extern GtkType GTK_TYPE_GDK_GC_VALUES_MASK;
extern GtkType GTK_TYPE_GDK_SELECTION;
extern GtkType GTK_TYPE_GDK_PROPERTY_STATE;
extern GtkType GTK_TYPE_GDK_PROP_MODE;
extern GtkType GTK_TYPE_GDK_DND_TYPE;
extern GtkType GTK_TYPE_GDK_INPUT_SOURCE;
extern GtkType GTK_TYPE_GDK_INPUT_MODE;
extern GtkType GTK_TYPE_GDK_AXIS_USE;
extern GtkType GTK_TYPE_GDK_TARGET;
extern GtkType GTK_TYPE_GDK_SELECTION_TYPE;
extern GtkType GTK_TYPE_GDK_EXTENSION_MODE;
extern GtkType GTK_TYPE_GDK_IM_STYLE;
extern GtkType GTK_TYPE_GDK_WM_DECORATION;
extern GtkType GTK_TYPE_GDK_WM_FUNCTION;
extern GtkType GTK_TYPE_GDK_COLOR_CONTEXT_MODE;
extern GtkType GTK_TYPE_GDK_OVERLAP_TYPE;
extern GtkType GTK_TYPE_ACCEL_GROUP;
extern GtkType GTK_TYPE_SELECTION_DATA;
extern GtkType GTK_TYPE_STYLE;
@ -90,4 +98,4 @@ extern GtkType GTK_TYPE_GDK_WINDOW;
extern GtkType GTK_TYPE_GDK_EVENT;
extern GtkType GTK_TYPE_GDK_COLOR;
#define GTK_TYPE_NUM_BUILTINS (89)
#define GTK_TYPE_NUM_BUILTINS (97)

View File

@ -1,5 +1,356 @@
/* generated by makeenums.awk */
/* Generated by makeenums.pl */
static GtkEnumValue _gtk_cell_type_values[] = {
{ GTK_CELL_EMPTY, "GTK_CELL_EMPTY", "empty" },
{ GTK_CELL_TEXT, "GTK_CELL_TEXT", "text" },
{ GTK_CELL_PIXMAP, "GTK_CELL_PIXMAP", "pixmap" },
{ GTK_CELL_PIXTEXT, "GTK_CELL_PIXTEXT", "pixtext" },
{ GTK_CELL_WIDGET, "GTK_CELL_WIDGET", "widget" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_c_tree_pos_values[] = {
{ GTK_CTREE_POS_BEFORE, "GTK_CTREE_POS_BEFORE", "before" },
{ GTK_CTREE_POS_AS_CHILD, "GTK_CTREE_POS_AS_CHILD", "as-child" },
{ GTK_CTREE_POS_AFTER, "GTK_CTREE_POS_AFTER", "after" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_c_tree_line_style_values[] = {
{ GTK_CTREE_LINES_SOLID, "GTK_CTREE_LINES_SOLID", "solid" },
{ GTK_CTREE_LINES_DOTTED, "GTK_CTREE_LINES_DOTTED", "dotted" },
{ GTK_CTREE_LINES_NONE, "GTK_CTREE_LINES_NONE", "none" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_debug_flag_values[] = {
{ GTK_DEBUG_OBJECTS, "GTK_DEBUG_OBJECTS", "objects" },
{ GTK_DEBUG_MISC, "GTK_DEBUG_MISC", "misc" },
{ GTK_DEBUG_SIGNALS, "GTK_DEBUG_SIGNALS", "signals" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_accel_flags_values[] = {
{ GTK_ACCEL_VISIBLE, "GTK_ACCEL_VISIBLE", "visible" },
{ GTK_ACCEL_SIGNAL_VISIBLE, "GTK_ACCEL_SIGNAL_VISIBLE", "signal-visible" },
{ GTK_ACCEL_LOCKED, "GTK_ACCEL_LOCKED", "locked" },
{ GTK_ACCEL_MASK, "GTK_ACCEL_MASK", "mask" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_arrow_type_values[] = {
{ GTK_ARROW_UP, "GTK_ARROW_UP", "up" },
{ GTK_ARROW_DOWN, "GTK_ARROW_DOWN", "down" },
{ GTK_ARROW_LEFT, "GTK_ARROW_LEFT", "left" },
{ GTK_ARROW_RIGHT, "GTK_ARROW_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_attach_options_values[] = {
{ GTK_EXPAND, "GTK_EXPAND", "expand" },
{ GTK_SHRINK, "GTK_SHRINK", "shrink" },
{ GTK_FILL, "GTK_FILL", "fill" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_button_box_style_values[] = {
{ GTK_BUTTONBOX_DEFAULT_STYLE, "GTK_BUTTONBOX_DEFAULT_STYLE", "default-style" },
{ GTK_BUTTONBOX_SPREAD, "GTK_BUTTONBOX_SPREAD", "spread" },
{ GTK_BUTTONBOX_EDGE, "GTK_BUTTONBOX_EDGE", "edge" },
{ GTK_BUTTONBOX_START, "GTK_BUTTONBOX_START", "start" },
{ GTK_BUTTONBOX_END, "GTK_BUTTONBOX_END", "end" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_curve_type_values[] = {
{ GTK_CURVE_TYPE_LINEAR, "GTK_CURVE_TYPE_LINEAR", "linear" },
{ GTK_CURVE_TYPE_SPLINE, "GTK_CURVE_TYPE_SPLINE", "spline" },
{ GTK_CURVE_TYPE_FREE, "GTK_CURVE_TYPE_FREE", "free" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_direction_type_values[] = {
{ GTK_DIR_TAB_FORWARD, "GTK_DIR_TAB_FORWARD", "tab-forward" },
{ GTK_DIR_TAB_BACKWARD, "GTK_DIR_TAB_BACKWARD", "tab-backward" },
{ GTK_DIR_UP, "GTK_DIR_UP", "up" },
{ GTK_DIR_DOWN, "GTK_DIR_DOWN", "down" },
{ GTK_DIR_LEFT, "GTK_DIR_LEFT", "left" },
{ GTK_DIR_RIGHT, "GTK_DIR_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_justification_values[] = {
{ GTK_JUSTIFY_LEFT, "GTK_JUSTIFY_LEFT", "left" },
{ GTK_JUSTIFY_RIGHT, "GTK_JUSTIFY_RIGHT", "right" },
{ GTK_JUSTIFY_CENTER, "GTK_JUSTIFY_CENTER", "center" },
{ GTK_JUSTIFY_FILL, "GTK_JUSTIFY_FILL", "fill" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_match_type_values[] = {
{ GTK_MATCH_ALL, "GTK_MATCH_ALL", "all" },
{ GTK_MATCH_ALL_TAIL, "GTK_MATCH_ALL_TAIL", "all-tail" },
{ GTK_MATCH_HEAD, "GTK_MATCH_HEAD", "head" },
{ GTK_MATCH_TAIL, "GTK_MATCH_TAIL", "tail" },
{ GTK_MATCH_EXACT, "GTK_MATCH_EXACT", "exact" },
{ GTK_MATCH_LAST, "GTK_MATCH_LAST", "last" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_menu_factory_type_values[] = {
{ GTK_MENU_FACTORY_MENU, "GTK_MENU_FACTORY_MENU", "menu" },
{ GTK_MENU_FACTORY_MENU_BAR, "GTK_MENU_FACTORY_MENU_BAR", "menu-bar" },
{ GTK_MENU_FACTORY_OPTION_MENU, "GTK_MENU_FACTORY_OPTION_MENU", "option-menu" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_metric_type_values[] = {
{ GTK_PIXELS, "GTK_PIXELS", "pixels" },
{ GTK_INCHES, "GTK_INCHES", "inches" },
{ GTK_CENTIMETERS, "GTK_CENTIMETERS", "centimeters" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_orientation_values[] = {
{ GTK_ORIENTATION_HORIZONTAL, "GTK_ORIENTATION_HORIZONTAL", "horizontal" },
{ GTK_ORIENTATION_VERTICAL, "GTK_ORIENTATION_VERTICAL", "vertical" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_pack_type_values[] = {
{ GTK_PACK_START, "GTK_PACK_START", "start" },
{ GTK_PACK_END, "GTK_PACK_END", "end" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_path_priority_type_values[] = {
{ GTK_PATH_PRIO_LOWEST, "GTK_PATH_PRIO_LOWEST", "lowest" },
{ GTK_PATH_PRIO_GTK, "GTK_PATH_PRIO_GTK", "gtk" },
{ GTK_PATH_PRIO_APPLICATION, "GTK_PATH_PRIO_APPLICATION", "application" },
{ GTK_PATH_PRIO_RC, "GTK_PATH_PRIO_RC", "rc" },
{ GTK_PATH_PRIO_HIGHEST, "GTK_PATH_PRIO_HIGHEST", "highest" },
{ GTK_PATH_PRIO_MASK, "GTK_PATH_PRIO_MASK", "mask" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_path_type_values[] = {
{ GTK_PATH_WIDGET, "GTK_PATH_WIDGET", "widget" },
{ GTK_PATH_WIDGET_CLASS, "GTK_PATH_WIDGET_CLASS", "widget-class" },
{ GTK_PATH_CLASS, "GTK_PATH_CLASS", "class" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_policy_type_values[] = {
{ GTK_POLICY_ALWAYS, "GTK_POLICY_ALWAYS", "always" },
{ GTK_POLICY_AUTOMATIC, "GTK_POLICY_AUTOMATIC", "automatic" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_position_type_values[] = {
{ GTK_POS_LEFT, "GTK_POS_LEFT", "left" },
{ GTK_POS_RIGHT, "GTK_POS_RIGHT", "right" },
{ GTK_POS_TOP, "GTK_POS_TOP", "top" },
{ GTK_POS_BOTTOM, "GTK_POS_BOTTOM", "bottom" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_preview_type_values[] = {
{ GTK_PREVIEW_COLOR, "GTK_PREVIEW_COLOR", "color" },
{ GTK_PREVIEW_GRAYSCALE, "GTK_PREVIEW_GRAYSCALE", "grayscale" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_relief_style_values[] = {
{ GTK_RELIEF_NORMAL, "GTK_RELIEF_NORMAL", "normal" },
{ GTK_RELIEF_NONE, "GTK_RELIEF_NONE", "none" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_signal_run_type_values[] = {
{ GTK_RUN_FIRST, "GTK_RUN_FIRST", "first" },
{ GTK_RUN_LAST, "GTK_RUN_LAST", "last" },
{ GTK_RUN_BOTH, "GTK_RUN_BOTH", "both" },
{ GTK_RUN_MASK, "GTK_RUN_MASK", "mask" },
{ GTK_RUN_NO_RECURSE, "GTK_RUN_NO_RECURSE", "no-recurse" },
{ GTK_RUN_ACTION, "GTK_RUN_ACTION", "action" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_scroll_type_values[] = {
{ GTK_SCROLL_NONE, "GTK_SCROLL_NONE", "none" },
{ GTK_SCROLL_STEP_BACKWARD, "GTK_SCROLL_STEP_BACKWARD", "step-backward" },
{ GTK_SCROLL_STEP_FORWARD, "GTK_SCROLL_STEP_FORWARD", "step-forward" },
{ GTK_SCROLL_PAGE_BACKWARD, "GTK_SCROLL_PAGE_BACKWARD", "page-backward" },
{ GTK_SCROLL_PAGE_FORWARD, "GTK_SCROLL_PAGE_FORWARD", "page-forward" },
{ GTK_SCROLL_JUMP, "GTK_SCROLL_JUMP", "jump" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_selection_mode_values[] = {
{ GTK_SELECTION_SINGLE, "GTK_SELECTION_SINGLE", "single" },
{ GTK_SELECTION_BROWSE, "GTK_SELECTION_BROWSE", "browse" },
{ GTK_SELECTION_MULTIPLE, "GTK_SELECTION_MULTIPLE", "multiple" },
{ GTK_SELECTION_EXTENDED, "GTK_SELECTION_EXTENDED", "extended" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_shadow_type_values[] = {
{ GTK_SHADOW_NONE, "GTK_SHADOW_NONE", "none" },
{ GTK_SHADOW_IN, "GTK_SHADOW_IN", "in" },
{ GTK_SHADOW_OUT, "GTK_SHADOW_OUT", "out" },
{ GTK_SHADOW_ETCHED_IN, "GTK_SHADOW_ETCHED_IN", "etched-in" },
{ GTK_SHADOW_ETCHED_OUT, "GTK_SHADOW_ETCHED_OUT", "etched-out" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_state_type_values[] = {
{ GTK_STATE_NORMAL, "GTK_STATE_NORMAL", "normal" },
{ GTK_STATE_ACTIVE, "GTK_STATE_ACTIVE", "active" },
{ GTK_STATE_PRELIGHT, "GTK_STATE_PRELIGHT", "prelight" },
{ GTK_STATE_SELECTED, "GTK_STATE_SELECTED", "selected" },
{ GTK_STATE_INSENSITIVE, "GTK_STATE_INSENSITIVE", "insensitive" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_submenu_direction_values[] = {
{ GTK_DIRECTION_LEFT, "GTK_DIRECTION_LEFT", "left" },
{ GTK_DIRECTION_RIGHT, "GTK_DIRECTION_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_submenu_placement_values[] = {
{ GTK_TOP_BOTTOM, "GTK_TOP_BOTTOM", "top-bottom" },
{ GTK_LEFT_RIGHT, "GTK_LEFT_RIGHT", "left-right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_toolbar_style_values[] = {
{ GTK_TOOLBAR_ICONS, "GTK_TOOLBAR_ICONS", "icons" },
{ GTK_TOOLBAR_TEXT, "GTK_TOOLBAR_TEXT", "text" },
{ GTK_TOOLBAR_BOTH, "GTK_TOOLBAR_BOTH", "both" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_trough_type_values[] = {
{ GTK_TROUGH_NONE, "GTK_TROUGH_NONE", "none" },
{ GTK_TROUGH_START, "GTK_TROUGH_START", "start" },
{ GTK_TROUGH_END, "GTK_TROUGH_END", "end" },
{ GTK_TROUGH_JUMP, "GTK_TROUGH_JUMP", "jump" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_update_type_values[] = {
{ GTK_UPDATE_CONTINUOUS, "GTK_UPDATE_CONTINUOUS", "continuous" },
{ GTK_UPDATE_DISCONTINUOUS, "GTK_UPDATE_DISCONTINUOUS", "discontinuous" },
{ GTK_UPDATE_DELAYED, "GTK_UPDATE_DELAYED", "delayed" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_visibility_values[] = {
{ GTK_VISIBILITY_NONE, "GTK_VISIBILITY_NONE", "none" },
{ GTK_VISIBILITY_PARTIAL, "GTK_VISIBILITY_PARTIAL", "partial" },
{ GTK_VISIBILITY_FULL, "GTK_VISIBILITY_FULL", "full" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_window_position_values[] = {
{ GTK_WIN_POS_NONE, "GTK_WIN_POS_NONE", "none" },
{ GTK_WIN_POS_CENTER, "GTK_WIN_POS_CENTER", "center" },
{ GTK_WIN_POS_MOUSE, "GTK_WIN_POS_MOUSE", "mouse" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_window_type_values[] = {
{ GTK_WINDOW_TOPLEVEL, "GTK_WINDOW_TOPLEVEL", "toplevel" },
{ GTK_WINDOW_DIALOG, "GTK_WINDOW_DIALOG", "dialog" },
{ GTK_WINDOW_POPUP, "GTK_WINDOW_POPUP", "popup" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_object_flags_values[] = {
{ GTK_DESTROYED, "GTK_DESTROYED", "destroyed" },
{ GTK_FLOATING, "GTK_FLOATING", "floating" },
{ GTK_CONNECTED, "GTK_CONNECTED", "connected" },
{ GTK_RESERVED_2, "GTK_RESERVED_2", "reserved-2" },
{ GTK_OBJECT_FLAG_LAST, "GTK_OBJECT_FLAG_LAST", "object-flag-last" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_arg_flags_values[] = {
{ GTK_ARG_READABLE, "GTK_ARG_READABLE", "readable" },
{ GTK_ARG_WRITABLE, "GTK_ARG_WRITABLE", "writable" },
{ GTK_ARG_CONSTRUCT, "GTK_ARG_CONSTRUCT", "construct" },
{ GTK_ARG_MASK, "GTK_ARG_MASK", "mask" },
{ GTK_ARG_READWRITE, "GTK_ARG_READWRITE", "readwrite" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_packer_options_values[] = {
{ GTK_PACK_EXPAND, "GTK_PACK_EXPAND", "expand" },
{ GTK_FILL_X, "GTK_FILL_X", "fill-x" },
{ GTK_FILL_Y, "GTK_FILL_Y", "fill-y" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_side_type_values[] = {
{ GTK_SIDE_TOP, "GTK_SIDE_TOP", "top" },
{ GTK_SIDE_BOTTOM, "GTK_SIDE_BOTTOM", "bottom" },
{ GTK_SIDE_LEFT, "GTK_SIDE_LEFT", "left" },
{ GTK_SIDE_RIGHT, "GTK_SIDE_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_anchor_type_values[] = {
{ GTK_ANCHOR_CENTER, "GTK_ANCHOR_CENTER", "center" },
{ GTK_ANCHOR_N, "GTK_ANCHOR_N", "n" },
{ GTK_ANCHOR_NW, "GTK_ANCHOR_NW", "nw" },
{ GTK_ANCHOR_NE, "GTK_ANCHOR_NE", "ne" },
{ GTK_ANCHOR_S, "GTK_ANCHOR_S", "s" },
{ GTK_ANCHOR_SW, "GTK_ANCHOR_SW", "sw" },
{ GTK_ANCHOR_SE, "GTK_ANCHOR_SE", "se" },
{ GTK_ANCHOR_W, "GTK_ANCHOR_W", "w" },
{ GTK_ANCHOR_E, "GTK_ANCHOR_E", "e" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_private_flags_values[] = {
{ PRIVATE_GTK_USER_STYLE, "PRIVATE_GTK_USER_STYLE", "user-style" },
{ PRIVATE_GTK_REDRAW_PENDING, "PRIVATE_GTK_REDRAW_PENDING", "redraw-pending" },
{ PRIVATE_GTK_RESIZE_PENDING, "PRIVATE_GTK_RESIZE_PENDING", "resize-pending" },
{ PRIVATE_GTK_RESIZE_NEEDED, "PRIVATE_GTK_RESIZE_NEEDED", "resize-needed" },
{ PRIVATE_GTK_LEAVE_PENDING, "PRIVATE_GTK_LEAVE_PENDING", "leave-pending" },
{ PRIVATE_GTK_HAS_SHAPE_MASK, "PRIVATE_GTK_HAS_SHAPE_MASK", "has-shape-mask" },
{ PRIVATE_GTK_IN_REPARENT, "PRIVATE_GTK_IN_REPARENT", "in-reparent" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_spin_button_update_policy_values[] = {
{ GTK_UPDATE_ALWAYS, "GTK_UPDATE_ALWAYS", "always" },
{ GTK_UPDATE_IF_VALID, "GTK_UPDATE_IF_VALID", "if-valid" },
{ GTK_UPDATE_SNAP_TO_TICKS, "GTK_UPDATE_SNAP_TO_TICKS", "snap-to-ticks" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_toolbar_child_type_values[] = {
{ GTK_TOOLBAR_CHILD_SPACE, "GTK_TOOLBAR_CHILD_SPACE", "space" },
{ GTK_TOOLBAR_CHILD_BUTTON, "GTK_TOOLBAR_CHILD_BUTTON", "button" },
{ GTK_TOOLBAR_CHILD_TOGGLEBUTTON, "GTK_TOOLBAR_CHILD_TOGGLEBUTTON", "togglebutton" },
{ GTK_TOOLBAR_CHILD_RADIOBUTTON, "GTK_TOOLBAR_CHILD_RADIOBUTTON", "radiobutton" },
{ GTK_TOOLBAR_CHILD_WIDGET, "GTK_TOOLBAR_CHILD_WIDGET", "widget" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_tree_view_mode_values[] = {
{ GTK_TREE_VIEW_LINE, "GTK_TREE_VIEW_LINE", "line" },
{ GTK_TREE_VIEW_ITEM, "GTK_TREE_VIEW_ITEM", "item" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_fundamental_type_values[] = {
{ GTK_TYPE_INVALID, "GTK_TYPE_INVALID", "invalid" },
{ GTK_TYPE_NONE, "GTK_TYPE_NONE", "none" },
{ GTK_TYPE_CHAR, "GTK_TYPE_CHAR", "char" },
{ GTK_TYPE_BOOL, "GTK_TYPE_BOOL", "bool" },
{ GTK_TYPE_INT, "GTK_TYPE_INT", "int" },
{ GTK_TYPE_UINT, "GTK_TYPE_UINT", "uint" },
{ GTK_TYPE_LONG, "GTK_TYPE_LONG", "long" },
{ GTK_TYPE_ULONG, "GTK_TYPE_ULONG", "ulong" },
{ GTK_TYPE_FLOAT, "GTK_TYPE_FLOAT", "float" },
{ GTK_TYPE_DOUBLE, "GTK_TYPE_DOUBLE", "double" },
{ GTK_TYPE_STRING, "GTK_TYPE_STRING", "string" },
{ GTK_TYPE_ENUM, "GTK_TYPE_ENUM", "enum" },
{ GTK_TYPE_FLAGS, "GTK_TYPE_FLAGS", "flags" },
{ GTK_TYPE_BOXED, "GTK_TYPE_BOXED", "boxed" },
{ GTK_TYPE_FOREIGN, "GTK_TYPE_FOREIGN", "foreign" },
{ GTK_TYPE_CALLBACK, "GTK_TYPE_CALLBACK", "callback" },
{ GTK_TYPE_ARGS, "GTK_TYPE_ARGS", "args" },
{ GTK_TYPE_POINTER, "GTK_TYPE_POINTER", "pointer" },
{ GTK_TYPE_SIGNAL, "GTK_TYPE_SIGNAL", "signal" },
{ GTK_TYPE_C_CALLBACK, "GTK_TYPE_C_CALLBACK", "c-callback" },
{ GTK_TYPE_OBJECT, "GTK_TYPE_OBJECT", "object" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_widget_flags_values[] = {
{ GTK_TOPLEVEL, "GTK_TOPLEVEL", "toplevel" },
{ GTK_NO_WINDOW, "GTK_NO_WINDOW", "no-window" },
{ GTK_REALIZED, "GTK_REALIZED", "realized" },
{ GTK_MAPPED, "GTK_MAPPED", "mapped" },
{ GTK_VISIBLE, "GTK_VISIBLE", "visible" },
{ GTK_SENSITIVE, "GTK_SENSITIVE", "sensitive" },
{ GTK_PARENT_SENSITIVE, "GTK_PARENT_SENSITIVE", "parent-sensitive" },
{ GTK_CAN_FOCUS, "GTK_CAN_FOCUS", "can-focus" },
{ GTK_HAS_FOCUS, "GTK_HAS_FOCUS", "has-focus" },
{ GTK_CAN_DEFAULT, "GTK_CAN_DEFAULT", "can-default" },
{ GTK_HAS_DEFAULT, "GTK_HAS_DEFAULT", "has-default" },
{ GTK_HAS_GRAB, "GTK_HAS_GRAB", "has-grab" },
{ GTK_RC_STYLE, "GTK_RC_STYLE", "rc-style" },
{ GTK_BASIC, "GTK_BASIC", "basic" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_debug_flag_values[] = {
{ GDK_DEBUG_MISC, "GDK_DEBUG_MISC", "misc" },
{ GDK_DEBUG_EVENTS, "GDK_DEBUG_EVENTS", "events" },
{ GDK_DEBUG_DND, "GDK_DEBUG_DND", "dnd" },
{ GDK_DEBUG_COLOR_CONTEXT, "GDK_DEBUG_COLOR_CONTEXT", "color-context" },
{ GDK_DEBUG_XIM, "GDK_DEBUG_XIM", "xim" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_window_type_values[] = {
{ GDK_WINDOW_ROOT, "GDK_WINDOW_ROOT", "root" },
{ GDK_WINDOW_TOPLEVEL, "GDK_WINDOW_TOPLEVEL", "toplevel" },
@ -11,8 +362,8 @@ static GtkEnumValue _gdk_window_type_values[] = {
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_window_class_values[] = {
{ GDK_INPUT_OUTPUT, "GDK_INPUT_OUTPUT", "input-output" },
{ GDK_INPUT_ONLY, "GDK_INPUT_ONLY", "input-only" },
{ GDK_INPUT_OUTPUT, "GDK_INPUT_OUTPUT", "output" },
{ GDK_INPUT_ONLY, "GDK_INPUT_ONLY", "only" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_image_type_values[] = {
@ -89,6 +440,89 @@ static GtkEnumValue _gdk_join_style_values[] = {
{ GDK_JOIN_BEVEL, "GDK_JOIN_BEVEL", "bevel" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_cursor_type_values[] = {
{ GDK_NUM_GLYPHS, "GDK_NUM_GLYPHS", "num-glyphs" },
{ GDK_X_CURSOR, "GDK_X_CURSOR", "x-cursor" },
{ GDK_ARROW, "GDK_ARROW", "arrow" },
{ GDK_BASED_ARROW_DOWN, "GDK_BASED_ARROW_DOWN", "based-arrow-down" },
{ GDK_BASED_ARROW_UP, "GDK_BASED_ARROW_UP", "based-arrow-up" },
{ GDK_BOAT, "GDK_BOAT", "boat" },
{ GDK_BOGOSITY, "GDK_BOGOSITY", "bogosity" },
{ GDK_BOTTOM_LEFT_CORNER, "GDK_BOTTOM_LEFT_CORNER", "bottom-left-corner" },
{ GDK_BOTTOM_RIGHT_CORNER, "GDK_BOTTOM_RIGHT_CORNER", "bottom-right-corner" },
{ GDK_BOTTOM_SIDE, "GDK_BOTTOM_SIDE", "bottom-side" },
{ GDK_BOTTOM_TEE, "GDK_BOTTOM_TEE", "bottom-tee" },
{ GDK_BOX_SPIRAL, "GDK_BOX_SPIRAL", "box-spiral" },
{ GDK_CENTER_PTR, "GDK_CENTER_PTR", "center-ptr" },
{ GDK_CIRCLE, "GDK_CIRCLE", "circle" },
{ GDK_CLOCK, "GDK_CLOCK", "clock" },
{ GDK_COFFEE_MUG, "GDK_COFFEE_MUG", "coffee-mug" },
{ GDK_CROSS, "GDK_CROSS", "cross" },
{ GDK_CROSS_REVERSE, "GDK_CROSS_REVERSE", "cross-reverse" },
{ GDK_CROSSHAIR, "GDK_CROSSHAIR", "crosshair" },
{ GDK_DIAMOND_CROSS, "GDK_DIAMOND_CROSS", "diamond-cross" },
{ GDK_DOT, "GDK_DOT", "dot" },
{ GDK_DOTBOX, "GDK_DOTBOX", "dotbox" },
{ GDK_DOUBLE_ARROW, "GDK_DOUBLE_ARROW", "double-arrow" },
{ GDK_DRAFT_LARGE, "GDK_DRAFT_LARGE", "draft-large" },
{ GDK_DRAFT_SMALL, "GDK_DRAFT_SMALL", "draft-small" },
{ GDK_DRAPED_BOX, "GDK_DRAPED_BOX", "draped-box" },
{ GDK_EXCHANGE, "GDK_EXCHANGE", "exchange" },
{ GDK_FLEUR, "GDK_FLEUR", "fleur" },
{ GDK_GOBBLER, "GDK_GOBBLER", "gobbler" },
{ GDK_GUMBY, "GDK_GUMBY", "gumby" },
{ GDK_HAND1, "GDK_HAND1", "hand1" },
{ GDK_HAND2, "GDK_HAND2", "hand2" },
{ GDK_HEART, "GDK_HEART", "heart" },
{ GDK_ICON, "GDK_ICON", "icon" },
{ GDK_IRON_CROSS, "GDK_IRON_CROSS", "iron-cross" },
{ GDK_LEFT_PTR, "GDK_LEFT_PTR", "left-ptr" },
{ GDK_LEFT_SIDE, "GDK_LEFT_SIDE", "left-side" },
{ GDK_LEFT_TEE, "GDK_LEFT_TEE", "left-tee" },
{ GDK_LEFTBUTTON, "GDK_LEFTBUTTON", "leftbutton" },
{ GDK_LL_ANGLE, "GDK_LL_ANGLE", "ll-angle" },
{ GDK_LR_ANGLE, "GDK_LR_ANGLE", "lr-angle" },
{ GDK_MAN, "GDK_MAN", "man" },
{ GDK_MIDDLEBUTTON, "GDK_MIDDLEBUTTON", "middlebutton" },
{ GDK_MOUSE, "GDK_MOUSE", "mouse" },
{ GDK_PENCIL, "GDK_PENCIL", "pencil" },
{ GDK_PIRATE, "GDK_PIRATE", "pirate" },
{ GDK_PLUS, "GDK_PLUS", "plus" },
{ GDK_QUESTION_ARROW, "GDK_QUESTION_ARROW", "question-arrow" },
{ GDK_RIGHT_PTR, "GDK_RIGHT_PTR", "right-ptr" },
{ GDK_RIGHT_SIDE, "GDK_RIGHT_SIDE", "right-side" },
{ GDK_RIGHT_TEE, "GDK_RIGHT_TEE", "right-tee" },
{ GDK_RIGHTBUTTON, "GDK_RIGHTBUTTON", "rightbutton" },
{ GDK_RTL_LOGO, "GDK_RTL_LOGO", "rtl-logo" },
{ GDK_SAILBOAT, "GDK_SAILBOAT", "sailboat" },
{ GDK_SB_DOWN_ARROW, "GDK_SB_DOWN_ARROW", "sb-down-arrow" },
{ GDK_SB_H_DOUBLE_ARROW, "GDK_SB_H_DOUBLE_ARROW", "sb-h-double-arrow" },
{ GDK_SB_LEFT_ARROW, "GDK_SB_LEFT_ARROW", "sb-left-arrow" },
{ GDK_SB_RIGHT_ARROW, "GDK_SB_RIGHT_ARROW", "sb-right-arrow" },
{ GDK_SB_UP_ARROW, "GDK_SB_UP_ARROW", "sb-up-arrow" },
{ GDK_SB_V_DOUBLE_ARROW, "GDK_SB_V_DOUBLE_ARROW", "sb-v-double-arrow" },
{ GDK_SHUTTLE, "GDK_SHUTTLE", "shuttle" },
{ GDK_SIZING, "GDK_SIZING", "sizing" },
{ GDK_SPIDER, "GDK_SPIDER", "spider" },
{ GDK_SPRAYCAN, "GDK_SPRAYCAN", "spraycan" },
{ GDK_STAR, "GDK_STAR", "star" },
{ GDK_TARGET, "GDK_TARGET", "target" },
{ GDK_TCROSS, "GDK_TCROSS", "tcross" },
{ GDK_TOP_LEFT_ARROW, "GDK_TOP_LEFT_ARROW", "top-left-arrow" },
{ GDK_TOP_LEFT_CORNER, "GDK_TOP_LEFT_CORNER", "top-left-corner" },
{ GDK_TOP_RIGHT_CORNER, "GDK_TOP_RIGHT_CORNER", "top-right-corner" },
{ GDK_TOP_SIDE, "GDK_TOP_SIDE", "top-side" },
{ GDK_TOP_TEE, "GDK_TOP_TEE", "top-tee" },
{ GDK_TREK, "GDK_TREK", "trek" },
{ GDK_UL_ANGLE, "GDK_UL_ANGLE", "ul-angle" },
{ GDK_UMBRELLA, "GDK_UMBRELLA", "umbrella" },
{ GDK_UR_ANGLE, "GDK_UR_ANGLE", "ur-angle" },
{ GDK_WATCH, "GDK_WATCH", "watch" },
{ GDK_XTERM, "GDK_XTERM", "xterm" },
{ GDK_LAST_CURSOR, "GDK_LAST_CURSOR", "last-cursor" },
{ GDK_CURSOR_IS_PIXMAP, "GDK_CURSOR_IS_PIXMAP", "cursor-is-pixmap" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_filter_return_values[] = {
{ GDK_FILTER_CONTINUE, "GDK_FILTER_CONTINUE", "continue" },
{ GDK_FILTER_TRANSLATE, "GDK_FILTER_TRANSLATE", "translate" },
@ -170,9 +604,9 @@ static GtkEnumValue _gdk_notify_type_values[] = {
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_crossing_mode_values[] = {
{ GDK_CROSSING_NORMAL, "GDK_CROSSING_NORMAL", "crossing-normal" },
{ GDK_CROSSING_GRAB, "GDK_CROSSING_GRAB", "crossing-grab" },
{ GDK_CROSSING_UNGRAB, "GDK_CROSSING_UNGRAB", "crossing-ungrab" },
{ GDK_CROSSING_NORMAL, "GDK_CROSSING_NORMAL", "normal" },
{ GDK_CROSSING_GRAB, "GDK_CROSSING_GRAB", "grab" },
{ GDK_CROSSING_UNGRAB, "GDK_CROSSING_UNGRAB", "ungrab" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_modifier_type_values[] = {
@ -216,7 +650,7 @@ static GtkEnumValue _gdk_byte_order_values[] = {
{ GDK_MSB_FIRST, "GDK_MSB_FIRST", "msb-first" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_g_c_values_mask_values[] = {
static GtkEnumValue _gdk_gc_values_mask_values[] = {
{ GDK_GC_FOREGROUND, "GDK_GC_FOREGROUND", "foreground" },
{ GDK_GC_BACKGROUND, "GDK_GC_BACKGROUND", "background" },
{ GDK_GC_FONT, "GDK_GC_FONT", "font" },
@ -316,7 +750,19 @@ static GtkEnumValue _gdk_extension_mode_values[] = {
{ GDK_EXTENSION_EVENTS_CURSOR, "GDK_EXTENSION_EVENTS_CURSOR", "cursor" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_w_m_decoration_values[] = {
static GtkEnumValue _gdk_im_style_values[] = {
{ GdkIMPreeditArea, "GdkIMPreeditArea", "preedit-area" },
{ GdkIMPreeditCallbacks, "GdkIMPreeditCallbacks", "preedit-callbacks" },
{ GdkIMPreeditPosition, "GdkIMPreeditPosition", "preedit-position" },
{ GdkIMPreeditNothing, "GdkIMPreeditNothing", "preedit-nothing" },
{ GdkIMPreeditNone, "GdkIMPreeditNone", "preedit-none" },
{ GdkIMStatusArea, "GdkIMStatusArea", "status-area" },
{ GdkIMStatusCallbacks, "GdkIMStatusCallbacks", "status-callbacks" },
{ GdkIMStatusNothing, "GdkIMStatusNothing", "status-nothing" },
{ GdkIMStatusNone, "GdkIMStatusNone", "status-none" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_wm_decoration_values[] = {
{ GDK_DECOR_ALL, "GDK_DECOR_ALL", "all" },
{ GDK_DECOR_BORDER, "GDK_DECOR_BORDER", "border" },
{ GDK_DECOR_RESIZEH, "GDK_DECOR_RESIZEH", "resizeh" },
@ -326,7 +772,7 @@ static GtkEnumValue _gdk_w_m_decoration_values[] = {
{ GDK_DECOR_MAXIMIZE, "GDK_DECOR_MAXIMIZE", "maximize" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_w_m_function_values[] = {
static GtkEnumValue _gdk_wm_function_values[] = {
{ GDK_FUNC_ALL, "GDK_FUNC_ALL", "all" },
{ GDK_FUNC_RESIZE, "GDK_FUNC_RESIZE", "resize" },
{ GDK_FUNC_MOVE, "GDK_FUNC_MOVE", "move" },
@ -350,316 +796,3 @@ static GtkEnumValue _gdk_overlap_type_values[] = {
{ GDK_OVERLAP_RECTANGLE_PART, "GDK_OVERLAP_RECTANGLE_PART", "part" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gdk_debug_flag_values[] = {
{ GDK_DEBUG_MISC, "GDK_DEBUG_MISC", "misc" },
{ GDK_DEBUG_EVENTS, "GDK_DEBUG_EVENTS", "events" },
{ GDK_DEBUG_DND, "GDK_DEBUG_DND", "dnd" },
{ GDK_DEBUG_COLOR_CONTEXT, "GDK_DEBUG_COLOR_CONTEXT", "color-context" },
{ GDK_DEBUG_XIM, "GDK_DEBUG_XIM", "xim" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_accel_flags_values[] = {
{ GTK_ACCEL_VISIBLE, "GTK_ACCEL_VISIBLE", "visible" },
{ GTK_ACCEL_SIGNAL_VISIBLE, "GTK_ACCEL_SIGNAL_VISIBLE", "signal-visible" },
{ GTK_ACCEL_LOCKED, "GTK_ACCEL_LOCKED", "locked" },
{ GTK_ACCEL_MASK, "GTK_ACCEL_MASK", "mask" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_arrow_type_values[] = {
{ GTK_ARROW_UP, "GTK_ARROW_UP", "up" },
{ GTK_ARROW_DOWN, "GTK_ARROW_DOWN", "down" },
{ GTK_ARROW_LEFT, "GTK_ARROW_LEFT", "left" },
{ GTK_ARROW_RIGHT, "GTK_ARROW_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_attach_options_values[] = {
{ GTK_EXPAND, "GTK_EXPAND", "expand" },
{ GTK_SHRINK, "GTK_SHRINK", "shrink" },
{ GTK_FILL, "GTK_FILL", "fill" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_button_box_style_values[] = {
{ GTK_BUTTONBOX_DEFAULT_STYLE, "GTK_BUTTONBOX_DEFAULT_STYLE", "default" },
{ GTK_BUTTONBOX_SPREAD, "GTK_BUTTONBOX_SPREAD", "spread" },
{ GTK_BUTTONBOX_EDGE, "GTK_BUTTONBOX_EDGE", "edge" },
{ GTK_BUTTONBOX_START, "GTK_BUTTONBOX_START", "start" },
{ GTK_BUTTONBOX_END, "GTK_BUTTONBOX_END", "end" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_curve_type_values[] = {
{ GTK_CURVE_TYPE_LINEAR, "GTK_CURVE_TYPE_LINEAR", "linear" },
{ GTK_CURVE_TYPE_SPLINE, "GTK_CURVE_TYPE_SPLINE", "spline" },
{ GTK_CURVE_TYPE_FREE, "GTK_CURVE_TYPE_FREE", "free" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_direction_type_values[] = {
{ GTK_DIR_TAB_FORWARD, "GTK_DIR_TAB_FORWARD", "tab-forward" },
{ GTK_DIR_TAB_BACKWARD, "GTK_DIR_TAB_BACKWARD", "tab-backward" },
{ GTK_DIR_UP, "GTK_DIR_UP", "up" },
{ GTK_DIR_DOWN, "GTK_DIR_DOWN", "down" },
{ GTK_DIR_LEFT, "GTK_DIR_LEFT", "left" },
{ GTK_DIR_RIGHT, "GTK_DIR_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_justification_values[] = {
{ GTK_JUSTIFY_LEFT, "GTK_JUSTIFY_LEFT", "left" },
{ GTK_JUSTIFY_RIGHT, "GTK_JUSTIFY_RIGHT", "right" },
{ GTK_JUSTIFY_CENTER, "GTK_JUSTIFY_CENTER", "center" },
{ GTK_JUSTIFY_FILL, "GTK_JUSTIFY_FILL", "fill" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_match_type_values[] = {
{ GTK_MATCH_ALL, "GTK_MATCH_ALL", "all" },
{ GTK_MATCH_ALL_TAIL, "GTK_MATCH_ALL_TAIL", "all-tail" },
{ GTK_MATCH_HEAD, "GTK_MATCH_HEAD", "head" },
{ GTK_MATCH_TAIL, "GTK_MATCH_TAIL", "tail" },
{ GTK_MATCH_EXACT, "GTK_MATCH_EXACT", "exact" },
{ GTK_MATCH_LAST, "GTK_MATCH_LAST", "last" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_menu_factory_type_values[] = {
{ GTK_MENU_FACTORY_MENU, "GTK_MENU_FACTORY_MENU", "menu" },
{ GTK_MENU_FACTORY_MENU_BAR, "GTK_MENU_FACTORY_MENU_BAR", "menu-bar" },
{ GTK_MENU_FACTORY_OPTION_MENU, "GTK_MENU_FACTORY_OPTION_MENU", "option-menu" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_metric_type_values[] = {
{ GTK_PIXELS, "GTK_PIXELS", "pixels" },
{ GTK_INCHES, "GTK_INCHES", "inches" },
{ GTK_CENTIMETERS, "GTK_CENTIMETERS", "centimeters" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_orientation_values[] = {
{ GTK_ORIENTATION_HORIZONTAL, "GTK_ORIENTATION_HORIZONTAL", "horizontal" },
{ GTK_ORIENTATION_VERTICAL, "GTK_ORIENTATION_VERTICAL", "vertical" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_pack_type_values[] = {
{ GTK_PACK_START, "GTK_PACK_START", "start" },
{ GTK_PACK_END, "GTK_PACK_END", "end" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_path_priority_type_values[] = {
{ GTK_PATH_PRIO_LOWEST, "GTK_PATH_PRIO_LOWEST", "lowest" },
{ GTK_PATH_PRIO_GTK, "GTK_PATH_PRIO_GTK", "gtk" },
{ GTK_PATH_PRIO_APPLICATION, "GTK_PATH_PRIO_APPLICATION", "application" },
{ GTK_PATH_PRIO_RC, "GTK_PATH_PRIO_RC", "rc" },
{ GTK_PATH_PRIO_HIGHEST, "GTK_PATH_PRIO_HIGHEST", "highest" },
{ GTK_PATH_PRIO_MASK, "GTK_PATH_PRIO_MASK", "mask" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_path_type_values[] = {
{ GTK_PATH_WIDGET, "GTK_PATH_WIDGET", "widget" },
{ GTK_PATH_WIDGET_CLASS, "GTK_PATH_WIDGET_CLASS", "widget-class" },
{ GTK_PATH_CLASS, "GTK_PATH_CLASS", "class" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_policy_type_values[] = {
{ GTK_POLICY_ALWAYS, "GTK_POLICY_ALWAYS", "always" },
{ GTK_POLICY_AUTOMATIC, "GTK_POLICY_AUTOMATIC", "automatic" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_position_type_values[] = {
{ GTK_POS_LEFT, "GTK_POS_LEFT", "left" },
{ GTK_POS_RIGHT, "GTK_POS_RIGHT", "right" },
{ GTK_POS_TOP, "GTK_POS_TOP", "top" },
{ GTK_POS_BOTTOM, "GTK_POS_BOTTOM", "bottom" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_preview_type_values[] = {
{ GTK_PREVIEW_COLOR, "GTK_PREVIEW_COLOR", "color" },
{ GTK_PREVIEW_GRAYSCALE, "GTK_PREVIEW_GRAYSCALE", "grayscale" },
{ GTK_PREVIEW_GREYSCALE, "GTK_PREVIEW_GREYSCALE", "greyscale" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_relief_style_values[] = {
{ GTK_RELIEF_NORMAL, "GTK_RELIEF_NORMAL", "normal" },
{ GTK_RELIEF_NONE, "GTK_RELIEF_NONE", "none" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_scroll_type_values[] = {
{ GTK_SCROLL_NONE, "GTK_SCROLL_NONE", "none" },
{ GTK_SCROLL_STEP_BACKWARD, "GTK_SCROLL_STEP_BACKWARD", "step-backward" },
{ GTK_SCROLL_STEP_FORWARD, "GTK_SCROLL_STEP_FORWARD", "step-forward" },
{ GTK_SCROLL_PAGE_BACKWARD, "GTK_SCROLL_PAGE_BACKWARD", "page-backward" },
{ GTK_SCROLL_PAGE_FORWARD, "GTK_SCROLL_PAGE_FORWARD", "page-forward" },
{ GTK_SCROLL_JUMP, "GTK_SCROLL_JUMP", "jump" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_selection_mode_values[] = {
{ GTK_SELECTION_SINGLE, "GTK_SELECTION_SINGLE", "single" },
{ GTK_SELECTION_BROWSE, "GTK_SELECTION_BROWSE", "browse" },
{ GTK_SELECTION_MULTIPLE, "GTK_SELECTION_MULTIPLE", "multiple" },
{ GTK_SELECTION_EXTENDED, "GTK_SELECTION_EXTENDED", "extended" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_shadow_type_values[] = {
{ GTK_SHADOW_NONE, "GTK_SHADOW_NONE", "none" },
{ GTK_SHADOW_IN, "GTK_SHADOW_IN", "in" },
{ GTK_SHADOW_OUT, "GTK_SHADOW_OUT", "out" },
{ GTK_SHADOW_ETCHED_IN, "GTK_SHADOW_ETCHED_IN", "etched-in" },
{ GTK_SHADOW_ETCHED_OUT, "GTK_SHADOW_ETCHED_OUT", "etched-out" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_signal_run_type_values[] = {
{ GTK_RUN_FIRST, "GTK_RUN_FIRST", "first" },
{ GTK_RUN_LAST, "GTK_RUN_LAST", "last" },
{ GTK_RUN_BOTH, "GTK_RUN_BOTH", "both" },
{ GTK_RUN_MASK, "GTK_RUN_MASK", "mask" },
{ GTK_RUN_NO_RECURSE, "GTK_RUN_NO_RECURSE", "no-recurse" },
{ GTK_RUN_ACTION, "GTK_RUN_ACTION", "action" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_state_type_values[] = {
{ GTK_STATE_NORMAL, "GTK_STATE_NORMAL", "normal" },
{ GTK_STATE_ACTIVE, "GTK_STATE_ACTIVE", "active" },
{ GTK_STATE_PRELIGHT, "GTK_STATE_PRELIGHT", "prelight" },
{ GTK_STATE_SELECTED, "GTK_STATE_SELECTED", "selected" },
{ GTK_STATE_INSENSITIVE, "GTK_STATE_INSENSITIVE", "insensitive" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_submenu_direction_values[] = {
{ GTK_DIRECTION_LEFT, "GTK_DIRECTION_LEFT", "left" },
{ GTK_DIRECTION_RIGHT, "GTK_DIRECTION_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_submenu_placement_values[] = {
{ GTK_TOP_BOTTOM, "GTK_TOP_BOTTOM", "top-bottom" },
{ GTK_LEFT_RIGHT, "GTK_LEFT_RIGHT", "left-right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_toolbar_style_values[] = {
{ GTK_TOOLBAR_ICONS, "GTK_TOOLBAR_ICONS", "icons" },
{ GTK_TOOLBAR_TEXT, "GTK_TOOLBAR_TEXT", "text" },
{ GTK_TOOLBAR_BOTH, "GTK_TOOLBAR_BOTH", "both" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_trough_type_values[] = {
{ GTK_TROUGH_NONE, "GTK_TROUGH_NONE", "none" },
{ GTK_TROUGH_START, "GTK_TROUGH_START", "start" },
{ GTK_TROUGH_END, "GTK_TROUGH_END", "end" },
{ GTK_TROUGH_JUMP, "GTK_TROUGH_JUMP", "jump" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_update_type_values[] = {
{ GTK_UPDATE_CONTINUOUS, "GTK_UPDATE_CONTINUOUS", "continuous" },
{ GTK_UPDATE_DISCONTINUOUS, "GTK_UPDATE_DISCONTINUOUS", "discontinuous" },
{ GTK_UPDATE_DELAYED, "GTK_UPDATE_DELAYED", "delayed" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_visibility_values[] = {
{ GTK_VISIBILITY_NONE, "GTK_VISIBILITY_NONE", "none" },
{ GTK_VISIBILITY_PARTIAL, "GTK_VISIBILITY_PARTIAL", "partial" },
{ GTK_VISIBILITY_FULL, "GTK_VISIBILITY_FULL", "full" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_window_position_values[] = {
{ GTK_WIN_POS_NONE, "GTK_WIN_POS_NONE", "none" },
{ GTK_WIN_POS_CENTER, "GTK_WIN_POS_CENTER", "center" },
{ GTK_WIN_POS_MOUSE, "GTK_WIN_POS_MOUSE", "mouse" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_window_type_values[] = {
{ GTK_WINDOW_TOPLEVEL, "GTK_WINDOW_TOPLEVEL", "toplevel" },
{ GTK_WINDOW_DIALOG, "GTK_WINDOW_DIALOG", "dialog" },
{ GTK_WINDOW_POPUP, "GTK_WINDOW_POPUP", "popup" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_fundamental_type_values[] = {
{ GTK_TYPE_INVALID, "GTK_TYPE_INVALID", "invalid" },
{ GTK_TYPE_NONE, "GTK_TYPE_NONE", "none" },
{ GTK_TYPE_CHAR, "GTK_TYPE_CHAR", "char" },
{ GTK_TYPE_BOOL, "GTK_TYPE_BOOL", "bool" },
{ GTK_TYPE_INT, "GTK_TYPE_INT", "int" },
{ GTK_TYPE_UINT, "GTK_TYPE_UINT", "uint" },
{ GTK_TYPE_LONG, "GTK_TYPE_LONG", "long" },
{ GTK_TYPE_ULONG, "GTK_TYPE_ULONG", "ulong" },
{ GTK_TYPE_FLOAT, "GTK_TYPE_FLOAT", "float" },
{ GTK_TYPE_DOUBLE, "GTK_TYPE_DOUBLE", "double" },
{ GTK_TYPE_STRING, "GTK_TYPE_STRING", "string" },
{ GTK_TYPE_ENUM, "GTK_TYPE_ENUM", "enum" },
{ GTK_TYPE_FLAGS, "GTK_TYPE_FLAGS", "flags" },
{ GTK_TYPE_BOXED, "GTK_TYPE_BOXED", "boxed" },
{ GTK_TYPE_FOREIGN, "GTK_TYPE_FOREIGN", "foreign" },
{ GTK_TYPE_CALLBACK, "GTK_TYPE_CALLBACK", "callback" },
{ GTK_TYPE_ARGS, "GTK_TYPE_ARGS", "args" },
{ GTK_TYPE_POINTER, "GTK_TYPE_POINTER", "pointer" },
{ GTK_TYPE_SIGNAL, "GTK_TYPE_SIGNAL", "signal" },
{ GTK_TYPE_C_CALLBACK, "GTK_TYPE_C_CALLBACK", "c-callback" },
{ GTK_TYPE_OBJECT, "GTK_TYPE_OBJECT", "object" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_debug_flag_values[] = {
{ GTK_DEBUG_OBJECTS, "GTK_DEBUG_OBJECTS", "objects" },
{ GTK_DEBUG_MISC, "GTK_DEBUG_MISC", "misc" },
{ GTK_DEBUG_SIGNALS, "GTK_DEBUG_SIGNALS", "signals" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_object_flags_values[] = {
{ GTK_DESTROYED, "GTK_DESTROYED", "destroyed" },
{ GTK_FLOATING, "GTK_FLOATING", "floating" },
{ GTK_CONNECTED, "GTK_CONNECTED", "connected" },
{ GTK_OBJECT_FLAG_LAST, "GTK_OBJECT_FLAG_LAST", "object-flag-last" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_arg_flags_values[] = {
{ GTK_ARG_READABLE, "GTK_ARG_READABLE", "readable" },
{ GTK_ARG_WRITABLE, "GTK_ARG_WRITABLE", "writable" },
{ GTK_ARG_CONSTRUCT, "GTK_ARG_CONSTRUCT", "construct" },
{ GTK_ARG_MASK, "GTK_ARG_MASK", "mask" },
{ GTK_ARG_READWRITE, "GTK_ARG_READWRITE", "readwrite" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_widget_flags_values[] = {
{ GTK_TOPLEVEL, "GTK_TOPLEVEL", "toplevel" },
{ GTK_NO_WINDOW, "GTK_NO_WINDOW", "no-window" },
{ GTK_REALIZED, "GTK_REALIZED", "realized" },
{ GTK_MAPPED, "GTK_MAPPED", "mapped" },
{ GTK_VISIBLE, "GTK_VISIBLE", "visible" },
{ GTK_SENSITIVE, "GTK_SENSITIVE", "sensitive" },
{ GTK_PARENT_SENSITIVE, "GTK_PARENT_SENSITIVE", "parent-sensitive" },
{ GTK_CAN_FOCUS, "GTK_CAN_FOCUS", "can-focus" },
{ GTK_HAS_FOCUS, "GTK_HAS_FOCUS", "has-focus" },
{ GTK_CAN_DEFAULT, "GTK_CAN_DEFAULT", "can-default" },
{ GTK_HAS_DEFAULT, "GTK_HAS_DEFAULT", "has-default" },
{ GTK_HAS_GRAB, "GTK_HAS_GRAB", "has-grab" },
{ GTK_RC_STYLE, "GTK_RC_STYLE", "rc-style" },
{ GTK_BASIC, "GTK_BASIC", "basic" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_packer_options_values[] = {
{ GTK_PACK_EXPAND, "GTK_PACK_EXPAND", "pack-expand" },
{ GTK_FILL_X, "GTK_FILL_X", "fill-x" },
{ GTK_FILL_Y, "GTK_FILL_Y", "fill-y" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_side_type_values[] = {
{ GTK_SIDE_TOP, "GTK_SIDE_TOP", "top" },
{ GTK_SIDE_BOTTOM, "GTK_SIDE_BOTTOM", "bottom" },
{ GTK_SIDE_LEFT, "GTK_SIDE_LEFT", "left" },
{ GTK_SIDE_RIGHT, "GTK_SIDE_RIGHT", "right" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_anchor_type_values[] = {
{ GTK_ANCHOR_CENTER, "GTK_ANCHOR_CENTER", "center" },
{ GTK_ANCHOR_NORTH, "GTK_ANCHOR_NORTH", "north" },
{ GTK_ANCHOR_NORTH_WEST, "GTK_ANCHOR_NORTH_WEST", "north-west" },
{ GTK_ANCHOR_NORTH_EAST, "GTK_ANCHOR_NORTH_EAST", "north-east" },
{ GTK_ANCHOR_SOUTH, "GTK_ANCHOR_SOUTH", "south" },
{ GTK_ANCHOR_SOUTH_WEST, "GTK_ANCHOR_SOUTH_WEST", "south-west" },
{ GTK_ANCHOR_SOUTH_EAST, "GTK_ANCHOR_SOUTH_EAST", "south-east" },
{ GTK_ANCHOR_WEST, "GTK_ANCHOR_WEST", "west" },
{ GTK_ANCHOR_EAST, "GTK_ANCHOR_EAST", "east" },
{ 0, NULL, NULL }
};
static GtkEnumValue _gtk_private_flags_values[] = {
{ PRIVATE_GTK_USER_STYLE, "PRIVATE_GTK_USER_STYLE", "user-style" },
{ PRIVATE_GTK_REDRAW_PENDING, "PRIVATE_GTK_REDRAW_PENDING", "redraw-pending" },
{ PRIVATE_GTK_RESIZE_PENDING, "PRIVATE_GTK_RESIZE_PENDING", "resize-pending" },
{ PRIVATE_GTK_RESIZE_NEEDED, "PRIVATE_GTK_RESIZE_NEEDED", "resize-needed" },
{ PRIVATE_GTK_LEAVE_PENDING, "PRIVATE_GTK_LEAVE_PENDING", "leave-pending" },
{ PRIVATE_GTK_HAS_SHAPE_MASK, "PRIVATE_GTK_HAS_SHAPE_MASK", "has-shape-mask" },
{ PRIVATE_GTK_IN_REPARENT, "PRIVATE_GTK_IN_REPARENT", "in-reparent" },
{ 0, NULL, NULL }
};

View File

@ -1,85 +1,13 @@
/* type entries, generated by maketypes.awk */
{ "GdkWindowType", &GTK_TYPE_GDK_WINDOW_TYPE,
GTK_TYPE_ENUM, _gdk_window_type_values },
{ "GdkWindowClass", &GTK_TYPE_GDK_WINDOW_CLASS,
GTK_TYPE_ENUM, _gdk_window_class_values },
{ "GdkImageType", &GTK_TYPE_GDK_IMAGE_TYPE,
GTK_TYPE_ENUM, _gdk_image_type_values },
{ "GdkVisualType", &GTK_TYPE_GDK_VISUAL_TYPE,
GTK_TYPE_ENUM, _gdk_visual_type_values },
{ "GdkFontType", &GTK_TYPE_GDK_FONT_TYPE,
GTK_TYPE_ENUM, _gdk_font_type_values },
{ "GdkWindowAttributesType", &GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE,
GTK_TYPE_FLAGS, _gdk_window_attributes_type_values },
{ "GdkWindowHints", &GTK_TYPE_GDK_WINDOW_HINTS,
GTK_TYPE_FLAGS, _gdk_window_hints_values },
{ "GdkFunction", &GTK_TYPE_GDK_FUNCTION,
GTK_TYPE_ENUM, _gdk_function_values },
{ "GdkFill", &GTK_TYPE_GDK_FILL,
GTK_TYPE_ENUM, _gdk_fill_values },
{ "GdkFillRule", &GTK_TYPE_GDK_FILL_RULE,
GTK_TYPE_ENUM, _gdk_fill_rule_values },
{ "GdkLineStyle", &GTK_TYPE_GDK_LINE_STYLE,
GTK_TYPE_ENUM, _gdk_line_style_values },
{ "GdkCapStyle", &GTK_TYPE_GDK_CAP_STYLE,
GTK_TYPE_ENUM, _gdk_cap_style_values },
{ "GdkJoinStyle", &GTK_TYPE_GDK_JOIN_STYLE,
GTK_TYPE_ENUM, _gdk_join_style_values },
{ "GdkFilterReturn", &GTK_TYPE_GDK_FILTER_RETURN,
GTK_TYPE_ENUM, _gdk_filter_return_values },
{ "GdkVisibilityState", &GTK_TYPE_GDK_VISIBILITY_STATE,
GTK_TYPE_ENUM, _gdk_visibility_state_values },
{ "GdkEventType", &GTK_TYPE_GDK_EVENT_TYPE,
GTK_TYPE_ENUM, _gdk_event_type_values },
{ "GdkEventMask", &GTK_TYPE_GDK_EVENT_MASK,
GTK_TYPE_FLAGS, _gdk_event_mask_values },
{ "GdkNotifyType", &GTK_TYPE_GDK_NOTIFY_TYPE,
GTK_TYPE_ENUM, _gdk_notify_type_values },
{ "GdkCrossingMode", &GTK_TYPE_GDK_CROSSING_MODE,
GTK_TYPE_ENUM, _gdk_crossing_mode_values },
{ "GdkModifierType", &GTK_TYPE_GDK_MODIFIER_TYPE,
GTK_TYPE_FLAGS, _gdk_modifier_type_values },
{ "GdkSubwindowMode", &GTK_TYPE_GDK_SUBWINDOW_MODE,
GTK_TYPE_ENUM, _gdk_subwindow_mode_values },
{ "GdkInputCondition", &GTK_TYPE_GDK_INPUT_CONDITION,
GTK_TYPE_FLAGS, _gdk_input_condition_values },
{ "GdkStatus", &GTK_TYPE_GDK_STATUS,
GTK_TYPE_ENUM, _gdk_status_values },
{ "GdkByteOrder", &GTK_TYPE_GDK_BYTE_ORDER,
GTK_TYPE_ENUM, _gdk_byte_order_values },
{ "GdkGCValuesMask", &GTK_TYPE_GDK_G_C_VALUES_MASK,
GTK_TYPE_FLAGS, _gdk_g_c_values_mask_values },
{ "GdkSelection", &GTK_TYPE_GDK_SELECTION,
GTK_TYPE_ENUM, _gdk_selection_values },
{ "GdkPropertyState", &GTK_TYPE_GDK_PROPERTY_STATE,
GTK_TYPE_ENUM, _gdk_property_state_values },
{ "GdkPropMode", &GTK_TYPE_GDK_PROP_MODE,
GTK_TYPE_ENUM, _gdk_prop_mode_values },
{ "GdkDndType", &GTK_TYPE_GDK_DND_TYPE,
GTK_TYPE_ENUM, _gdk_dnd_type_values },
{ "GdkInputSource", &GTK_TYPE_GDK_INPUT_SOURCE,
GTK_TYPE_ENUM, _gdk_input_source_values },
{ "GdkInputMode", &GTK_TYPE_GDK_INPUT_MODE,
GTK_TYPE_ENUM, _gdk_input_mode_values },
{ "GdkAxisUse", &GTK_TYPE_GDK_AXIS_USE,
GTK_TYPE_ENUM, _gdk_axis_use_values },
{ "GdkTarget", &GTK_TYPE_GDK_TARGET,
GTK_TYPE_ENUM, _gdk_target_values },
{ "GdkSelectionType", &GTK_TYPE_GDK_SELECTION_TYPE,
GTK_TYPE_ENUM, _gdk_selection_type_values },
{ "GdkExtensionMode", &GTK_TYPE_GDK_EXTENSION_MODE,
GTK_TYPE_ENUM, _gdk_extension_mode_values },
{ "GdkWMDecoration", &GTK_TYPE_GDK_W_M_DECORATION,
GTK_TYPE_FLAGS, _gdk_w_m_decoration_values },
{ "GdkWMFunction", &GTK_TYPE_GDK_W_M_FUNCTION,
GTK_TYPE_FLAGS, _gdk_w_m_function_values },
{ "GdkColorContextMode", &GTK_TYPE_GDK_COLOR_CONTEXT_MODE,
GTK_TYPE_ENUM, _gdk_color_context_mode_values },
{ "GdkOverlapType", &GTK_TYPE_GDK_OVERLAP_TYPE,
GTK_TYPE_ENUM, _gdk_overlap_type_values },
{ "GdkDebugFlag", &GTK_TYPE_GDK_DEBUG_FLAG,
GTK_TYPE_FLAGS, _gdk_debug_flag_values },
{ "GtkCellType", &GTK_TYPE_CELL_TYPE,
GTK_TYPE_ENUM, _gtk_cell_type_values },
{ "GtkCTreePos", &GTK_TYPE_C_TREE_POS,
GTK_TYPE_ENUM, _gtk_c_tree_pos_values },
{ "GtkCTreeLineStyle", &GTK_TYPE_C_TREE_LINE_STYLE,
GTK_TYPE_ENUM, _gtk_c_tree_line_style_values },
{ "GtkDebugFlag", &GTK_TYPE_DEBUG_FLAG,
GTK_TYPE_FLAGS, _gtk_debug_flag_values },
{ "GtkAccelFlags", &GTK_TYPE_ACCEL_FLAGS,
GTK_TYPE_FLAGS, _gtk_accel_flags_values },
{ "GtkArrowType", &GTK_TYPE_ARROW_TYPE,
@ -116,14 +44,14 @@
GTK_TYPE_ENUM, _gtk_preview_type_values },
{ "GtkReliefStyle", &GTK_TYPE_RELIEF_STYLE,
GTK_TYPE_ENUM, _gtk_relief_style_values },
{ "GtkSignalRunType", &GTK_TYPE_SIGNAL_RUN_TYPE,
GTK_TYPE_FLAGS, _gtk_signal_run_type_values },
{ "GtkScrollType", &GTK_TYPE_SCROLL_TYPE,
GTK_TYPE_ENUM, _gtk_scroll_type_values },
{ "GtkSelectionMode", &GTK_TYPE_SELECTION_MODE,
GTK_TYPE_ENUM, _gtk_selection_mode_values },
{ "GtkShadowType", &GTK_TYPE_SHADOW_TYPE,
GTK_TYPE_ENUM, _gtk_shadow_type_values },
{ "GtkSignalRunType", &GTK_TYPE_SIGNAL_RUN_TYPE,
GTK_TYPE_FLAGS, _gtk_signal_run_type_values },
{ "GtkStateType", &GTK_TYPE_STATE_TYPE,
GTK_TYPE_ENUM, _gtk_state_type_values },
{ "GtkSubmenuDirection", &GTK_TYPE_SUBMENU_DIRECTION,
@ -142,16 +70,10 @@
GTK_TYPE_ENUM, _gtk_window_position_values },
{ "GtkWindowType", &GTK_TYPE_WINDOW_TYPE,
GTK_TYPE_ENUM, _gtk_window_type_values },
{ "GtkFundamentalType", &GTK_TYPE_FUNDAMENTAL_TYPE,
GTK_TYPE_ENUM, _gtk_fundamental_type_values },
{ "GtkDebugFlag", &GTK_TYPE_DEBUG_FLAG,
GTK_TYPE_FLAGS, _gtk_debug_flag_values },
{ "GtkObjectFlags", &GTK_TYPE_OBJECT_FLAGS,
GTK_TYPE_FLAGS, _gtk_object_flags_values },
{ "GtkArgFlags", &GTK_TYPE_ARG_FLAGS,
GTK_TYPE_FLAGS, _gtk_arg_flags_values },
{ "GtkWidgetFlags", &GTK_TYPE_WIDGET_FLAGS,
GTK_TYPE_FLAGS, _gtk_widget_flags_values },
{ "GtkPackerOptions", &GTK_TYPE_PACKER_OPTIONS,
GTK_TYPE_FLAGS, _gtk_packer_options_values },
{ "GtkSideType", &GTK_TYPE_SIDE_TYPE,
@ -160,6 +82,100 @@
GTK_TYPE_ENUM, _gtk_anchor_type_values },
{ "GtkPrivateFlags", &GTK_TYPE_PRIVATE_FLAGS,
GTK_TYPE_FLAGS, _gtk_private_flags_values },
{ "GtkSpinButtonUpdatePolicy", &GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY,
GTK_TYPE_FLAGS, _gtk_spin_button_update_policy_values },
{ "GtkToolbarChildType", &GTK_TYPE_TOOLBAR_CHILD_TYPE,
GTK_TYPE_ENUM, _gtk_toolbar_child_type_values },
{ "GtkTreeViewMode", &GTK_TYPE_TREE_VIEW_MODE,
GTK_TYPE_ENUM, _gtk_tree_view_mode_values },
{ "GtkFundamentalType", &GTK_TYPE_FUNDAMENTAL_TYPE,
GTK_TYPE_ENUM, _gtk_fundamental_type_values },
{ "GtkWidgetFlags", &GTK_TYPE_WIDGET_FLAGS,
GTK_TYPE_FLAGS, _gtk_widget_flags_values },
{ "GdkDebugFlag", &GTK_TYPE_GDK_DEBUG_FLAG,
GTK_TYPE_FLAGS, _gdk_debug_flag_values },
{ "GdkWindowType", &GTK_TYPE_GDK_WINDOW_TYPE,
GTK_TYPE_ENUM, _gdk_window_type_values },
{ "GdkWindowClass", &GTK_TYPE_GDK_WINDOW_CLASS,
GTK_TYPE_ENUM, _gdk_window_class_values },
{ "GdkImageType", &GTK_TYPE_GDK_IMAGE_TYPE,
GTK_TYPE_ENUM, _gdk_image_type_values },
{ "GdkVisualType", &GTK_TYPE_GDK_VISUAL_TYPE,
GTK_TYPE_ENUM, _gdk_visual_type_values },
{ "GdkFontType", &GTK_TYPE_GDK_FONT_TYPE,
GTK_TYPE_ENUM, _gdk_font_type_values },
{ "GdkWindowAttributesType", &GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE,
GTK_TYPE_FLAGS, _gdk_window_attributes_type_values },
{ "GdkWindowHints", &GTK_TYPE_GDK_WINDOW_HINTS,
GTK_TYPE_FLAGS, _gdk_window_hints_values },
{ "GdkFunction", &GTK_TYPE_GDK_FUNCTION,
GTK_TYPE_ENUM, _gdk_function_values },
{ "GdkFill", &GTK_TYPE_GDK_FILL,
GTK_TYPE_ENUM, _gdk_fill_values },
{ "GdkFillRule", &GTK_TYPE_GDK_FILL_RULE,
GTK_TYPE_ENUM, _gdk_fill_rule_values },
{ "GdkLineStyle", &GTK_TYPE_GDK_LINE_STYLE,
GTK_TYPE_ENUM, _gdk_line_style_values },
{ "GdkCapStyle", &GTK_TYPE_GDK_CAP_STYLE,
GTK_TYPE_ENUM, _gdk_cap_style_values },
{ "GdkJoinStyle", &GTK_TYPE_GDK_JOIN_STYLE,
GTK_TYPE_ENUM, _gdk_join_style_values },
{ "GdkCursorType", &GTK_TYPE_GDK_CURSOR_TYPE,
GTK_TYPE_ENUM, _gdk_cursor_type_values },
{ "GdkFilterReturn", &GTK_TYPE_GDK_FILTER_RETURN,
GTK_TYPE_ENUM, _gdk_filter_return_values },
{ "GdkVisibilityState", &GTK_TYPE_GDK_VISIBILITY_STATE,
GTK_TYPE_ENUM, _gdk_visibility_state_values },
{ "GdkEventType", &GTK_TYPE_GDK_EVENT_TYPE,
GTK_TYPE_ENUM, _gdk_event_type_values },
{ "GdkEventMask", &GTK_TYPE_GDK_EVENT_MASK,
GTK_TYPE_FLAGS, _gdk_event_mask_values },
{ "GdkNotifyType", &GTK_TYPE_GDK_NOTIFY_TYPE,
GTK_TYPE_ENUM, _gdk_notify_type_values },
{ "GdkCrossingMode", &GTK_TYPE_GDK_CROSSING_MODE,
GTK_TYPE_ENUM, _gdk_crossing_mode_values },
{ "GdkModifierType", &GTK_TYPE_GDK_MODIFIER_TYPE,
GTK_TYPE_FLAGS, _gdk_modifier_type_values },
{ "GdkSubwindowMode", &GTK_TYPE_GDK_SUBWINDOW_MODE,
GTK_TYPE_ENUM, _gdk_subwindow_mode_values },
{ "GdkInputCondition", &GTK_TYPE_GDK_INPUT_CONDITION,
GTK_TYPE_FLAGS, _gdk_input_condition_values },
{ "GdkStatus", &GTK_TYPE_GDK_STATUS,
GTK_TYPE_ENUM, _gdk_status_values },
{ "GdkByteOrder", &GTK_TYPE_GDK_BYTE_ORDER,
GTK_TYPE_ENUM, _gdk_byte_order_values },
{ "GdkGCValuesMask", &GTK_TYPE_GDK_GC_VALUES_MASK,
GTK_TYPE_FLAGS, _gdk_gc_values_mask_values },
{ "GdkSelection", &GTK_TYPE_GDK_SELECTION,
GTK_TYPE_ENUM, _gdk_selection_values },
{ "GdkPropertyState", &GTK_TYPE_GDK_PROPERTY_STATE,
GTK_TYPE_ENUM, _gdk_property_state_values },
{ "GdkPropMode", &GTK_TYPE_GDK_PROP_MODE,
GTK_TYPE_ENUM, _gdk_prop_mode_values },
{ "GdkDndType", &GTK_TYPE_GDK_DND_TYPE,
GTK_TYPE_ENUM, _gdk_dnd_type_values },
{ "GdkInputSource", &GTK_TYPE_GDK_INPUT_SOURCE,
GTK_TYPE_ENUM, _gdk_input_source_values },
{ "GdkInputMode", &GTK_TYPE_GDK_INPUT_MODE,
GTK_TYPE_ENUM, _gdk_input_mode_values },
{ "GdkAxisUse", &GTK_TYPE_GDK_AXIS_USE,
GTK_TYPE_ENUM, _gdk_axis_use_values },
{ "GdkTarget", &GTK_TYPE_GDK_TARGET,
GTK_TYPE_ENUM, _gdk_target_values },
{ "GdkSelectionType", &GTK_TYPE_GDK_SELECTION_TYPE,
GTK_TYPE_ENUM, _gdk_selection_type_values },
{ "GdkExtensionMode", &GTK_TYPE_GDK_EXTENSION_MODE,
GTK_TYPE_ENUM, _gdk_extension_mode_values },
{ "GdkIMStyle", &GTK_TYPE_GDK_IM_STYLE,
GTK_TYPE_FLAGS, _gdk_im_style_values },
{ "GdkWMDecoration", &GTK_TYPE_GDK_WM_DECORATION,
GTK_TYPE_FLAGS, _gdk_wm_decoration_values },
{ "GdkWMFunction", &GTK_TYPE_GDK_WM_FUNCTION,
GTK_TYPE_FLAGS, _gdk_wm_function_values },
{ "GdkColorContextMode", &GTK_TYPE_GDK_COLOR_CONTEXT_MODE,
GTK_TYPE_ENUM, _gdk_color_context_mode_values },
{ "GdkOverlapType", &GTK_TYPE_GDK_OVERLAP_TYPE,
GTK_TYPE_ENUM, _gdk_overlap_type_values },
{ "GtkAccelGroup", &GTK_TYPE_ACCEL_GROUP,
GTK_TYPE_BOXED, NULL },
{ "GtkSelectionData", &GTK_TYPE_SELECTION_DATA,

View File

@ -1,45 +1,9 @@
/* type variables, generated by maketypes.awk */
GtkType GTK_TYPE_GDK_WINDOW_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_CLASS = 0;
GtkType GTK_TYPE_GDK_IMAGE_TYPE = 0;
GtkType GTK_TYPE_GDK_VISUAL_TYPE = 0;
GtkType GTK_TYPE_GDK_FONT_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_HINTS = 0;
GtkType GTK_TYPE_GDK_FUNCTION = 0;
GtkType GTK_TYPE_GDK_FILL = 0;
GtkType GTK_TYPE_GDK_FILL_RULE = 0;
GtkType GTK_TYPE_GDK_LINE_STYLE = 0;
GtkType GTK_TYPE_GDK_CAP_STYLE = 0;
GtkType GTK_TYPE_GDK_JOIN_STYLE = 0;
GtkType GTK_TYPE_GDK_FILTER_RETURN = 0;
GtkType GTK_TYPE_GDK_VISIBILITY_STATE = 0;
GtkType GTK_TYPE_GDK_EVENT_TYPE = 0;
GtkType GTK_TYPE_GDK_EVENT_MASK = 0;
GtkType GTK_TYPE_GDK_NOTIFY_TYPE = 0;
GtkType GTK_TYPE_GDK_CROSSING_MODE = 0;
GtkType GTK_TYPE_GDK_MODIFIER_TYPE = 0;
GtkType GTK_TYPE_GDK_SUBWINDOW_MODE = 0;
GtkType GTK_TYPE_GDK_INPUT_CONDITION = 0;
GtkType GTK_TYPE_GDK_STATUS = 0;
GtkType GTK_TYPE_GDK_BYTE_ORDER = 0;
GtkType GTK_TYPE_GDK_G_C_VALUES_MASK = 0;
GtkType GTK_TYPE_GDK_SELECTION = 0;
GtkType GTK_TYPE_GDK_PROPERTY_STATE = 0;
GtkType GTK_TYPE_GDK_PROP_MODE = 0;
GtkType GTK_TYPE_GDK_DND_TYPE = 0;
GtkType GTK_TYPE_GDK_INPUT_SOURCE = 0;
GtkType GTK_TYPE_GDK_INPUT_MODE = 0;
GtkType GTK_TYPE_GDK_AXIS_USE = 0;
GtkType GTK_TYPE_GDK_TARGET = 0;
GtkType GTK_TYPE_GDK_SELECTION_TYPE = 0;
GtkType GTK_TYPE_GDK_EXTENSION_MODE = 0;
GtkType GTK_TYPE_GDK_W_M_DECORATION = 0;
GtkType GTK_TYPE_GDK_W_M_FUNCTION = 0;
GtkType GTK_TYPE_GDK_COLOR_CONTEXT_MODE = 0;
GtkType GTK_TYPE_GDK_OVERLAP_TYPE = 0;
GtkType GTK_TYPE_GDK_DEBUG_FLAG = 0;
GtkType GTK_TYPE_CELL_TYPE = 0;
GtkType GTK_TYPE_C_TREE_POS = 0;
GtkType GTK_TYPE_C_TREE_LINE_STYLE = 0;
GtkType GTK_TYPE_DEBUG_FLAG = 0;
GtkType GTK_TYPE_ACCEL_FLAGS = 0;
GtkType GTK_TYPE_ARROW_TYPE = 0;
GtkType GTK_TYPE_ATTACH_OPTIONS = 0;
@ -58,10 +22,10 @@ GtkType GTK_TYPE_POLICY_TYPE = 0;
GtkType GTK_TYPE_POSITION_TYPE = 0;
GtkType GTK_TYPE_PREVIEW_TYPE = 0;
GtkType GTK_TYPE_RELIEF_STYLE = 0;
GtkType GTK_TYPE_SIGNAL_RUN_TYPE = 0;
GtkType GTK_TYPE_SCROLL_TYPE = 0;
GtkType GTK_TYPE_SELECTION_MODE = 0;
GtkType GTK_TYPE_SHADOW_TYPE = 0;
GtkType GTK_TYPE_SIGNAL_RUN_TYPE = 0;
GtkType GTK_TYPE_STATE_TYPE = 0;
GtkType GTK_TYPE_SUBMENU_DIRECTION = 0;
GtkType GTK_TYPE_SUBMENU_PLACEMENT = 0;
@ -71,15 +35,59 @@ GtkType GTK_TYPE_UPDATE_TYPE = 0;
GtkType GTK_TYPE_VISIBILITY = 0;
GtkType GTK_TYPE_WINDOW_POSITION = 0;
GtkType GTK_TYPE_WINDOW_TYPE = 0;
GtkType GTK_TYPE_FUNDAMENTAL_TYPE = 0;
GtkType GTK_TYPE_DEBUG_FLAG = 0;
GtkType GTK_TYPE_OBJECT_FLAGS = 0;
GtkType GTK_TYPE_ARG_FLAGS = 0;
GtkType GTK_TYPE_WIDGET_FLAGS = 0;
GtkType GTK_TYPE_PACKER_OPTIONS = 0;
GtkType GTK_TYPE_SIDE_TYPE = 0;
GtkType GTK_TYPE_ANCHOR_TYPE = 0;
GtkType GTK_TYPE_PRIVATE_FLAGS = 0;
GtkType GTK_TYPE_SPIN_BUTTON_UPDATE_POLICY = 0;
GtkType GTK_TYPE_TOOLBAR_CHILD_TYPE = 0;
GtkType GTK_TYPE_TREE_VIEW_MODE = 0;
GtkType GTK_TYPE_FUNDAMENTAL_TYPE = 0;
GtkType GTK_TYPE_WIDGET_FLAGS = 0;
GtkType GTK_TYPE_GDK_DEBUG_FLAG = 0;
GtkType GTK_TYPE_GDK_WINDOW_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_CLASS = 0;
GtkType GTK_TYPE_GDK_IMAGE_TYPE = 0;
GtkType GTK_TYPE_GDK_VISUAL_TYPE = 0;
GtkType GTK_TYPE_GDK_FONT_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_ATTRIBUTES_TYPE = 0;
GtkType GTK_TYPE_GDK_WINDOW_HINTS = 0;
GtkType GTK_TYPE_GDK_FUNCTION = 0;
GtkType GTK_TYPE_GDK_FILL = 0;
GtkType GTK_TYPE_GDK_FILL_RULE = 0;
GtkType GTK_TYPE_GDK_LINE_STYLE = 0;
GtkType GTK_TYPE_GDK_CAP_STYLE = 0;
GtkType GTK_TYPE_GDK_JOIN_STYLE = 0;
GtkType GTK_TYPE_GDK_CURSOR_TYPE = 0;
GtkType GTK_TYPE_GDK_FILTER_RETURN = 0;
GtkType GTK_TYPE_GDK_VISIBILITY_STATE = 0;
GtkType GTK_TYPE_GDK_EVENT_TYPE = 0;
GtkType GTK_TYPE_GDK_EVENT_MASK = 0;
GtkType GTK_TYPE_GDK_NOTIFY_TYPE = 0;
GtkType GTK_TYPE_GDK_CROSSING_MODE = 0;
GtkType GTK_TYPE_GDK_MODIFIER_TYPE = 0;
GtkType GTK_TYPE_GDK_SUBWINDOW_MODE = 0;
GtkType GTK_TYPE_GDK_INPUT_CONDITION = 0;
GtkType GTK_TYPE_GDK_STATUS = 0;
GtkType GTK_TYPE_GDK_BYTE_ORDER = 0;
GtkType GTK_TYPE_GDK_GC_VALUES_MASK = 0;
GtkType GTK_TYPE_GDK_SELECTION = 0;
GtkType GTK_TYPE_GDK_PROPERTY_STATE = 0;
GtkType GTK_TYPE_GDK_PROP_MODE = 0;
GtkType GTK_TYPE_GDK_DND_TYPE = 0;
GtkType GTK_TYPE_GDK_INPUT_SOURCE = 0;
GtkType GTK_TYPE_GDK_INPUT_MODE = 0;
GtkType GTK_TYPE_GDK_AXIS_USE = 0;
GtkType GTK_TYPE_GDK_TARGET = 0;
GtkType GTK_TYPE_GDK_SELECTION_TYPE = 0;
GtkType GTK_TYPE_GDK_EXTENSION_MODE = 0;
GtkType GTK_TYPE_GDK_IM_STYLE = 0;
GtkType GTK_TYPE_GDK_WM_DECORATION = 0;
GtkType GTK_TYPE_GDK_WM_FUNCTION = 0;
GtkType GTK_TYPE_GDK_COLOR_CONTEXT_MODE = 0;
GtkType GTK_TYPE_GDK_OVERLAP_TYPE = 0;
GtkType GTK_TYPE_ACCEL_GROUP = 0;
GtkType GTK_TYPE_SELECTION_DATA = 0;
GtkType GTK_TYPE_STYLE = 0;

View File

@ -33,35 +33,34 @@ extern "C" {
*/
typedef enum
{
G_SV (GTK_TYPE_INVALID, invalid),
G_SV (GTK_TYPE_NONE, none),
G_SV (GTK_TYPE_CHAR, char),
G_SV (GTK_TYPE_BOOL, bool),
G_SV (GTK_TYPE_INT, int),
G_SV (GTK_TYPE_UINT, uint),
G_SV (GTK_TYPE_LONG, long),
G_SV (GTK_TYPE_ULONG, ulong),
G_SV (GTK_TYPE_FLOAT, float),
G_SV (GTK_TYPE_DOUBLE, double),
G_SV (GTK_TYPE_STRING, string),
G_SV (GTK_TYPE_ENUM, enum),
G_SV (GTK_TYPE_FLAGS, flags),
G_SV (GTK_TYPE_BOXED, boxed),
G_SV (GTK_TYPE_FOREIGN, foreign),
G_SV (GTK_TYPE_CALLBACK, callback),
G_SV (GTK_TYPE_ARGS, args),
GTK_TYPE_INVALID,
GTK_TYPE_NONE,
GTK_TYPE_CHAR,
GTK_TYPE_BOOL,
GTK_TYPE_INT,
GTK_TYPE_UINT,
GTK_TYPE_LONG,
GTK_TYPE_ULONG,
GTK_TYPE_FLOAT,
GTK_TYPE_DOUBLE,
GTK_TYPE_STRING,
GTK_TYPE_ENUM,
GTK_TYPE_FLAGS,
GTK_TYPE_BOXED,
GTK_TYPE_FOREIGN,
GTK_TYPE_CALLBACK,
GTK_TYPE_ARGS,
G_SV (GTK_TYPE_POINTER, pointer),
GTK_TYPE_POINTER,
/* It'd be great if GTK_TYPE_POINTER and GTK_TYPE_C_CALLBACK
* could be removed eventually
*/
G_SV (GTK_TYPE_SIGNAL, signal),
G_SV (GTK_TYPE_C_CALLBACK, c-callback),
GTK_TYPE_SIGNAL,
GTK_TYPE_C_CALLBACK,
G_SV (GTK_TYPE_OBJECT, object)
} G_ENUM (GtkFundamentalType);
GTK_TYPE_OBJECT
} GtkFundamentalType;
typedef guint GtkType;

View File

@ -37,22 +37,21 @@ extern "C" {
*/
typedef enum
{
G_NV (GTK_TOPLEVEL, toplevel, 1 << 4),
G_NV (GTK_NO_WINDOW, no-window, 1 << 5),
G_NV (GTK_REALIZED, realized, 1 << 6),
G_NV (GTK_MAPPED, mapped, 1 << 7),
G_NV (GTK_VISIBLE, visible, 1 << 8),
G_NV (GTK_SENSITIVE, sensitive, 1 << 9),
G_NV (GTK_PARENT_SENSITIVE, parent-sensitive, 1 << 10),
G_NV (GTK_CAN_FOCUS, can-focus, 1 << 11),
G_NV (GTK_HAS_FOCUS, has-focus, 1 << 12),
G_NV (GTK_CAN_DEFAULT, can-default, 1 << 13),
G_NV (GTK_HAS_DEFAULT, has-default, 1 << 14),
G_NV (GTK_HAS_GRAB, has-grab, 1 << 15),
G_NV (GTK_RC_STYLE, rc-style, 1 << 16),
G_NV (GTK_BASIC, basic, 1 << 17)
} G_FLAGS (GtkWidgetFlags);
GTK_TOPLEVEL = 1 << 4,
GTK_NO_WINDOW = 1 << 5,
GTK_REALIZED = 1 << 6,
GTK_MAPPED = 1 << 7,
GTK_VISIBLE = 1 << 8,
GTK_SENSITIVE = 1 << 9,
GTK_PARENT_SENSITIVE = 1 << 10,
GTK_CAN_FOCUS = 1 << 11,
GTK_HAS_FOCUS = 1 << 12,
GTK_CAN_DEFAULT = 1 << 13,
GTK_HAS_DEFAULT = 1 << 14,
GTK_HAS_GRAB = 1 << 15,
GTK_RC_STYLE = 1 << 16,
GTK_BASIC = 1 << 17
} GtkWidgetFlags;
/* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer.
* Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET.

View File

@ -37,22 +37,17 @@ function set_type (set_type_1)
type_counter += 1;
type_name = set_type_1;
type_macro = "GTK_TYPE";
type_ident = "";
for (i = 0; i < length (type_name); i++)
{
ch = substr (type_name, i + 1, 1);
Ch = toupper (ch);
if (Ch == ch)
{
type_macro = type_macro "_" Ch;
type_ident = type_ident "_" tolower (ch);
}
else
{
type_macro = type_macro Ch;
type_ident = type_ident ch;
}
}
tmp = type_name
gsub ("[A-Z][a-z]", "_&", tmp);
# OK, the following is ridiculous. But easier than writing a loop
gsub ("[a-z]", "&@", tmp);
gsub ("@[A-Z]", "@&", tmp);
gsub ("@@", "_", tmp);
gsub ("@", "", tmp);
type_macro = type_macro toupper (tmp);
type_ident = tolower (tmp);
sub ("^GTK_TYPE_GTK_", "GTK_TYPE_", type_macro);
}

View File

@ -4337,7 +4337,7 @@ void
file_selection_ok (GtkWidget *w,
GtkFileSelection *fs)
{
g_print ("%s\n", gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs)));
g_print ("%s\n", gtk_file_selection_get_filename (fs));
gtk_widget_destroy (GTK_WIDGET (fs));
}
@ -4392,6 +4392,43 @@ create_file_selection (void)
gtk_widget_destroy (window);
}
void
font_selection_ok (GtkWidget *w,
GtkFontSelection *fs)
{
g_print ("%s\n", gtk_font_selection_get_font_name (fs));
gtk_widget_destroy (GTK_WIDGET (fs));
}
void
create_font_selection (void)
{
static GtkWidget *window = NULL;
if (!window)
{
window = gtk_font_selection_dialog_new ("Font Selection Dialog");
gtk_window_position (GTK_WINDOW (window), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_widget_destroyed),
&window);
gtk_signal_connect (GTK_OBJECT (GTK_FONT_SELECTION_DIALOG (window)->ok_button),
"clicked", GTK_SIGNAL_FUNC(font_selection_ok),
GTK_FONT_SELECTION_DIALOG (window)->fontsel);
gtk_signal_connect_object (GTK_OBJECT (GTK_FONT_SELECTION_DIALOG (window)->cancel_button),
"clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy),
GTK_OBJECT (window));
}
if (!GTK_WIDGET_VISIBLE (window))
gtk_widget_show (window);
else
gtk_widget_destroy (window);
}
/*
* GtkDialog
@ -6664,6 +6701,7 @@ create_main_window (void)
{ "dnd", create_dnd },
{ "entry", create_entry },
{ "file selection", create_file_selection },
{ "font selection", create_font_selection },
{ "gamma curve", create_gamma_curve },
{ "handle box", create_handle_box },
{ "list", create_list },

View File

@ -4337,7 +4337,7 @@ void
file_selection_ok (GtkWidget *w,
GtkFileSelection *fs)
{
g_print ("%s\n", gtk_file_selection_get_filename (GTK_FILE_SELECTION (fs)));
g_print ("%s\n", gtk_file_selection_get_filename (fs));
gtk_widget_destroy (GTK_WIDGET (fs));
}
@ -4392,6 +4392,43 @@ create_file_selection (void)
gtk_widget_destroy (window);
}
void
font_selection_ok (GtkWidget *w,
GtkFontSelection *fs)
{
g_print ("%s\n", gtk_font_selection_get_font_name (fs));
gtk_widget_destroy (GTK_WIDGET (fs));
}
void
create_font_selection (void)
{
static GtkWidget *window = NULL;
if (!window)
{
window = gtk_font_selection_dialog_new ("Font Selection Dialog");
gtk_window_position (GTK_WINDOW (window), GTK_WIN_POS_MOUSE);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_widget_destroyed),
&window);
gtk_signal_connect (GTK_OBJECT (GTK_FONT_SELECTION_DIALOG (window)->ok_button),
"clicked", GTK_SIGNAL_FUNC(font_selection_ok),
GTK_FONT_SELECTION_DIALOG (window)->fontsel);
gtk_signal_connect_object (GTK_OBJECT (GTK_FONT_SELECTION_DIALOG (window)->cancel_button),
"clicked", GTK_SIGNAL_FUNC(gtk_widget_destroy),
GTK_OBJECT (window));
}
if (!GTK_WIDGET_VISIBLE (window))
gtk_widget_show (window);
else
gtk_widget_destroy (window);
}
/*
* GtkDialog
@ -6664,6 +6701,7 @@ create_main_window (void)
{ "dnd", create_dnd },
{ "entry", create_entry },
{ "file selection", create_file_selection },
{ "font selection", create_font_selection },
{ "gamma curve", create_gamma_curve },
{ "handle box", create_handle_box },
{ "list", create_list },