diff options
author | Javier Jardón <jjardon@gnome.org> | 2010-06-03 04:11:46 +0200 |
---|---|---|
committer | Javier Jardón <jjardon@gnome.org> | 2010-07-13 19:40:46 +0200 |
commit | 2de1f3f88c661f2b932f9ab36a3b22ca35df1635 (patch) | |
tree | d1502a61dc03575665ca78da2953af4f4985a7d3 /gtk/gtkcontainer.h | |
parent | 63f83130154be9d773c1e8c939766d59a0040cc7 (diff) | |
download | gtk+-2de1f3f88c661f2b932f9ab36a3b22ca35df1635.tar.gz |
gtkcontainer: Move public members to private structure
Diffstat (limited to 'gtk/gtkcontainer.h')
-rw-r--r-- | gtk/gtkcontainer.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk/gtkcontainer.h b/gtk/gtkcontainer.h index bf44a66be0..e37de1ee38 100644 --- a/gtk/gtkcontainer.h +++ b/gtk/gtkcontainer.h @@ -45,25 +45,17 @@ G_BEGIN_DECLS #define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER)) #define GTK_CONTAINER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass)) -#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT) - typedef struct _GtkContainer GtkContainer; +typedef struct _GtkContainerPriv GtkContainerPriv; typedef struct _GtkContainerClass GtkContainerClass; struct _GtkContainer { GtkWidget widget; - GtkWidget *GSEAL (focus_child); - - guint GSEAL (border_width) : 16; - /*< private >*/ - guint GSEAL (need_resize) : 1; - guint GSEAL (resize_mode) : 2; - guint GSEAL (reallocate_redraws) : 1; - guint GSEAL (has_focus_chain) : 1; + GtkContainerPriv *priv; }; struct _GtkContainerClass @@ -102,6 +94,7 @@ struct _GtkContainerClass void (*_gtk_reserved4) (void); }; + /* Application-level methods */ GType gtk_container_get_type (void) G_GNUC_CONST; @@ -134,6 +127,9 @@ gboolean gtk_container_get_focus_chain (GtkContainer *container, GList **focusable_widgets); void gtk_container_unset_focus_chain (GtkContainer *container); +#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && \ + (gtk_container_get_resize_mode (GTK_CONTAINER (widget)) != GTK_RESIZE_PARENT)) + /* Widget-level methods */ void gtk_container_set_reallocate_redraws (GtkContainer *container, |