1 /* GTK - The GIMP Toolkit
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 Lesser 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 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser 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-2000. 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/.
27 #ifndef __GTK_WIDGET_H__
28 #define __GTK_WIDGET_H__
31 #include <gtk/gtkaccelgroup.h>
32 #include <gtk/gtkobject.h>
33 #include <gtk/gtkadjustment.h>
34 #include <gtk/gtkstyle.h>
39 #endif /* __cplusplus */
42 /* The flags that are used by GtkWidget on top of the
43 * flags field of GtkObject.
47 GTK_TOPLEVEL = 1 << 4,
48 GTK_NO_WINDOW = 1 << 5,
49 GTK_REALIZED = 1 << 6,
52 GTK_SENSITIVE = 1 << 9,
53 GTK_PARENT_SENSITIVE = 1 << 10,
54 GTK_CAN_FOCUS = 1 << 11,
55 GTK_HAS_FOCUS = 1 << 12,
56 GTK_CAN_DEFAULT = 1 << 13,
57 GTK_HAS_DEFAULT = 1 << 14,
58 GTK_HAS_GRAB = 1 << 15,
59 GTK_RC_STYLE = 1 << 16,
60 GTK_COMPOSITE_CHILD = 1 << 17,
61 GTK_NO_REPARENT = 1 << 18,
62 GTK_APP_PAINTABLE = 1 << 19,
63 GTK_RECEIVES_DEFAULT = 1 << 20,
64 GTK_DOUBLE_BUFFERED = 1 << 21
67 /* Macro for casting a pointer to a GtkWidget or GtkWidgetClass pointer.
68 * Macros for testing whether `widget' or `klass' are of type GTK_TYPE_WIDGET.
70 #define GTK_TYPE_WIDGET (gtk_widget_get_type ())
71 #define GTK_WIDGET(widget) (GTK_CHECK_CAST ((widget), GTK_TYPE_WIDGET, GtkWidget))
72 #define GTK_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_WIDGET, GtkWidgetClass))
73 #define GTK_IS_WIDGET(widget) (GTK_CHECK_TYPE ((widget), GTK_TYPE_WIDGET))
74 #define GTK_IS_WIDGET_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_WIDGET))
75 #define GTK_WIDGET_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_WIDGET, GtkWidgetClass))
77 /* Macros for extracting various fields from GtkWidget and GtkWidgetClass.
79 #define GTK_WIDGET_TYPE(wid) (GTK_OBJECT_TYPE (wid))
80 #define GTK_WIDGET_STATE(wid) (GTK_WIDGET (wid)->state)
81 #define GTK_WIDGET_SAVED_STATE(wid) (GTK_WIDGET (wid)->saved_state)
83 /* Macros for extracting the widget flags from GtkWidget.
85 #define GTK_WIDGET_FLAGS(wid) (GTK_OBJECT_FLAGS (wid))
86 #define GTK_WIDGET_TOPLEVEL(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_TOPLEVEL) != 0)
87 #define GTK_WIDGET_NO_WINDOW(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_NO_WINDOW) != 0)
88 #define GTK_WIDGET_REALIZED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_REALIZED) != 0)
89 #define GTK_WIDGET_MAPPED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_MAPPED) != 0)
90 #define GTK_WIDGET_VISIBLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_VISIBLE) != 0)
91 #define GTK_WIDGET_DRAWABLE(wid) (GTK_WIDGET_VISIBLE (wid) && GTK_WIDGET_MAPPED (wid))
92 #define GTK_WIDGET_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_SENSITIVE) != 0)
93 #define GTK_WIDGET_PARENT_SENSITIVE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_PARENT_SENSITIVE) != 0)
94 #define GTK_WIDGET_IS_SENSITIVE(wid) (GTK_WIDGET_SENSITIVE (wid) && \
95 GTK_WIDGET_PARENT_SENSITIVE (wid))
96 #define GTK_WIDGET_CAN_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_FOCUS) != 0)
97 #define GTK_WIDGET_HAS_FOCUS(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_FOCUS) != 0)
98 #define GTK_WIDGET_CAN_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_CAN_DEFAULT) != 0)
99 #define GTK_WIDGET_HAS_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_DEFAULT) != 0)
100 #define GTK_WIDGET_HAS_GRAB(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_HAS_GRAB) != 0)
101 #define GTK_WIDGET_RC_STYLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RC_STYLE) != 0)
102 #define GTK_WIDGET_COMPOSITE_CHILD(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_COMPOSITE_CHILD) != 0)
103 #define GTK_WIDGET_APP_PAINTABLE(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_APP_PAINTABLE) != 0)
104 #define GTK_WIDGET_RECEIVES_DEFAULT(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_RECEIVES_DEFAULT) != 0)
105 #define GTK_WIDGET_DOUBLE_BUFFERED(wid) ((GTK_WIDGET_FLAGS (wid) & GTK_DOUBLE_BUFFERED) != 0)
107 /* Macros for setting and clearing widget flags.
109 #define GTK_WIDGET_SET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) |= (flag)); }G_STMT_END
110 #define GTK_WIDGET_UNSET_FLAGS(wid,flag) G_STMT_START{ (GTK_WIDGET_FLAGS (wid) &= ~(flag)); }G_STMT_END
114 typedef struct _GtkRequisition GtkRequisition;
115 typedef struct _GdkRectangle GtkAllocation;
116 typedef struct _GtkSelectionData GtkSelectionData;
117 typedef struct _GtkWidgetClass GtkWidgetClass;
118 typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
119 typedef struct _GtkWidgetShapeInfo GtkWidgetShapeInfo;
121 typedef void (*GtkCallback) (GtkWidget *widget,
124 /* A requisition is a desired amount of space which a
125 * widget may request.
127 struct _GtkRequisition
133 /* The contents of a selection are returned in a GtkSelectionData
134 structure. selection/target identify the request.
135 type specifies the type of the return; if length < 0, and
136 the data should be ignored. This structure has object semantics -
137 no fields should be modified directly, they should not be created
138 directly, and pointers to them should not be stored beyond the duration of
139 a callback. (If the last is changed, we'll need to add reference
140 counting.) The time field gives the timestamp at which the data was sent. */
142 struct _GtkSelectionData
152 /* The widget is the base of the tree for displayable objects.
153 * (A displayable object is one which takes up some amount
154 * of screen real estate). It provides a common base and interface
155 * which actual widgets must adhere to.
159 /* The object structure needs to be the first
160 * element in the widget structure in order for
161 * the object mechanism to work correctly. This
162 * allows a GtkWidget pointer to be cast to a
167 /* 16 bits of internally used private flags.
168 * this will be packed into the same 4 byte alignment frame that
169 * state and saved_state go. we therefore don't waste any new
172 guint16 private_flags;
174 /* The state of the widget. There are actually only
175 * 5 widget states (defined in "gtkenums.h").
179 /* The saved state of the widget. When a widgets state
180 * is changed to GTK_STATE_INSENSITIVE via
181 * "gtk_widget_set_state" or "gtk_widget_set_sensitive"
182 * the old state is kept around in this field. The state
183 * will be restored once the widget gets sensitive again.
187 /* The widgets name. If the widget does not have a name
188 * (the name is NULL), then its name (as returned by
189 * "gtk_widget_get_name") is its classes name.
190 * Among other things, the widget name is used to determine
191 * the style to use for a widget.
195 /* The style for the widget. The style contains the
196 * colors the widget should be drawn in for each state
197 * along with graphics contexts used to draw with and
198 * the font to use for text.
202 /* The widgets desired size.
204 GtkRequisition requisition;
206 /* The widgets allocated size.
208 GtkAllocation allocation;
210 /* The widgets window or its parent window if it does
211 * not have a window. (Which will be indicated by the
212 * GTK_NO_WINDOW flag being set).
216 /* The widgets parent.
221 struct _GtkWidgetClass
223 /* The object class structure needs to be the first
224 * element in the widget class structure in order for
225 * the class mechanism to work correctly. This allows a
226 * GtkWidgetClass pointer to be cast to a GtkObjectClass
229 GtkObjectClass parent_class;
231 /* The signal to emit when a widget of this class is activated,
232 * gtk_widget_activate() handles the emission.
233 * Implementation of this signal is optional.
235 guint activate_signal;
237 /* This signal is emitted when a widget of this class is added
238 * to a scrolling aware parent, gtk_widget_set_scroll_adjustments()
239 * handles the emission.
240 * Implementation of this signal is optional.
242 guint set_scroll_adjustments_signal;
245 void (* show) (GtkWidget *widget);
246 void (* show_all) (GtkWidget *widget);
247 void (* hide) (GtkWidget *widget);
248 void (* hide_all) (GtkWidget *widget);
249 void (* map) (GtkWidget *widget);
250 void (* unmap) (GtkWidget *widget);
251 void (* realize) (GtkWidget *widget);
252 void (* unrealize) (GtkWidget *widget);
253 void (* draw) (GtkWidget *widget,
255 void (* draw_focus) (GtkWidget *widget);
256 void (* draw_default) (GtkWidget *widget);
257 void (* size_request) (GtkWidget *widget,
258 GtkRequisition *requisition);
259 void (* size_allocate) (GtkWidget *widget,
260 GtkAllocation *allocation);
261 void (* state_changed) (GtkWidget *widget,
262 GtkStateType previous_state);
263 void (* parent_set) (GtkWidget *widget,
264 GtkWidget *previous_parent);
265 void (* style_set) (GtkWidget *widget,
266 GtkStyle *previous_style);
267 void (* direction_changed) (GtkWidget *widget,
268 GtkTextDirection previous_direction);
271 gint (* add_accelerator) (GtkWidget *widget,
272 guint accel_signal_id,
273 GtkAccelGroup *accel_group,
275 GdkModifierType accel_mods,
276 GtkAccelFlags accel_flags);
277 void (* remove_accelerator) (GtkWidget *widget,
278 GtkAccelGroup *accel_group,
280 GdkModifierType accel_mods);
283 void (* grab_focus) (GtkWidget *widget);
286 gint (* event) (GtkWidget *widget,
288 gint (* button_press_event) (GtkWidget *widget,
289 GdkEventButton *event);
290 gint (* button_release_event) (GtkWidget *widget,
291 GdkEventButton *event);
292 gint (* scroll_event) (GtkWidget *widget,
293 GdkEventScroll *event);
294 gint (* motion_notify_event) (GtkWidget *widget,
295 GdkEventMotion *event);
296 gint (* delete_event) (GtkWidget *widget,
298 gint (* destroy_event) (GtkWidget *widget,
300 gint (* expose_event) (GtkWidget *widget,
301 GdkEventExpose *event);
302 gint (* key_press_event) (GtkWidget *widget,
304 gint (* key_release_event) (GtkWidget *widget,
306 gint (* enter_notify_event) (GtkWidget *widget,
307 GdkEventCrossing *event);
308 gint (* leave_notify_event) (GtkWidget *widget,
309 GdkEventCrossing *event);
310 gint (* configure_event) (GtkWidget *widget,
311 GdkEventConfigure *event);
312 gint (* focus_in_event) (GtkWidget *widget,
313 GdkEventFocus *event);
314 gint (* focus_out_event) (GtkWidget *widget,
315 GdkEventFocus *event);
316 gint (* map_event) (GtkWidget *widget,
318 gint (* unmap_event) (GtkWidget *widget,
320 gint (* property_notify_event) (GtkWidget *widget,
321 GdkEventProperty *event);
322 gint (* selection_clear_event) (GtkWidget *widget,
323 GdkEventSelection *event);
324 gint (* selection_request_event) (GtkWidget *widget,
325 GdkEventSelection *event);
326 gint (* selection_notify_event) (GtkWidget *widget,
327 GdkEventSelection *event);
328 gint (* proximity_in_event) (GtkWidget *widget,
329 GdkEventProximity *event);
330 gint (* proximity_out_event) (GtkWidget *widget,
331 GdkEventProximity *event);
332 gint (* visibility_notify_event) (GtkWidget *widget,
333 GdkEventVisibility *event);
334 gint (* client_event) (GtkWidget *widget,
335 GdkEventClient *event);
336 gint (* no_expose_event) (GtkWidget *widget,
340 void (* selection_get) (GtkWidget *widget,
341 GtkSelectionData *selection_data,
344 void (* selection_received) (GtkWidget *widget,
345 GtkSelectionData *selection_data,
348 /* Source side drag signals */
349 void (* drag_begin) (GtkWidget *widget,
350 GdkDragContext *context);
351 void (* drag_end) (GtkWidget *widget,
352 GdkDragContext *context);
353 void (* drag_data_get) (GtkWidget *widget,
354 GdkDragContext *context,
355 GtkSelectionData *selection_data,
358 void (* drag_data_delete) (GtkWidget *widget,
359 GdkDragContext *context);
361 /* Target side drag signals */
362 void (* drag_leave) (GtkWidget *widget,
363 GdkDragContext *context,
365 gboolean (* drag_motion) (GtkWidget *widget,
366 GdkDragContext *context,
370 gboolean (* drag_drop) (GtkWidget *widget,
371 GdkDragContext *context,
375 void (* drag_data_received) (GtkWidget *widget,
376 GdkDragContext *context,
379 GtkSelectionData *selection_data,
384 void (* debug_msg) (GtkWidget *widget,
385 const gchar *string);
387 /* Padding for future expandsion */
394 struct _GtkWidgetAuxInfo
402 struct _GtkWidgetShapeInfo
406 GdkBitmap *shape_mask;
409 GtkType gtk_widget_get_type (void) G_GNUC_CONST;
410 GtkWidget* gtk_widget_new (GtkType type,
411 const gchar *first_arg_name,
413 GtkWidget* gtk_widget_newv (GtkType type,
416 GtkWidget* gtk_widget_ref (GtkWidget *widget);
417 void gtk_widget_unref (GtkWidget *widget);
418 void gtk_widget_destroy (GtkWidget *widget);
419 void gtk_widget_destroyed (GtkWidget *widget,
420 GtkWidget **widget_pointer);
421 void gtk_widget_get (GtkWidget *widget,
423 void gtk_widget_getv (GtkWidget *widget,
426 void gtk_widget_set (GtkWidget *widget,
427 const gchar *first_arg_name,
429 void gtk_widget_setv (GtkWidget *widget,
432 void gtk_widget_unparent (GtkWidget *widget);
433 void gtk_widget_show (GtkWidget *widget);
434 void gtk_widget_show_now (GtkWidget *widget);
435 void gtk_widget_hide (GtkWidget *widget);
436 void gtk_widget_show_all (GtkWidget *widget);
437 void gtk_widget_hide_all (GtkWidget *widget);
438 void gtk_widget_map (GtkWidget *widget);
439 void gtk_widget_unmap (GtkWidget *widget);
440 void gtk_widget_realize (GtkWidget *widget);
441 void gtk_widget_unrealize (GtkWidget *widget);
444 void gtk_widget_queue_draw (GtkWidget *widget);
445 void gtk_widget_queue_draw_area (GtkWidget *widget,
450 void gtk_widget_queue_clear (GtkWidget *widget);
451 void gtk_widget_queue_clear_area (GtkWidget *widget,
458 void gtk_widget_queue_resize (GtkWidget *widget);
459 void gtk_widget_draw (GtkWidget *widget,
461 void gtk_widget_draw_focus (GtkWidget *widget);
462 void gtk_widget_draw_default (GtkWidget *widget);
463 void gtk_widget_size_request (GtkWidget *widget,
464 GtkRequisition *requisition);
465 void gtk_widget_size_allocate (GtkWidget *widget,
466 GtkAllocation *allocation);
467 void gtk_widget_get_child_requisition (GtkWidget *widget,
468 GtkRequisition *requisition);
469 void gtk_widget_add_accelerator (GtkWidget *widget,
470 const gchar *accel_signal,
471 GtkAccelGroup *accel_group,
474 GtkAccelFlags accel_flags);
475 void gtk_widget_remove_accelerator (GtkWidget *widget,
476 GtkAccelGroup *accel_group,
479 void gtk_widget_remove_accelerators (GtkWidget *widget,
480 const gchar *accel_signal,
481 gboolean visible_only);
482 guint gtk_widget_accelerator_signal (GtkWidget *widget,
483 GtkAccelGroup *accel_group,
486 void gtk_widget_lock_accelerators (GtkWidget *widget);
487 void gtk_widget_unlock_accelerators (GtkWidget *widget);
488 gboolean gtk_widget_accelerators_locked (GtkWidget *widget);
489 gint gtk_widget_event (GtkWidget *widget,
492 gboolean gtk_widget_activate (GtkWidget *widget);
493 gboolean gtk_widget_set_scroll_adjustments (GtkWidget *widget,
494 GtkAdjustment *hadjustment,
495 GtkAdjustment *vadjustment);
497 void gtk_widget_reparent (GtkWidget *widget,
498 GtkWidget *new_parent);
499 void gtk_widget_popup (GtkWidget *widget,
502 gint gtk_widget_intersect (GtkWidget *widget,
504 GdkRectangle *intersection);
506 void gtk_widget_grab_focus (GtkWidget *widget);
507 void gtk_widget_grab_default (GtkWidget *widget);
509 void gtk_widget_set_name (GtkWidget *widget,
511 gchar* gtk_widget_get_name (GtkWidget *widget);
512 void gtk_widget_set_state (GtkWidget *widget,
514 void gtk_widget_set_sensitive (GtkWidget *widget,
516 void gtk_widget_set_app_paintable (GtkWidget *widget,
517 gboolean app_paintable);
518 void gtk_widget_set_double_buffered (GtkWidget *widget,
519 gboolean double_buffered);
520 void gtk_widget_set_parent (GtkWidget *widget,
522 void gtk_widget_set_parent_window (GtkWidget *widget,
523 GdkWindow *parent_window);
524 GdkWindow *gtk_widget_get_parent_window (GtkWidget *widget);
525 void gtk_widget_set_uposition (GtkWidget *widget,
528 void gtk_widget_set_usize (GtkWidget *widget,
531 void gtk_widget_set_events (GtkWidget *widget,
533 void gtk_widget_add_events (GtkWidget *widget,
535 void gtk_widget_set_extension_events (GtkWidget *widget,
536 GdkExtensionMode mode);
538 GdkExtensionMode gtk_widget_get_extension_events (GtkWidget *widget);
539 GtkWidget* gtk_widget_get_toplevel (GtkWidget *widget);
540 GtkWidget* gtk_widget_get_ancestor (GtkWidget *widget,
541 GtkType widget_type);
542 GdkColormap* gtk_widget_get_colormap (GtkWidget *widget);
543 GdkVisual* gtk_widget_get_visual (GtkWidget *widget);
545 /* The following functions must not be called on an already
546 * realized widget. Because it is possible that somebody
547 * can call get_colormap() or get_visual() and save the
548 * result, these functions are probably only safe to
549 * call in a widget's init() function.
551 void gtk_widget_set_colormap (GtkWidget *widget,
552 GdkColormap *colormap);
554 gint gtk_widget_get_events (GtkWidget *widget);
555 void gtk_widget_get_pointer (GtkWidget *widget,
559 gint gtk_widget_is_ancestor (GtkWidget *widget,
560 GtkWidget *ancestor);
562 /* Hide widget and return TRUE.
564 gint gtk_widget_hide_on_delete (GtkWidget *widget);
568 void gtk_widget_set_style (GtkWidget *widget,
570 void gtk_widget_set_rc_style (GtkWidget *widget);
571 void gtk_widget_ensure_style (GtkWidget *widget);
572 GtkStyle* gtk_widget_get_style (GtkWidget *widget);
573 void gtk_widget_restore_default_style (GtkWidget *widget);
575 void gtk_widget_modify_style (GtkWidget *widget,
577 GtkRcStyle *gtk_widget_get_modifier_style (GtkWidget *widget);
578 void gtk_widget_modify_fg (GtkWidget *widget,
581 void gtk_widget_modify_bg (GtkWidget *widget,
584 void gtk_widget_modify_text (GtkWidget *widget,
587 void gtk_widget_modify_base (GtkWidget *widget,
590 void gtk_widget_modify_font (GtkWidget *widget,
591 PangoFontDescription *font_desc);
593 PangoContext *gtk_widget_create_pango_context (GtkWidget *widget);
594 PangoContext *gtk_widget_get_pango_context (GtkWidget *widget);
595 PangoLayout *gtk_widget_create_pango_layout (GtkWidget *widget,
598 /* handle composite names for GTK_COMPOSITE_CHILD widgets,
599 * the returned name is newly allocated.
601 void gtk_widget_set_composite_name (GtkWidget *widget,
603 gchar* gtk_widget_get_composite_name (GtkWidget *widget);
605 /* Descend recursively and set rc-style on all widgets without user styles */
606 void gtk_widget_reset_rc_styles (GtkWidget *widget);
608 /* Push/pop pairs, to change default values upon a widget's creation.
609 * This will override the values that got set by the
610 * gtk_widget_set_default_* () functions.
612 void gtk_widget_push_style (GtkStyle *style);
613 void gtk_widget_push_colormap (GdkColormap *cmap);
614 void gtk_widget_push_composite_child (void);
615 void gtk_widget_pop_composite_child (void);
616 void gtk_widget_pop_style (void);
617 void gtk_widget_pop_colormap (void);
619 /* Set certain default values to be used at widget creation time.
621 void gtk_widget_set_default_style (GtkStyle *style);
622 void gtk_widget_set_default_colormap (GdkColormap *colormap);
623 GtkStyle* gtk_widget_get_default_style (void);
624 GdkColormap* gtk_widget_get_default_colormap (void);
625 GdkVisual* gtk_widget_get_default_visual (void);
627 /* Functions for setting directionality for widgets
630 void gtk_widget_set_direction (GtkWidget *widget,
631 GtkTextDirection dir);
632 GtkTextDirection gtk_widget_get_direction (GtkWidget *widget);
634 void gtk_widget_set_default_direction (GtkTextDirection dir);
635 GtkTextDirection gtk_widget_get_default_direction (void);
637 /* Counterpart to gdk_window_shape_combine_mask.
639 void gtk_widget_shape_combine_mask (GtkWidget *widget,
640 GdkBitmap *shape_mask,
644 /* internal function */
645 void gtk_widget_reset_shapes (GtkWidget *widget);
647 /* Compute a widget's path in the form "GtkWindow.MyLabel", and
648 * return newly alocated strings.
650 void gtk_widget_path (GtkWidget *widget,
653 gchar **path_reversed);
654 void gtk_widget_class_path (GtkWidget *widget,
657 gchar **path_reversed);
659 #if defined (GTK_TRACE_OBJECTS) && defined (__GNUC__)
660 # define gtk_widget_ref gtk_object_ref
661 # define gtk_widget_unref gtk_object_unref
662 #endif /* GTK_TRACE_OBJECTS && __GNUC__ */
668 #endif /* __cplusplus */
671 #endif /* __GTK_WIDGET_H__ */