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 #if GDK_WINDOWING == GDK_WINDOWING_WIN32
468 GdkPixmap* gdk_pixmap_create_on_shared_image
469 (GdkImage **image_return,
476 GdkBitmap* gdk_bitmap_create_from_data (GdkWindow *window,
480 GdkPixmap* gdk_pixmap_create_from_data (GdkWindow *window,
487 GdkPixmap* gdk_pixmap_create_from_xpm (GdkWindow *window,
489 GdkColor *transparent_color,
490 const gchar *filename);
491 GdkPixmap* gdk_pixmap_colormap_create_from_xpm
493 GdkColormap *colormap,
495 GdkColor *transparent_color,
496 const gchar *filename);
497 GdkPixmap* gdk_pixmap_create_from_xpm_d (GdkWindow *window,
499 GdkColor *transparent_color,
501 GdkPixmap* gdk_pixmap_colormap_create_from_xpm_d
503 GdkColormap *colormap,
505 GdkColor *transparent_color,
507 GdkPixmap *gdk_pixmap_ref (GdkPixmap *pixmap);
508 void gdk_pixmap_unref (GdkPixmap *pixmap);
510 GdkBitmap *gdk_bitmap_ref (GdkBitmap *pixmap);
511 void gdk_bitmap_unref (GdkBitmap *pixmap);
516 GdkImage* gdk_image_new_bitmap(GdkVisual *visual,
520 GdkImage* gdk_image_new (GdkImageType type,
524 #if GDK_WINDOWING == GDK_WINDOWING_WIN32
525 GdkImage* gdk_image_bitmap_new(GdkImageType type,
530 GdkImage* gdk_image_get (GdkWindow *window,
535 void gdk_image_put_pixel (GdkImage *image,
539 guint32 gdk_image_get_pixel (GdkImage *image,
542 void gdk_image_destroy (GdkImage *image);
547 GdkColormap* gdk_colormap_new (GdkVisual *visual,
549 GdkColormap* gdk_colormap_ref (GdkColormap *cmap);
550 void gdk_colormap_unref (GdkColormap *cmap);
552 GdkColormap* gdk_colormap_get_system (void);
553 gint gdk_colormap_get_system_size (void);
555 void gdk_colormap_change (GdkColormap *colormap,
559 gint gdk_colormap_alloc_colors (GdkColormap *colormap,
565 gboolean gdk_colormap_alloc_color (GdkColormap *colormap,
568 gboolean best_match);
569 void gdk_colormap_free_colors (GdkColormap *colormap,
573 GdkVisual *gdk_colormap_get_visual (GdkColormap *colormap);
575 GdkColor *gdk_color_copy (GdkColor *color);
576 void gdk_color_free (GdkColor *color);
578 gint gdk_color_parse (const gchar *spec,
580 guint gdk_color_hash (const GdkColor *colora);
581 gint gdk_color_equal (const GdkColor *colora,
582 const GdkColor *colorb);
585 /* The following functions are deprecated */
586 void gdk_colors_store (GdkColormap *colormap,
589 gint gdk_colors_alloc (GdkColormap *colormap,
595 void gdk_colors_free (GdkColormap *colormap,
599 gint gdk_color_white (GdkColormap *colormap,
601 gint gdk_color_black (GdkColormap *colormap,
603 gint gdk_color_alloc (GdkColormap *colormap,
605 gint gdk_color_change (GdkColormap *colormap,
611 GdkFont* gdk_font_load (const gchar *font_name);
612 GdkFont* gdk_fontset_load (gchar *fontset_name);
613 GdkFont* gdk_font_ref (GdkFont *font);
614 void gdk_font_unref (GdkFont *font);
615 gint gdk_font_id (const GdkFont *font);
616 gint gdk_font_equal (const GdkFont *fonta,
617 const GdkFont *fontb);
618 gint gdk_string_width (GdkFont *font,
619 const gchar *string);
620 gint gdk_text_width (GdkFont *font,
623 gint gdk_text_width_wc (GdkFont *font,
624 const GdkWChar *text,
626 gint gdk_char_width (GdkFont *font,
628 gint gdk_char_width_wc (GdkFont *font,
630 gint gdk_string_measure (GdkFont *font,
631 const gchar *string);
632 gint gdk_text_measure (GdkFont *font,
635 gint gdk_char_measure (GdkFont *font,
637 gint gdk_string_height (GdkFont *font,
638 const gchar *string);
639 gint gdk_text_height (GdkFont *font,
642 gint gdk_char_height (GdkFont *font,
645 void gdk_text_extents (GdkFont *font,
653 void gdk_text_extents_wc (GdkFont *font,
654 const GdkWChar *text,
661 void gdk_string_extents (GdkFont *font,
671 void gdk_draw_point (GdkDrawable *drawable,
675 void gdk_draw_line (GdkDrawable *drawable,
681 void gdk_draw_rectangle (GdkDrawable *drawable,
688 void gdk_draw_arc (GdkDrawable *drawable,
697 void gdk_draw_polygon (GdkDrawable *drawable,
702 void gdk_draw_string (GdkDrawable *drawable,
707 const gchar *string);
708 void gdk_draw_text (GdkDrawable *drawable,
715 void gdk_draw_text_wc (GdkDrawable *drawable,
720 const GdkWChar *text,
722 void gdk_draw_pixmap (GdkDrawable *drawable,
731 void gdk_draw_bitmap (GdkDrawable *drawable,
740 void gdk_draw_image (GdkDrawable *drawable,
749 void gdk_draw_points (GdkDrawable *drawable,
753 void gdk_draw_segments (GdkDrawable *drawable,
757 void gdk_draw_lines (GdkDrawable *drawable,
767 gint gdk_selection_owner_set (GdkWindow *owner,
771 GdkWindow* gdk_selection_owner_get (GdkAtom selection);
772 void gdk_selection_convert (GdkWindow *requestor,
776 gint gdk_selection_property_get (GdkWindow *requestor,
780 void gdk_selection_send_notify (guint32 requestor,
786 gint gdk_text_property_to_text_list (GdkAtom encoding, gint format,
787 guchar *text, gint length,
789 void gdk_free_text_list (gchar **list);
790 gint gdk_string_to_compound_text (gchar *str,
791 GdkAtom *encoding, gint *format,
792 guchar **ctext, gint *length);
793 void gdk_free_compound_text (guchar *ctext);
797 GdkAtom gdk_atom_intern (const gchar *atom_name,
798 gint only_if_exists);
799 gchar* gdk_atom_name (GdkAtom atom);
800 gint gdk_property_get (GdkWindow *window,
806 GdkAtom *actual_property_type,
811 void gdk_property_change (GdkWindow *window,
818 void gdk_property_delete (GdkWindow *window,
822 /* Rectangle utilities
824 gint gdk_rectangle_intersect (GdkRectangle *src1,
827 void gdk_rectangle_union (GdkRectangle *src1,
834 void gdk_input_init (void);
835 void gdk_input_exit (void);
836 GList *gdk_input_list_devices (void);
837 void gdk_input_set_extension_events (GdkWindow *window,
839 GdkExtensionMode mode);
840 void gdk_input_set_source (guint32 deviceid,
841 GdkInputSource source);
842 gint gdk_input_set_mode (guint32 deviceid,
844 void gdk_input_set_axes (guint32 deviceid,
846 void gdk_input_set_key (guint32 deviceid,
849 GdkModifierType modifiers);
850 void gdk_input_window_get_pointer (GdkWindow *window,
857 GdkModifierType *mask);
859 GdkTimeCoord *gdk_input_motion_events (GdkWindow *window,
863 gint *nevents_return);
865 /* International Input Method Support Functions
868 gint gdk_im_ready (void);
870 void gdk_im_begin (GdkIC *ic,
872 void gdk_im_end (void);
873 GdkIMStyle gdk_im_decide_style (GdkIMStyle supported_style);
874 GdkIMStyle gdk_im_set_best_style (GdkIMStyle best_allowed_style);
876 GdkIC* gdk_ic_new (GdkICAttr *attr,
877 GdkICAttributesType mask);
878 void gdk_ic_destroy (GdkIC *ic);
879 GdkIMStyle gdk_ic_get_style (GdkIC *ic);
880 GdkEventMask gdk_ic_get_events (GdkIC *ic);
882 GdkICAttr* gdk_ic_attr_new (void);
883 void gdk_ic_attr_destroy (GdkICAttr *attr);
885 GdkICAttributesType gdk_ic_set_attr (GdkIC *ic,
887 GdkICAttributesType mask);
888 GdkICAttributesType gdk_ic_get_attr (GdkIC *ic,
890 GdkICAttributesType mask);
892 /* Conversion functions between wide char and multibyte strings.
894 gchar *gdk_wcstombs (const GdkWChar *src);
895 gint gdk_mbstowcs (GdkWChar *dest,
902 GdkColorContext *gdk_color_context_new (GdkVisual *visual,
903 GdkColormap *colormap);
905 GdkColorContext *gdk_color_context_new_mono (GdkVisual *visual,
906 GdkColormap *colormap);
908 void gdk_color_context_free (GdkColorContext *cc);
910 gulong gdk_color_context_get_pixel (GdkColorContext *cc,
915 void gdk_color_context_get_pixels (GdkColorContext *cc,
922 void gdk_color_context_get_pixels_incremental (GdkColorContext *cc,
931 gint gdk_color_context_query_color (GdkColorContext *cc,
933 gint gdk_color_context_query_colors (GdkColorContext *cc,
937 gint gdk_color_context_add_palette (GdkColorContext *cc,
941 void gdk_color_context_init_dither (GdkColorContext *cc);
942 void gdk_color_context_free_dither (GdkColorContext *cc);
944 gulong gdk_color_context_get_pixel_from_palette (GdkColorContext *cc,
949 guchar gdk_color_context_get_index_from_palette (GdkColorContext *cc,
957 GdkRegion* gdk_region_new (void);
958 void gdk_region_destroy (GdkRegion *region);
960 void gdk_region_get_clipbox(GdkRegion *region,
961 GdkRectangle *rectangle);
963 gboolean gdk_region_empty (GdkRegion *region);
964 gboolean gdk_region_equal (GdkRegion *region1,
966 gboolean gdk_region_point_in (GdkRegion *region,
969 GdkOverlapType gdk_region_rect_in (GdkRegion *region,
972 GdkRegion* gdk_region_polygon (GdkPoint *points,
974 GdkFillRule fill_rule);
976 void gdk_region_offset (GdkRegion *region,
979 void gdk_region_shrink (GdkRegion *region,
983 GdkRegion* gdk_region_union_with_rect (GdkRegion *region,
985 GdkRegion* gdk_regions_intersect (GdkRegion *source1,
987 GdkRegion* gdk_regions_union (GdkRegion *source1,
989 GdkRegion* gdk_regions_subtract (GdkRegion *source1,
991 GdkRegion* gdk_regions_xor (GdkRegion *source1,
995 void gdk_event_send_clientmessage_toall (GdkEvent *event);
996 gboolean gdk_event_send_client_message (GdkEvent *event,
1001 gchar* gdk_keyval_name (guint keyval);
1002 guint gdk_keyval_from_name (const gchar *keyval_name);
1003 guint gdk_keyval_to_upper (guint keyval);
1004 guint gdk_keyval_to_lower (guint keyval);
1005 gboolean gdk_keyval_is_upper (guint keyval);
1006 gboolean gdk_keyval_is_lower (guint keyval);
1011 GDKVAR GMutex *gdk_threads_mutex;
1013 void gdk_threads_enter (void);
1014 void gdk_threads_leave (void);
1016 #ifdef G_THREADS_ENABLED
1017 # define GDK_THREADS_ENTER() G_STMT_START { \
1018 if (gdk_threads_mutex) \
1019 g_mutex_lock (gdk_threads_mutex); \
1021 # define GDK_THREADS_LEAVE() G_STMT_START { \
1022 if (gdk_threads_mutex) \
1023 g_mutex_unlock (gdk_threads_mutex); \
1025 #else /* !G_THREADS_ENABLED */
1026 # define GDK_THREADS_ENTER()
1027 # define GDK_THREADS_LEAVE()
1028 #endif /* !G_THREADS_ENABLED */
1030 #include <gdk/gdkrgb.h>
1034 #endif /* __cplusplus */
1037 #endif /* __GDK_H__ */