1 /* GDK - The GIMP Drawing Kit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
21 * Modified by the GTK+ Team and others 1997-1999. See the AUTHORS
22 * file for a list of people on the GTK+ Team. See the ChangeLog
23 * files for a list of changes. These files are distributed with
24 * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
31 #include <gdk/gdktypes.h>
35 #endif /* __cplusplus */
38 /* Initialization, exit and events
40 #define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT)
41 void gdk_init (gint *argc,
43 gboolean gdk_init_check (gint *argc,
45 void gdk_exit (gint error_code);
46 gchar* gdk_set_locale (void);
48 /* Push and pop error handlers for X errors
50 void gdk_error_trap_push (void);
51 gint gdk_error_trap_pop (void);
54 gboolean gdk_events_pending (void);
55 GdkEvent* gdk_event_get (void);
57 GdkEvent* gdk_event_peek (void);
58 GdkEvent* gdk_event_get_graphics_expose (GdkWindow *window);
59 void gdk_event_put (GdkEvent *event);
61 GdkEvent* gdk_event_copy (GdkEvent *event);
62 void gdk_event_free (GdkEvent *event);
63 guint32 gdk_event_get_time (GdkEvent *event);
65 void gdk_event_handler_set (GdkEventFunc func,
67 GDestroyNotify notify);
69 void gdk_set_show_events (gint show_events);
70 void gdk_set_use_xshm (gint use_xshm);
72 gint gdk_get_show_events (void);
73 gint gdk_get_use_xshm (void);
74 gchar* gdk_get_display (void);
76 guint32 gdk_time_get (void);
77 guint32 gdk_timer_get (void);
78 void gdk_timer_set (guint32 milliseconds);
79 void gdk_timer_enable (void);
80 void gdk_timer_disable (void);
82 gint gdk_input_add_full (gint source,
83 GdkInputCondition condition,
84 GdkInputFunction function,
86 GdkDestroyNotify destroy);
87 gint gdk_input_add (gint source,
88 GdkInputCondition condition,
89 GdkInputFunction function,
91 void gdk_input_remove (gint tag);
93 gint gdk_pointer_grab (GdkWindow * window,
95 GdkEventMask event_mask,
96 GdkWindow * confine_to,
99 void gdk_pointer_ungrab (guint32 time);
101 gint gdk_keyboard_grab (GdkWindow * window,
104 void gdk_keyboard_ungrab (guint32 time);
106 gint gdk_pointer_is_grabbed (void);
108 gint gdk_screen_width (void);
109 gint gdk_screen_height (void);
111 gint gdk_screen_width_mm (void);
112 gint gdk_screen_height_mm (void);
114 void gdk_flush (void);
115 void gdk_beep (void);
117 void gdk_key_repeat_disable (void);
118 void gdk_key_repeat_restore (void);
123 gint gdk_visual_get_best_depth (void);
124 GdkVisualType gdk_visual_get_best_type (void);
125 GdkVisual* gdk_visual_get_system (void);
126 GdkVisual* gdk_visual_get_best (void);
127 GdkVisual* gdk_visual_get_best_with_depth (gint depth);
128 GdkVisual* gdk_visual_get_best_with_type (GdkVisualType visual_type);
129 GdkVisual* gdk_visual_get_best_with_both (gint depth,
130 GdkVisualType visual_type);
132 /* Actually, these are no-ops... */
133 GdkVisual* gdk_visual_ref (GdkVisual *visual);
134 void gdk_visual_unref (GdkVisual *visual);
136 void gdk_query_depths (gint **depths,
138 void gdk_query_visual_types (GdkVisualType **visual_types,
141 GList* gdk_list_visuals (void);
146 GdkWindow* gdk_window_new (GdkWindow *parent,
147 GdkWindowAttr *attributes,
148 gint attributes_mask);
150 void gdk_window_destroy (GdkWindow *window);
151 GdkWindow* gdk_window_ref (GdkWindow *window);
152 void gdk_window_unref (GdkWindow *window);
154 GdkWindow* gdk_window_at_pointer (gint *win_x,
156 void gdk_window_show (GdkWindow *window);
157 void gdk_window_hide (GdkWindow *window);
158 void gdk_window_withdraw (GdkWindow *window);
159 void gdk_window_move (GdkWindow *window,
162 void gdk_window_resize (GdkWindow *window,
165 void gdk_window_move_resize (GdkWindow *window,
170 void gdk_window_reparent (GdkWindow *window,
171 GdkWindow *new_parent,
174 void gdk_window_clear (GdkWindow *window);
175 void gdk_window_clear_area (GdkWindow *window,
180 void gdk_window_clear_area_e(GdkWindow *window,
185 void gdk_window_copy_area (GdkWindow *window,
189 GdkWindow *source_window,
194 void gdk_window_raise (GdkWindow *window);
195 void gdk_window_lower (GdkWindow *window);
197 void gdk_window_set_user_data (GdkWindow *window,
199 void gdk_window_set_override_redirect(GdkWindow *window,
200 gboolean override_redirect);
202 void gdk_window_add_filter (GdkWindow *window,
203 GdkFilterFunc function,
205 void gdk_window_remove_filter (GdkWindow *window,
206 GdkFilterFunc function,
210 * This allows for making shaped (partially transparent) windows
211 * - cool feature, needed for Drag and Drag for example.
212 * The shape_mask can be the mask
213 * from gdk_pixmap_create_from_xpm. Stefan Wille
215 void gdk_window_shape_combine_mask (GdkWindow *window,
216 GdkBitmap *shape_mask,
220 * This routine allows you to quickly take the shapes of all the child windows
221 * of a window and use their shapes as the shape mask for this window - useful
222 * for container windows that dont want to look like a big box
226 void gdk_window_set_child_shapes (GdkWindow *window);
229 * This routine allows you to merge (ie ADD) child shapes to your
230 * own window's shape keeping its current shape and ADDING the child
235 void gdk_window_merge_child_shapes (GdkWindow *window);
238 * Check if a window has been shown, and whether all it's
239 * parents up to a toplevel have been shown, respectively.
240 * Note that a window that is_viewable below is not necessarily
241 * viewable in the X sense.
243 gboolean gdk_window_is_visible (GdkWindow *window);
244 gboolean gdk_window_is_viewable (GdkWindow *window);
246 /* Set static bit gravity on the parent, and static
247 * window gravity on all children.
249 gboolean gdk_window_set_static_gravities (GdkWindow *window,
250 gboolean use_static);
252 * The following function adds a global filter for all client
253 * messages of type message_type
255 void gdk_add_client_message_filter (GdkAtom message_type,
261 GdkDragContext * gdk_drag_context_new (void);
262 void gdk_drag_context_ref (GdkDragContext *context);
263 void gdk_drag_context_unref (GdkDragContext *context);
265 /* Destination side */
267 void gdk_drag_status (GdkDragContext *context,
268 GdkDragAction action,
270 void gdk_drop_reply (GdkDragContext *context,
273 void gdk_drop_finish (GdkDragContext *context,
276 GdkAtom gdk_drag_get_selection (GdkDragContext *context);
280 GdkDragContext * gdk_drag_begin (GdkWindow *window,
282 guint32 gdk_drag_get_protocol (guint32 xid,
283 GdkDragProtocol *protocol);
284 void gdk_drag_find_window (GdkDragContext *context,
285 GdkWindow *drag_window,
288 GdkWindow **dest_window,
289 GdkDragProtocol *protocol);
290 gboolean gdk_drag_motion (GdkDragContext *context,
291 GdkWindow *dest_window,
292 GdkDragProtocol protocol,
295 GdkDragAction suggested_action,
296 GdkDragAction possible_actions,
298 void gdk_drag_drop (GdkDragContext *context,
300 void gdk_drag_abort (GdkDragContext *context,
303 GdkAtom gdk_drag_get_selection (GdkDragContext *context);
307 void gdk_window_set_hints (GdkWindow *window,
315 void gdk_window_set_geometry_hints (GdkWindow *window,
316 GdkGeometry *geometry,
317 GdkWindowHints flags);
318 void gdk_set_sm_client_id (const gchar *sm_client_id);
321 void gdk_window_set_title (GdkWindow *window,
323 void gdk_window_set_role (GdkWindow *window,
325 void gdk_window_set_transient_for (GdkWindow *window,
327 void gdk_window_set_background (GdkWindow *window,
329 void gdk_window_set_back_pixmap (GdkWindow *window,
331 gint parent_relative);
332 void gdk_window_set_cursor (GdkWindow *window,
334 void gdk_window_set_colormap (GdkWindow *window,
335 GdkColormap *colormap);
336 void gdk_window_get_user_data (GdkWindow *window,
338 void gdk_window_get_geometry (GdkWindow *window,
344 void gdk_window_get_position (GdkWindow *window,
347 void gdk_window_get_size (GdkWindow *window,
350 GdkVisual* gdk_window_get_visual (GdkWindow *window);
351 GdkColormap* gdk_window_get_colormap (GdkWindow *window);
352 GdkWindowType gdk_window_get_type (GdkWindow *window);
353 gint gdk_window_get_origin (GdkWindow *window,
356 gboolean gdk_window_get_deskrelative_origin (GdkWindow *window,
359 void gdk_window_get_root_origin (GdkWindow *window,
362 GdkWindow* gdk_window_get_pointer (GdkWindow *window,
365 GdkModifierType *mask);
366 GdkWindow* gdk_window_get_parent (GdkWindow *window);
367 GdkWindow* gdk_window_get_toplevel (GdkWindow *window);
368 GList* gdk_window_get_children (GdkWindow *window);
369 GdkEventMask gdk_window_get_events (GdkWindow *window);
370 void gdk_window_set_events (GdkWindow *window,
371 GdkEventMask event_mask);
373 void gdk_window_set_icon (GdkWindow *window,
374 GdkWindow *icon_window,
377 void gdk_window_set_icon_name (GdkWindow *window,
379 void gdk_window_set_group (GdkWindow *window,
381 void gdk_window_set_decorations (GdkWindow *window,
382 GdkWMDecoration decorations);
383 void gdk_window_set_functions (GdkWindow *window,
384 GdkWMFunction functions);
385 GList * gdk_window_get_toplevels (void);
387 void gdk_window_register_dnd (GdkWindow *window);
389 void gdk_drawable_set_data (GdkDrawable *drawable,
392 GDestroyNotify destroy_func);
397 GdkCursor* gdk_cursor_new (GdkCursorType cursor_type);
398 GdkCursor* gdk_cursor_new_from_pixmap (GdkPixmap *source,
404 void gdk_cursor_destroy (GdkCursor *cursor);
409 GdkGC* gdk_gc_new (GdkWindow *window);
410 GdkGC* gdk_gc_new_with_values (GdkWindow *window,
412 GdkGCValuesMask values_mask);
413 GdkGC* gdk_gc_ref (GdkGC *gc);
414 void gdk_gc_unref (GdkGC *gc);
415 void gdk_gc_destroy (GdkGC *gc);
416 void gdk_gc_get_values (GdkGC *gc,
417 GdkGCValues *values);
418 void gdk_gc_set_foreground (GdkGC *gc,
420 void gdk_gc_set_background (GdkGC *gc,
422 void gdk_gc_set_font (GdkGC *gc,
424 void gdk_gc_set_function (GdkGC *gc,
425 GdkFunction function);
426 void gdk_gc_set_fill (GdkGC *gc,
428 void gdk_gc_set_tile (GdkGC *gc,
430 void gdk_gc_set_stipple (GdkGC *gc,
432 void gdk_gc_set_ts_origin (GdkGC *gc,
435 void gdk_gc_set_clip_origin (GdkGC *gc,
438 void gdk_gc_set_clip_mask (GdkGC *gc,
440 void gdk_gc_set_clip_rectangle (GdkGC *gc,
441 GdkRectangle *rectangle);
442 void gdk_gc_set_clip_region (GdkGC *gc,
444 void gdk_gc_set_subwindow (GdkGC *gc,
445 GdkSubwindowMode mode);
446 void gdk_gc_set_exposures (GdkGC *gc,
448 void gdk_gc_set_line_attributes (GdkGC *gc,
450 GdkLineStyle line_style,
451 GdkCapStyle cap_style,
452 GdkJoinStyle join_style);
453 void gdk_gc_set_dashes (GdkGC *gc,
457 void gdk_gc_copy (GdkGC *dst_gc,
463 GdkPixmap* gdk_pixmap_new (GdkWindow *window,
467 GdkPixmap* gdk_pixmap_create_on_shared_image
468 (GdkImage **image_return,
474 GdkBitmap* gdk_bitmap_create_from_data (GdkWindow *window,
478 GdkPixmap* gdk_pixmap_create_from_data (GdkWindow *window,
485 GdkPixmap* gdk_pixmap_create_from_xpm (GdkWindow *window,
487 GdkColor *transparent_color,
488 const gchar *filename);
489 GdkPixmap* gdk_pixmap_colormap_create_from_xpm
491 GdkColormap *colormap,
493 GdkColor *transparent_color,
494 const gchar *filename);
495 GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkWindow *window,
497 GdkColor *transparent_color,
499 GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d
501 GdkColormap *colormap,
503 GdkColor *transparent_color,
505 GdkPixmap *gdk_pixmap_ref (GdkPixmap *pixmap);
506 void gdk_pixmap_unref (GdkPixmap *pixmap);
508 GdkBitmap *gdk_bitmap_ref (GdkBitmap *pixmap);
509 void gdk_bitmap_unref (GdkBitmap *pixmap);
514 GdkImage* gdk_image_new_bitmap(GdkVisual *visual,
518 GdkImage* gdk_image_new (GdkImageType type,
522 GdkImage* gdk_image_bitmap_new(GdkImageType type,
526 GdkImage* gdk_image_get (GdkWindow *window,
531 void gdk_image_put_pixel (GdkImage *image,
535 guint32 gdk_image_get_pixel (GdkImage *image,
538 void gdk_image_destroy (GdkImage *image);
543 GdkColormap* gdk_colormap_new (GdkVisual *visual,
545 GdkColormap* gdk_colormap_ref (GdkColormap *cmap);
546 void gdk_colormap_unref (GdkColormap *cmap);
548 GdkColormap* gdk_colormap_get_system (void);
549 gint gdk_colormap_get_system_size (void);
551 void gdk_colormap_change (GdkColormap *colormap,
555 gint gdk_colormap_alloc_colors (GdkColormap *colormap,
561 gboolean gdk_colormap_alloc_color (GdkColormap *colormap,
564 gboolean best_match);
565 void gdk_colormap_free_colors (GdkColormap *colormap,
569 GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap);
571 GdkColor *gdk_color_copy (GdkColor *color);
572 void gdk_color_free (GdkColor *color);
574 gint gdk_color_parse (const gchar *spec,
576 guint gdk_color_hash (const GdkColor *colora);
577 gint gdk_color_equal (const GdkColor *colora,
578 const GdkColor *colorb);
581 /* The following functions are deprecated */
582 void gdk_colors_store (GdkColormap *colormap,
585 gint gdk_colors_alloc (GdkColormap *colormap,
591 void gdk_colors_free (GdkColormap *colormap,
595 gint gdk_color_white (GdkColormap *colormap,
597 gint gdk_color_black (GdkColormap *colormap,
599 gint gdk_color_alloc (GdkColormap *colormap,
601 gint gdk_color_change (GdkColormap *colormap,
607 GdkFont* gdk_font_load (const gchar *font_name);
608 GdkFont* gdk_fontset_load (gchar *fontset_name);
609 GdkFont* gdk_font_ref (GdkFont *font);
610 void gdk_font_unref (GdkFont *font);
611 gint gdk_font_id (const GdkFont *font);
612 gint gdk_font_equal (const GdkFont *fonta,
613 const GdkFont *fontb);
614 gint gdk_string_width (GdkFont *font,
615 const gchar *string);
616 gint gdk_text_width (GdkFont *font,
619 gint gdk_text_width_wc (GdkFont *font,
620 const GdkWChar *text,
622 gint gdk_char_width (GdkFont *font,
624 gint gdk_char_width_wc (GdkFont *font,
626 gint gdk_string_measure (GdkFont *font,
627 const gchar *string);
628 gint gdk_text_measure (GdkFont *font,
631 gint gdk_char_measure (GdkFont *font,
633 gint gdk_string_height (GdkFont *font,
634 const gchar *string);
635 gint gdk_text_height (GdkFont *font,
638 gint gdk_char_height (GdkFont *font,
641 void gdk_text_extents (GdkFont *font,
649 void gdk_text_extents_wc (GdkFont *font,
650 const GdkWChar *text,
657 void gdk_string_extents (GdkFont *font,
667 void gdk_draw_point (GdkDrawable *drawable,
671 void gdk_draw_line (GdkDrawable *drawable,
677 void gdk_draw_rectangle (GdkDrawable *drawable,
684 void gdk_draw_arc (GdkDrawable *drawable,
693 void gdk_draw_polygon (GdkDrawable *drawable,
698 void gdk_draw_string (GdkDrawable *drawable,
703 const gchar *string);
704 void gdk_draw_text (GdkDrawable *drawable,
711 void gdk_draw_text_wc (GdkDrawable *drawable,
716 const GdkWChar *text,
718 void gdk_draw_pixmap (GdkDrawable *drawable,
727 void gdk_draw_bitmap (GdkDrawable *drawable,
736 void gdk_draw_image (GdkDrawable *drawable,
745 void gdk_draw_points (GdkDrawable *drawable,
749 void gdk_draw_segments (GdkDrawable *drawable,
753 void gdk_draw_lines (GdkDrawable *drawable,
763 gint gdk_selection_owner_set (GdkWindow *owner,
767 GdkWindow* gdk_selection_owner_get (GdkAtom selection);
768 void gdk_selection_convert (GdkWindow *requestor,
772 gint gdk_selection_property_get (GdkWindow *requestor,
776 void gdk_selection_send_notify (guint32 requestor,
782 gint gdk_text_property_to_text_list (GdkAtom encoding, gint format,
783 guchar *text, gint length,
785 void gdk_free_text_list (gchar **list);
786 gint gdk_string_to_compound_text (gchar *str,
787 GdkAtom *encoding, gint *format,
788 guchar **ctext, gint *length);
789 void gdk_free_compound_text (guchar *ctext);
793 GdkAtom gdk_atom_intern (const gchar *atom_name,
794 gint only_if_exists);
795 gchar* gdk_atom_name (GdkAtom atom);
796 gint gdk_property_get (GdkWindow *window,
802 GdkAtom *actual_property_type,
807 void gdk_property_change (GdkWindow *window,
814 void gdk_property_delete (GdkWindow *window,
818 /* Rectangle utilities
820 gint gdk_rectangle_intersect (GdkRectangle *src1,
823 void gdk_rectangle_union (GdkRectangle *src1,
830 void gdk_input_init (void);
831 void gdk_input_exit (void);
832 GList *gdk_input_list_devices (void);
833 void gdk_input_set_extension_events (GdkWindow *window,
835 GdkExtensionMode mode);
836 void gdk_input_set_source (guint32 deviceid,
837 GdkInputSource source);
838 gint gdk_input_set_mode (guint32 deviceid,
840 void gdk_input_set_axes (guint32 deviceid,
842 void gdk_input_set_key (guint32 deviceid,
845 GdkModifierType modifiers);
846 void gdk_input_window_get_pointer (GdkWindow *window,
853 GdkModifierType *mask);
855 GdkTimeCoord *gdk_input_motion_events (GdkWindow *window,
859 gint *nevents_return);
861 /* International Input Method Support Functions
864 gint gdk_im_ready (void);
866 void gdk_im_begin (GdkIC *ic,
868 void gdk_im_end (void);
869 GdkIMStyle gdk_im_decide_style (GdkIMStyle supported_style);
870 GdkIMStyle gdk_im_set_best_style (GdkIMStyle best_allowed_style);
872 GdkIC* gdk_ic_new (GdkICAttr *attr,
873 GdkICAttributesType mask);
874 void gdk_ic_destroy (GdkIC *ic);
875 GdkIMStyle gdk_ic_get_style (GdkIC *ic);
876 GdkEventMask gdk_ic_get_events (GdkIC *ic);
878 GdkICAttr* gdk_ic_attr_new (void);
879 void gdk_ic_attr_destroy (GdkICAttr *attr);
881 GdkICAttributesType gdk_ic_set_attr (GdkIC *ic,
883 GdkICAttributesType mask);
884 GdkICAttributesType gdk_ic_get_attr (GdkIC *ic,
886 GdkICAttributesType mask);
888 /* Conversion functions between wide char and multibyte strings.
890 gchar *gdk_wcstombs (const GdkWChar *src);
891 gint gdk_mbstowcs (GdkWChar *dest,
898 GdkColorContext *gdk_color_context_new (GdkVisual *visual,
899 GdkColormap *colormap);
901 GdkColorContext *gdk_color_context_new_mono (GdkVisual *visual,
902 GdkColormap *colormap);
904 void gdk_color_context_free (GdkColorContext *cc);
906 gulong gdk_color_context_get_pixel (GdkColorContext *cc,
911 void gdk_color_context_get_pixels (GdkColorContext *cc,
918 void gdk_color_context_get_pixels_incremental (GdkColorContext *cc,
927 gint gdk_color_context_query_color (GdkColorContext *cc,
929 gint gdk_color_context_query_colors (GdkColorContext *cc,
933 gint gdk_color_context_add_palette (GdkColorContext *cc,
937 void gdk_color_context_init_dither (GdkColorContext *cc);
938 void gdk_color_context_free_dither (GdkColorContext *cc);
940 gulong gdk_color_context_get_pixel_from_palette (GdkColorContext *cc,
945 guchar gdk_color_context_get_index_from_palette (GdkColorContext *cc,
953 GdkRegion* gdk_region_new (void);
954 void gdk_region_destroy (GdkRegion *region);
956 void gdk_region_get_clipbox(GdkRegion *region,
957 GdkRectangle *rectangle);
959 gboolean gdk_region_empty (GdkRegion *region);
960 gboolean gdk_region_equal (GdkRegion *region1,
962 gboolean gdk_region_point_in (GdkRegion *region,
965 GdkOverlapType gdk_region_rect_in (GdkRegion *region,
968 GdkRegion* gdk_region_polygon (GdkPoint *points,
970 GdkFillRule fill_rule);
972 void gdk_region_offset (GdkRegion *region,
975 void gdk_region_shrink (GdkRegion *region,
979 GdkRegion* gdk_region_union_with_rect (GdkRegion *region,
981 GdkRegion* gdk_regions_intersect (GdkRegion *source1,
983 GdkRegion* gdk_regions_union (GdkRegion *source1,
985 GdkRegion* gdk_regions_subtract (GdkRegion *source1,
987 GdkRegion* gdk_regions_xor (GdkRegion *source1,
991 void gdk_event_send_clientmessage_toall (GdkEvent *event);
992 gboolean gdk_event_send_client_message (GdkEvent *event,
997 const gchar* gdk_keyval_name (guint keyval);
998 guint gdk_keyval_from_name (const gchar *keyval_name);
999 guint gdk_keyval_to_upper (guint keyval);
1000 guint gdk_keyval_to_lower (guint keyval);
1001 gboolean gdk_keyval_is_upper (guint keyval);
1002 gboolean gdk_keyval_is_lower (guint keyval);
1007 GDKVAR GMutex *gdk_threads_mutex;
1009 void gdk_threads_enter (void);
1010 void gdk_threads_leave (void);
1012 #ifdef G_THREADS_ENABLED
1013 # define GDK_THREADS_ENTER() G_STMT_START { \
1014 if (gdk_threads_mutex) \
1015 g_mutex_lock (gdk_threads_mutex); \
1017 # define GDK_THREADS_LEAVE() G_STMT_START { \
1018 if (gdk_threads_mutex) \
1019 g_mutex_unlock (gdk_threads_mutex); \
1021 #else /* !G_THREADS_ENABLED */
1022 # define GDK_THREADS_ENTER()
1023 # define GDK_THREADS_LEAVE()
1024 #endif /* !G_THREADS_ENABLED */
1026 #include <gdk/gdkrgb.h>
1030 #endif /* __cplusplus */
1033 #endif /* __GDK_H__ */