#include "gtkintl.h"
-struct _GtkFixedPrivate
+typedef struct
{
GList *children;
-};
+} GtkFixedPrivate;
enum {
CHILD_PROP_0,
static void
gtk_fixed_init (GtkFixed *fixed)
{
- fixed->priv = gtk_fixed_get_instance_private (fixed);
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
- fixed->priv->children = NULL;
+ priv->children = NULL;
gtk_widget_set_has_surface (GTK_WIDGET (fixed), FALSE);
}
get_child (GtkFixed *fixed,
GtkWidget *widget)
{
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GList *children;
for (children = priv->children; children; children = children->next)
gint x,
gint y)
{
- GtkFixedPrivate *priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedChild *child_info;
g_return_if_fail (GTK_IS_FIXED (fixed));
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (_gtk_widget_get_parent (widget) == NULL);
- priv = fixed->priv;
-
child_info = g_new (GtkFixedChild, 1);
child_info->widget = widget;
child_info->x = x;
int *natural_baseline)
{
GtkFixed *fixed = GTK_FIXED (widget);
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedChild *child;
GList *children;
gint child_min, child_nat;
int baseline)
{
GtkFixed *fixed = GTK_FIXED (widget);
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedChild *child;
GtkAllocation child_allocation;
GtkRequisition child_requisition;
GtkWidget *widget)
{
GtkFixed *fixed = GTK_FIXED (container);
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedChild *child;
GtkWidget *widget_container = GTK_WIDGET (container);
GList *children;
gpointer callback_data)
{
GtkFixed *fixed = GTK_FIXED (container);
- GtkFixedPrivate *priv = fixed->priv;
+ GtkFixedPrivate *priv = gtk_fixed_get_instance_private (fixed);
GtkFixedChild *child;
GList *children;
#define GTK_FIXED_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_FIXED, GtkFixedClass))
typedef struct _GtkFixed GtkFixed;
-typedef struct _GtkFixedPrivate GtkFixedPrivate;
typedef struct _GtkFixedClass GtkFixedClass;
typedef struct _GtkFixedChild GtkFixedChild;
struct _GtkFixed
{
- GtkContainer container;
-
- /*< private >*/
- GtkFixedPrivate *priv;
+ GtkContainer parent_instance;
};
struct _GtkFixedClass