summaryrefslogtreecommitdiff
path: root/gtk/gtkprivate.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2001-03-08 06:14:43 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-03-08 06:14:43 +0000
commit85af79635af74d2c799350704e4520210d0bc5b3 (patch)
treeb32f5b3b9fa9e74e832394f1d16b38988373a406 /gtk/gtkprivate.h
parentd85dd6bd9882f5da894f5cf0ce77a66493c42223 (diff)
downloadgtk+-85af79635af74d2c799350704e4520210d0bc5b3.tar.gz
Make G_CONST_RETURN.
Thu Mar 8 00:02:30 2001 Owen Taylor <otaylor@redhat.com> * gtk/gtkwidget.[ch] (gtk_widget_get_name): Make G_CONST_RETURN. * gtk/gtkwidget.[ch] gtk/gtkprivate.h: Add a ::hierarchy-changed signal when a widget changes from anchored to unanchored or vice versa. (anchored means gtk_widget_get_ancestor (widget, GTK_TYPE_WINDOW) != NULL.) Use a private flag to keep track of this efficiently.
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r--gtk/gtkprivate.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h
index 91f291d248..af9822c674 100644
--- a/gtk/gtkprivate.h
+++ b/gtk/gtkprivate.h
@@ -48,7 +48,8 @@ typedef enum
PRIVATE_GTK_HAS_SHAPE_MASK = 1 << 5,
PRIVATE_GTK_IN_REPARENT = 1 << 6,
PRIVATE_GTK_DIRECTION_SET = 1 << 7, /* If the reading direction is not DIR_NONE */
- PRIVATE_GTK_DIRECTION_LTR = 1 << 8 /* If the reading direction is DIR_LTR */
+ PRIVATE_GTK_DIRECTION_LTR = 1 << 8, /* If the reading direction is DIR_LTR */
+ PRIVATE_GTK_ANCHORED = 1 << 9 /* If widget has a GtkWindow ancestor */
} GtkPrivateFlags;
/* Macros for extracting a widgets private_flags from GtkWidget.
@@ -62,6 +63,7 @@ typedef enum
#define GTK_WIDGET_IN_REPARENT(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_IN_REPARENT) != 0)
#define GTK_WIDGET_DIRECTION_SET(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_SET) != 0)
#define GTK_WIDGET_DIRECTION_LTR(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_DIRECTION_LTR) != 0)
+#define GTK_WIDGET_ANCHORED(obj) ((GTK_PRIVATE_FLAGS (obj) & PRIVATE_GTK_ANCHORED) != 0)
/* Macros for setting and clearing private widget flags.
* we use a preprocessor string concatenation here for a clear