forked from AuroraMiddleware/gtk
Deprecation cleanup
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org> * gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch] gtk/gtkvbox.[ch]: Deprecation cleanup
This commit is contained in:
parent
28def5e4ad
commit
285c8f78fc
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
|
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
|
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
|
||||||
|
gtk/gtkvbox.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
Sun Oct 6 18:32:11 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
* gtk/gtkcelleditable.c gtk/gtkcellrenderer.[ch]
|
||||||
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
gtk/gtkcellrendererpixbuf.[ch] gtk/gtkcellrenderertext.[ch]
|
||||||
gtk/gtkcellrenderertoggle.[ch]: deprecation cleanup
|
gtk/gtkcellrenderertoggle.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
Sat Oct 5 16:11:22 2002 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
* gtk/gtkmisc.[ch] gtk/gtklabel.[ch] gtk/gtkimage.[ch]
|
||||||
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: deprecation cleanup
|
gtk/gtkdrawingarea.[ch] gtk/gtknotebook.[ch]: Deprecation cleanup
|
||||||
|
|
||||||
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
Sat Oct 5 18:30:50 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
22
gtk/gtkbox.c
22
gtk/gtkbox.c
@ -70,31 +70,31 @@ static void gtk_box_get_child_property (GtkContainer *container,
|
|||||||
guint property_id,
|
guint property_id,
|
||||||
GValue *value,
|
GValue *value,
|
||||||
GParamSpec *pspec);
|
GParamSpec *pspec);
|
||||||
static GtkType gtk_box_child_type (GtkContainer *container);
|
static GType gtk_box_child_type (GtkContainer *container);
|
||||||
|
|
||||||
|
|
||||||
static GtkContainerClass *parent_class = NULL;
|
static GtkContainerClass *parent_class = NULL;
|
||||||
|
|
||||||
|
|
||||||
GtkType
|
GType
|
||||||
gtk_box_get_type (void)
|
gtk_box_get_type (void)
|
||||||
{
|
{
|
||||||
static GtkType box_type = 0;
|
static GType box_type = 0;
|
||||||
|
|
||||||
if (!box_type)
|
if (!box_type)
|
||||||
{
|
{
|
||||||
static const GTypeInfo box_info =
|
static const GTypeInfo box_info =
|
||||||
{
|
{
|
||||||
sizeof (GtkBoxClass),
|
sizeof (GtkBoxClass),
|
||||||
NULL, /* base_init */
|
NULL, /* base_init */
|
||||||
NULL, /* base_finalize */
|
NULL, /* base_finalize */
|
||||||
(GClassInitFunc) gtk_box_class_init,
|
(GClassInitFunc) gtk_box_class_init,
|
||||||
NULL, /* class_finalize */
|
NULL, /* class_finalize */
|
||||||
NULL, /* class_data */
|
NULL, /* class_data */
|
||||||
sizeof (GtkBox),
|
sizeof (GtkBox),
|
||||||
0, /* n_preallocs */
|
0, /* n_preallocs */
|
||||||
(GInstanceInitFunc) gtk_box_init,
|
(GInstanceInitFunc) gtk_box_init,
|
||||||
NULL, /* value_table */
|
NULL, /* value_table */
|
||||||
};
|
};
|
||||||
|
|
||||||
box_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkBox",
|
box_type = g_type_register_static (GTK_TYPE_CONTAINER, "GtkBox",
|
||||||
@ -235,8 +235,8 @@ static void gtk_box_get_property (GObject *object,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static GtkType
|
static GType
|
||||||
gtk_box_child_type (GtkContainer *container)
|
gtk_box_child_type (GtkContainer *container)
|
||||||
{
|
{
|
||||||
return GTK_TYPE_WIDGET;
|
return GTK_TYPE_WIDGET;
|
||||||
}
|
}
|
||||||
|
12
gtk/gtkbox.h
12
gtk/gtkbox.h
@ -38,11 +38,11 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
#define GTK_TYPE_BOX (gtk_box_get_type ())
|
#define GTK_TYPE_BOX (gtk_box_get_type ())
|
||||||
#define GTK_BOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_BOX, GtkBox))
|
#define GTK_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_BOX, GtkBox))
|
||||||
#define GTK_BOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass))
|
#define GTK_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_BOX, GtkBoxClass))
|
||||||
#define GTK_IS_BOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_BOX))
|
#define GTK_IS_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_BOX))
|
||||||
#define GTK_IS_BOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX))
|
#define GTK_IS_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_BOX))
|
||||||
#define GTK_BOX_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass))
|
#define GTK_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_BOX, GtkBoxClass))
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GtkBox GtkBox;
|
typedef struct _GtkBox GtkBox;
|
||||||
@ -74,7 +74,7 @@ struct _GtkBoxChild
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
GtkType gtk_box_get_type (void) G_GNUC_CONST;
|
GType gtk_box_get_type (void) G_GNUC_CONST;
|
||||||
void gtk_box_pack_start (GtkBox *box,
|
void gtk_box_pack_start (GtkBox *box,
|
||||||
GtkWidget *child,
|
GtkWidget *child,
|
||||||
gboolean expand,
|
gboolean expand,
|
||||||
|
@ -30,7 +30,6 @@
|
|||||||
|
|
||||||
#include "gtkcontainer.h"
|
#include "gtkcontainer.h"
|
||||||
#include "gtkprivate.h"
|
#include "gtkprivate.h"
|
||||||
#include "gtksignal.h"
|
|
||||||
#include "gtkmain.h"
|
#include "gtkmain.h"
|
||||||
#include "gtkmarshalers.h"
|
#include "gtkmarshalers.h"
|
||||||
#include "gtkwindow.h"
|
#include "gtkwindow.h"
|
||||||
@ -111,19 +110,20 @@ extern GObjectNotifyContext *_gtk_widget_child_property_notify_context;
|
|||||||
|
|
||||||
|
|
||||||
/* --- functions --- */
|
/* --- functions --- */
|
||||||
GtkType
|
GType
|
||||||
gtk_container_get_type (void)
|
gtk_container_get_type (void)
|
||||||
{
|
{
|
||||||
static GtkType container_type = 0;
|
static GType container_type = 0;
|
||||||
|
|
||||||
if (!container_type)
|
if (!container_type)
|
||||||
{
|
{
|
||||||
static GTypeInfo container_info = {
|
static const GTypeInfo container_info =
|
||||||
|
{
|
||||||
sizeof (GtkContainerClass),
|
sizeof (GtkContainerClass),
|
||||||
(GBaseInitFunc) gtk_container_base_class_init,
|
(GBaseInitFunc) gtk_container_base_class_init,
|
||||||
(GBaseFinalizeFunc) gtk_container_base_class_finalize,
|
(GBaseFinalizeFunc) gtk_container_base_class_finalize,
|
||||||
(GClassInitFunc) gtk_container_class_init,
|
(GClassInitFunc) gtk_container_class_init,
|
||||||
NULL /* class_destroy */,
|
NULL /* class_finalize */,
|
||||||
NULL /* class_data */,
|
NULL /* class_data */,
|
||||||
sizeof (GtkContainer),
|
sizeof (GtkContainer),
|
||||||
0 /* n_preallocs */,
|
0 /* n_preallocs */,
|
||||||
@ -131,8 +131,9 @@ gtk_container_get_type (void)
|
|||||||
NULL, /* value_table */
|
NULL, /* value_table */
|
||||||
};
|
};
|
||||||
|
|
||||||
container_type = g_type_register_static (GTK_TYPE_WIDGET, "GtkContainer",
|
container_type =
|
||||||
&container_info, G_TYPE_FLAG_ABSTRACT);
|
g_type_register_static (GTK_TYPE_WIDGET, "GtkContainer",
|
||||||
|
&container_info, G_TYPE_FLAG_ABSTRACT);
|
||||||
}
|
}
|
||||||
|
|
||||||
return container_type;
|
return container_type;
|
||||||
@ -220,36 +221,40 @@ gtk_container_class_init (GtkContainerClass *class)
|
|||||||
GTK_TYPE_WIDGET,
|
GTK_TYPE_WIDGET,
|
||||||
G_PARAM_WRITABLE));
|
G_PARAM_WRITABLE));
|
||||||
container_signals[ADD] =
|
container_signals[ADD] =
|
||||||
gtk_signal_new ("add",
|
g_signal_new ("add",
|
||||||
GTK_RUN_FIRST,
|
G_OBJECT_CLASS_TYPE (object_class),
|
||||||
GTK_CLASS_TYPE (object_class),
|
G_SIGNAL_RUN_FIRST,
|
||||||
GTK_SIGNAL_OFFSET (GtkContainerClass, add),
|
G_STRUCT_OFFSET (GtkContainerClass, add),
|
||||||
_gtk_marshal_VOID__OBJECT,
|
NULL, NULL,
|
||||||
GTK_TYPE_NONE, 1,
|
_gtk_marshal_VOID__OBJECT,
|
||||||
GTK_TYPE_WIDGET);
|
G_TYPE_NONE, 1,
|
||||||
|
GTK_TYPE_WIDGET);
|
||||||
container_signals[REMOVE] =
|
container_signals[REMOVE] =
|
||||||
gtk_signal_new ("remove",
|
g_signal_new ("remove",
|
||||||
GTK_RUN_FIRST,
|
G_OBJECT_CLASS_TYPE (object_class),
|
||||||
GTK_CLASS_TYPE (object_class),
|
G_SIGNAL_RUN_FIRST,
|
||||||
GTK_SIGNAL_OFFSET (GtkContainerClass, remove),
|
G_STRUCT_OFFSET (GtkContainerClass, remove),
|
||||||
_gtk_marshal_VOID__OBJECT,
|
NULL, NULL,
|
||||||
GTK_TYPE_NONE, 1,
|
_gtk_marshal_VOID__OBJECT,
|
||||||
GTK_TYPE_WIDGET);
|
G_TYPE_NONE, 1,
|
||||||
|
GTK_TYPE_WIDGET);
|
||||||
container_signals[CHECK_RESIZE] =
|
container_signals[CHECK_RESIZE] =
|
||||||
gtk_signal_new ("check_resize",
|
g_signal_new ("check_resize",
|
||||||
GTK_RUN_LAST,
|
G_OBJECT_CLASS_TYPE (object_class),
|
||||||
GTK_CLASS_TYPE (object_class),
|
G_SIGNAL_RUN_LAST,
|
||||||
GTK_SIGNAL_OFFSET (GtkContainerClass, check_resize),
|
G_STRUCT_OFFSET (GtkContainerClass, check_resize),
|
||||||
_gtk_marshal_VOID__VOID,
|
NULL, NULL,
|
||||||
GTK_TYPE_NONE, 0);
|
_gtk_marshal_VOID__VOID,
|
||||||
|
G_TYPE_NONE, 0);
|
||||||
container_signals[SET_FOCUS_CHILD] =
|
container_signals[SET_FOCUS_CHILD] =
|
||||||
gtk_signal_new ("set-focus-child",
|
g_signal_new ("set-focus-child",
|
||||||
GTK_RUN_FIRST,
|
G_OBJECT_CLASS_TYPE (object_class),
|
||||||
GTK_CLASS_TYPE (object_class),
|
G_SIGNAL_RUN_FIRST,
|
||||||
GTK_SIGNAL_OFFSET (GtkContainerClass, set_focus_child),
|
G_STRUCT_OFFSET (GtkContainerClass, set_focus_child),
|
||||||
_gtk_marshal_VOID__OBJECT,
|
NULL, NULL,
|
||||||
GTK_TYPE_NONE, 1,
|
_gtk_marshal_VOID__OBJECT,
|
||||||
GTK_TYPE_WIDGET);
|
G_TYPE_NONE, 1,
|
||||||
|
GTK_TYPE_WIDGET);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -258,16 +263,16 @@ gtk_container_class_init (GtkContainerClass *class)
|
|||||||
*
|
*
|
||||||
* Returns the type of the children supported by the container.
|
* Returns the type of the children supported by the container.
|
||||||
*
|
*
|
||||||
* Note that this may return %GTK_TYPE_NONE to indicate that no more
|
* Note that this may return %G_TYPE_NONE to indicate that no more
|
||||||
* children can be added, e.g. for a #GtkPaned which already has two
|
* children can be added, e.g. for a #GtkPaned which already has two
|
||||||
* children.
|
* children.
|
||||||
*
|
*
|
||||||
* Return value: a #GtkType.
|
* Return value: a #GType.
|
||||||
**/
|
**/
|
||||||
GtkType
|
GType
|
||||||
gtk_container_child_type (GtkContainer *container)
|
gtk_container_child_type (GtkContainer *container)
|
||||||
{
|
{
|
||||||
GtkType slot;
|
GType slot;
|
||||||
GtkContainerClass *class;
|
GtkContainerClass *class;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_CONTAINER (container), 0);
|
g_return_val_if_fail (GTK_IS_CONTAINER (container), 0);
|
||||||
@ -276,7 +281,7 @@ gtk_container_child_type (GtkContainer *container)
|
|||||||
if (class->child_type)
|
if (class->child_type)
|
||||||
slot = class->child_type (container);
|
slot = class->child_type (container);
|
||||||
else
|
else
|
||||||
slot = GTK_TYPE_NONE;
|
slot = G_TYPE_NONE;
|
||||||
|
|
||||||
return slot;
|
return slot;
|
||||||
}
|
}
|
||||||
@ -572,11 +577,11 @@ gtk_container_add_with_properties (GtkContainer *container,
|
|||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
g_return_if_fail (widget->parent == NULL);
|
g_return_if_fail (widget->parent == NULL);
|
||||||
|
|
||||||
gtk_widget_ref (GTK_WIDGET (container));
|
g_object_ref (container);
|
||||||
gtk_widget_ref (widget);
|
g_object_ref (widget);
|
||||||
gtk_widget_freeze_child_notify (widget);
|
gtk_widget_freeze_child_notify (widget);
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (container), container_signals[ADD], widget);
|
g_signal_emit (container, container_signals[ADD], 0, widget);
|
||||||
if (widget->parent)
|
if (widget->parent)
|
||||||
{
|
{
|
||||||
va_list var_args;
|
va_list var_args;
|
||||||
@ -587,8 +592,8 @@ gtk_container_add_with_properties (GtkContainer *container,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_thaw_child_notify (widget);
|
gtk_widget_thaw_child_notify (widget);
|
||||||
gtk_widget_unref (widget);
|
g_object_unref (widget);
|
||||||
gtk_widget_unref (GTK_WIDGET (container));
|
g_object_unref (container);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -706,14 +711,14 @@ static void
|
|||||||
gtk_container_add_unimplemented (GtkContainer *container,
|
gtk_container_add_unimplemented (GtkContainer *container,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
g_warning ("GtkContainerClass::add not implemented for `%s'", gtk_type_name (GTK_OBJECT_TYPE (container)));
|
g_warning ("GtkContainerClass::add not implemented for `%s'", g_type_name (G_TYPE_FROM_INSTANCE (container)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_container_remove_unimplemented (GtkContainer *container,
|
gtk_container_remove_unimplemented (GtkContainer *container,
|
||||||
GtkWidget *widget)
|
GtkWidget *widget)
|
||||||
{
|
{
|
||||||
g_warning ("GtkContainerClass::remove not implemented for `%s'", gtk_type_name (GTK_OBJECT_TYPE (container)));
|
g_warning ("GtkContainerClass::remove not implemented for `%s'", g_type_name (G_TYPE_FROM_INSTANCE (container)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -874,7 +879,7 @@ gtk_container_add (GtkContainer *container,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (container), container_signals[ADD], widget);
|
g_signal_emit (container, container_signals[ADD], 0, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -897,7 +902,7 @@ gtk_container_remove (GtkContainer *container,
|
|||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
g_return_if_fail (widget->parent == GTK_WIDGET (container));
|
g_return_if_fail (widget->parent == GTK_WIDGET (container));
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (container), container_signals[REMOVE], widget);
|
g_signal_emit (container, container_signals[REMOVE], 0, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1092,7 +1097,7 @@ gtk_container_check_resize (GtkContainer *container)
|
|||||||
{
|
{
|
||||||
g_return_if_fail (GTK_IS_CONTAINER (container));
|
g_return_if_fail (GTK_IS_CONTAINER (container));
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (container), container_signals[CHECK_RESIZE]);
|
g_signal_emit (container, container_signals[CHECK_RESIZE], 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -1214,12 +1219,12 @@ gtk_container_foreach_unmarshal (GtkWidget *child,
|
|||||||
|
|
||||||
/* first argument */
|
/* first argument */
|
||||||
args[0].name = NULL;
|
args[0].name = NULL;
|
||||||
args[0].type = GTK_OBJECT_TYPE (child);
|
args[0].type = G_TYPE_FROM_INSTANCE (child);
|
||||||
GTK_VALUE_OBJECT (args[0]) = GTK_OBJECT (child);
|
GTK_VALUE_OBJECT (args[0]) = GTK_OBJECT (child);
|
||||||
|
|
||||||
/* location for return value */
|
/* location for return value */
|
||||||
args[1].name = NULL;
|
args[1].name = NULL;
|
||||||
args[1].type = GTK_TYPE_NONE;
|
args[1].type = G_TYPE_NONE;
|
||||||
|
|
||||||
fdata->callback (fdata->container, fdata->callback_data, 1, args);
|
fdata->callback (fdata->container, fdata->callback_data, 1, args);
|
||||||
}
|
}
|
||||||
@ -1262,7 +1267,7 @@ gtk_container_set_focus_child (GtkContainer *container,
|
|||||||
if (widget)
|
if (widget)
|
||||||
g_return_if_fail (GTK_IS_WIDGET (widget));
|
g_return_if_fail (GTK_IS_WIDGET (widget));
|
||||||
|
|
||||||
gtk_signal_emit (GTK_OBJECT (container), container_signals[SET_FOCUS_CHILD], widget);
|
g_signal_emit (container, container_signals[SET_FOCUS_CHILD], 0, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1321,7 +1326,7 @@ gtk_container_child_default_composite_name (GtkContainer *container,
|
|||||||
&data);
|
&data);
|
||||||
|
|
||||||
name = g_strdup_printf ("%s-%u",
|
name = g_strdup_printf ("%s-%u",
|
||||||
gtk_type_name (GTK_OBJECT_TYPE (child)),
|
g_type_name (G_TYPE_FROM_INSTANCE (child)),
|
||||||
data.index);
|
data.index);
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
@ -1343,7 +1348,7 @@ _gtk_container_child_composite_name (GtkContainer *container,
|
|||||||
if (!quark_composite_name)
|
if (!quark_composite_name)
|
||||||
quark_composite_name = g_quark_from_static_string ("gtk-composite-name");
|
quark_composite_name = g_quark_from_static_string ("gtk-composite-name");
|
||||||
|
|
||||||
name = gtk_object_get_data_by_id (GTK_OBJECT (child), quark_composite_name);
|
name = g_object_get_qdata (G_OBJECT (child), quark_composite_name);
|
||||||
if (!name)
|
if (!name)
|
||||||
{
|
{
|
||||||
GtkContainerClass *class;
|
GtkContainerClass *class;
|
||||||
@ -1372,10 +1377,10 @@ gtk_container_real_set_focus_child (GtkContainer *container,
|
|||||||
if (child != container->focus_child)
|
if (child != container->focus_child)
|
||||||
{
|
{
|
||||||
if (container->focus_child)
|
if (container->focus_child)
|
||||||
gtk_widget_unref (container->focus_child);
|
g_object_unref (container->focus_child);
|
||||||
container->focus_child = child;
|
container->focus_child = child;
|
||||||
if (container->focus_child)
|
if (container->focus_child)
|
||||||
gtk_widget_ref (container->focus_child);
|
g_object_ref (container->focus_child);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1385,14 +1390,14 @@ gtk_container_real_set_focus_child (GtkContainer *container,
|
|||||||
{
|
{
|
||||||
GtkAdjustment *adjustment;
|
GtkAdjustment *adjustment;
|
||||||
|
|
||||||
adjustment = gtk_object_get_data_by_id (GTK_OBJECT (container), vadjustment_key_id);
|
adjustment = g_object_get_qdata (G_OBJECT (container), vadjustment_key_id);
|
||||||
if (adjustment)
|
if (adjustment)
|
||||||
gtk_adjustment_clamp_page (adjustment,
|
gtk_adjustment_clamp_page (adjustment,
|
||||||
container->focus_child->allocation.y,
|
container->focus_child->allocation.y,
|
||||||
(container->focus_child->allocation.y +
|
(container->focus_child->allocation.y +
|
||||||
container->focus_child->allocation.height));
|
container->focus_child->allocation.height));
|
||||||
|
|
||||||
adjustment = gtk_object_get_data_by_id (GTK_OBJECT (container), hadjustment_key_id);
|
adjustment = g_object_get_qdata (G_OBJECT (container), hadjustment_key_id);
|
||||||
if (adjustment)
|
if (adjustment)
|
||||||
gtk_adjustment_clamp_page (adjustment,
|
gtk_adjustment_clamp_page (adjustment,
|
||||||
container->focus_child->allocation.x,
|
container->focus_child->allocation.x,
|
||||||
@ -1953,8 +1958,8 @@ chain_widget_destroyed (GtkWidget *widget,
|
|||||||
|
|
||||||
chain = g_list_remove (chain, widget);
|
chain = g_list_remove (chain, widget);
|
||||||
|
|
||||||
g_signal_handlers_disconnect_by_func (G_OBJECT (widget),
|
g_signal_handlers_disconnect_by_func (widget,
|
||||||
(gpointer) chain_widget_destroyed,
|
chain_widget_destroyed,
|
||||||
user_data);
|
user_data);
|
||||||
|
|
||||||
g_object_set_data (G_OBJECT (container),
|
g_object_set_data (G_OBJECT (container),
|
||||||
@ -2004,10 +2009,10 @@ gtk_container_set_focus_chain (GtkContainer *container,
|
|||||||
|
|
||||||
chain = g_list_prepend (chain, tmp_list->data);
|
chain = g_list_prepend (chain, tmp_list->data);
|
||||||
|
|
||||||
gtk_signal_connect (GTK_OBJECT (tmp_list->data),
|
g_signal_connect (tmp_list->data,
|
||||||
"destroy",
|
"destroy",
|
||||||
GTK_SIGNAL_FUNC (chain_widget_destroyed),
|
G_CALLBACK (chain_widget_destroyed),
|
||||||
container);
|
container);
|
||||||
|
|
||||||
tmp_list = g_list_next (tmp_list);
|
tmp_list = g_list_next (tmp_list);
|
||||||
}
|
}
|
||||||
@ -2080,8 +2085,8 @@ gtk_container_unset_focus_chain (GtkContainer *container)
|
|||||||
tmp_list = chain;
|
tmp_list = chain;
|
||||||
while (tmp_list != NULL)
|
while (tmp_list != NULL)
|
||||||
{
|
{
|
||||||
g_signal_handlers_disconnect_by_func (G_OBJECT (tmp_list->data),
|
g_signal_handlers_disconnect_by_func (tmp_list->data,
|
||||||
(gpointer) chain_widget_destroyed,
|
chain_widget_destroyed,
|
||||||
container);
|
container);
|
||||||
|
|
||||||
tmp_list = g_list_next (tmp_list);
|
tmp_list = g_list_next (tmp_list);
|
||||||
@ -2100,12 +2105,12 @@ gtk_container_set_focus_vadjustment (GtkContainer *container,
|
|||||||
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
||||||
|
|
||||||
if (adjustment)
|
if (adjustment)
|
||||||
gtk_object_ref (GTK_OBJECT(adjustment));
|
g_object_ref (adjustment);
|
||||||
|
|
||||||
gtk_object_set_data_by_id_full (GTK_OBJECT (container),
|
g_object_set_qdata_full (G_OBJECT (container),
|
||||||
vadjustment_key_id,
|
vadjustment_key_id,
|
||||||
adjustment,
|
adjustment,
|
||||||
(GtkDestroyNotify) gtk_object_unref);
|
g_object_unref);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2125,8 +2130,7 @@ gtk_container_get_focus_vadjustment (GtkContainer *container)
|
|||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
|
g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
|
||||||
|
|
||||||
vadjustment = gtk_object_get_data_by_id (GTK_OBJECT (container),
|
vadjustment = g_object_get_qdata (G_OBJECT (container), vadjustment_key_id);
|
||||||
vadjustment_key_id);
|
|
||||||
|
|
||||||
return vadjustment;
|
return vadjustment;
|
||||||
}
|
}
|
||||||
@ -2140,12 +2144,12 @@ gtk_container_set_focus_hadjustment (GtkContainer *container,
|
|||||||
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
g_return_if_fail (GTK_IS_ADJUSTMENT (adjustment));
|
||||||
|
|
||||||
if (adjustment)
|
if (adjustment)
|
||||||
gtk_object_ref (GTK_OBJECT (adjustment));
|
g_object_ref (adjustment);
|
||||||
|
|
||||||
gtk_object_set_data_by_id_full (GTK_OBJECT (container),
|
g_object_set_qdata_full (G_OBJECT (container),
|
||||||
hadjustment_key_id,
|
hadjustment_key_id,
|
||||||
adjustment,
|
adjustment,
|
||||||
(GtkDestroyNotify) gtk_object_unref);
|
g_object_unref);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2165,8 +2169,7 @@ gtk_container_get_focus_hadjustment (GtkContainer *container)
|
|||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
|
g_return_val_if_fail (GTK_IS_CONTAINER (container), NULL);
|
||||||
|
|
||||||
hadjustment = gtk_object_get_data_by_id (GTK_OBJECT (container),
|
hadjustment = g_object_get_qdata (G_OBJECT (container), hadjustment_key_id);
|
||||||
hadjustment_key_id);
|
|
||||||
|
|
||||||
return hadjustment;
|
return hadjustment;
|
||||||
}
|
}
|
||||||
|
@ -40,11 +40,11 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
#define GTK_TYPE_CONTAINER (gtk_container_get_type ())
|
#define GTK_TYPE_CONTAINER (gtk_container_get_type ())
|
||||||
#define GTK_CONTAINER(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer))
|
#define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer))
|
||||||
#define GTK_CONTAINER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass))
|
#define GTK_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_CONTAINER, GtkContainerClass))
|
||||||
#define GTK_IS_CONTAINER(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_CONTAINER))
|
#define GTK_IS_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_CONTAINER))
|
||||||
#define GTK_IS_CONTAINER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER))
|
#define GTK_IS_CONTAINER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_CONTAINER))
|
||||||
#define GTK_CONTAINER_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_CONTAINER, GtkContainerClass))
|
#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)
|
#define GTK_IS_RESIZE_CONTAINER(widget) (GTK_IS_CONTAINER (widget) && ((GtkContainer*) (widget))->resize_mode != GTK_RESIZE_PARENT)
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ struct _GtkContainerClass
|
|||||||
gpointer callback_data);
|
gpointer callback_data);
|
||||||
void (*set_focus_child) (GtkContainer *container,
|
void (*set_focus_child) (GtkContainer *container,
|
||||||
GtkWidget *widget);
|
GtkWidget *widget);
|
||||||
GtkType (*child_type) (GtkContainer *container);
|
GType (*child_type) (GtkContainer *container);
|
||||||
gchar* (*composite_name) (GtkContainer *container,
|
gchar* (*composite_name) (GtkContainer *container,
|
||||||
GtkWidget *child);
|
GtkWidget *child);
|
||||||
void (*set_child_property) (GtkContainer *container,
|
void (*set_child_property) (GtkContainer *container,
|
||||||
@ -103,7 +103,7 @@ struct _GtkContainerClass
|
|||||||
|
|
||||||
/* Application-level methods */
|
/* Application-level methods */
|
||||||
|
|
||||||
GtkType gtk_container_get_type (void) G_GNUC_CONST;
|
GType gtk_container_get_type (void) G_GNUC_CONST;
|
||||||
void gtk_container_set_border_width (GtkContainer *container,
|
void gtk_container_set_border_width (GtkContainer *container,
|
||||||
guint border_width);
|
guint border_width);
|
||||||
guint gtk_container_get_border_width (GtkContainer *container);
|
guint gtk_container_get_border_width (GtkContainer *container);
|
||||||
@ -159,7 +159,7 @@ GtkAdjustment *gtk_container_get_focus_hadjustment (GtkContainer *container);
|
|||||||
|
|
||||||
void gtk_container_resize_children (GtkContainer *container);
|
void gtk_container_resize_children (GtkContainer *container);
|
||||||
|
|
||||||
GtkType gtk_container_child_type (GtkContainer *container);
|
GType gtk_container_child_type (GtkContainer *container);
|
||||||
|
|
||||||
|
|
||||||
void gtk_container_class_install_child_property (GtkContainerClass *cclass,
|
void gtk_container_class_install_child_property (GtkContainerClass *cclass,
|
||||||
|
@ -35,26 +35,28 @@ static void gtk_hbox_size_allocate (GtkWidget *widget,
|
|||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
|
|
||||||
|
|
||||||
GtkType
|
GType
|
||||||
gtk_hbox_get_type (void)
|
gtk_hbox_get_type (void)
|
||||||
{
|
{
|
||||||
static GtkType hbox_type = 0;
|
static GType hbox_type = 0;
|
||||||
|
|
||||||
if (!hbox_type)
|
if (!hbox_type)
|
||||||
{
|
{
|
||||||
static const GtkTypeInfo hbox_info =
|
static const GTypeInfo hbox_info =
|
||||||
{
|
{
|
||||||
"GtkHBox",
|
|
||||||
sizeof (GtkHBox),
|
|
||||||
sizeof (GtkHBoxClass),
|
sizeof (GtkHBoxClass),
|
||||||
(GtkClassInitFunc) gtk_hbox_class_init,
|
NULL, /* base_init */
|
||||||
(GtkObjectInitFunc) gtk_hbox_init,
|
NULL, /* base_finalize */
|
||||||
/* reserved_1 */ NULL,
|
(GClassInitFunc) gtk_hbox_class_init,
|
||||||
/* reserved_2 */ NULL,
|
NULL, /* class_finalize */
|
||||||
(GtkClassInitFunc) NULL,
|
NULL, /* class_data */
|
||||||
|
sizeof (GtkHBox),
|
||||||
|
0, /* n_preallocs */
|
||||||
|
(GInstanceInitFunc) gtk_hbox_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
hbox_type = gtk_type_unique (GTK_TYPE_BOX, &hbox_info);
|
hbox_type = g_type_register_static (GTK_TYPE_BOX, "GtkHBox",
|
||||||
|
&hbox_info, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return hbox_type;
|
return hbox_type;
|
||||||
@ -82,7 +84,7 @@ gtk_hbox_new (gboolean homogeneous,
|
|||||||
{
|
{
|
||||||
GtkHBox *hbox;
|
GtkHBox *hbox;
|
||||||
|
|
||||||
hbox = gtk_type_new (gtk_hbox_get_type ());
|
hbox = g_object_new (GTK_TYPE_HBOX, NULL);
|
||||||
|
|
||||||
GTK_BOX (hbox)->spacing = spacing;
|
GTK_BOX (hbox)->spacing = spacing;
|
||||||
GTK_BOX (hbox)->homogeneous = homogeneous ? TRUE : FALSE;
|
GTK_BOX (hbox)->homogeneous = homogeneous ? TRUE : FALSE;
|
||||||
|
@ -38,11 +38,11 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
#define GTK_TYPE_HBOX (gtk_hbox_get_type ())
|
#define GTK_TYPE_HBOX (gtk_hbox_get_type ())
|
||||||
#define GTK_HBOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_HBOX, GtkHBox))
|
#define GTK_HBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HBOX, GtkHBox))
|
||||||
#define GTK_HBOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass))
|
#define GTK_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_HBOX, GtkHBoxClass))
|
||||||
#define GTK_IS_HBOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_HBOX))
|
#define GTK_IS_HBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HBOX))
|
||||||
#define GTK_IS_HBOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX))
|
#define GTK_IS_HBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_HBOX))
|
||||||
#define GTK_HBOX_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_HBOX, GtkHBoxClass))
|
#define GTK_HBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_HBOX, GtkHBoxClass))
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GtkHBox GtkHBox;
|
typedef struct _GtkHBox GtkHBox;
|
||||||
@ -59,7 +59,7 @@ struct _GtkHBoxClass
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
GtkType gtk_hbox_get_type (void) G_GNUC_CONST;
|
GType gtk_hbox_get_type (void) G_GNUC_CONST;
|
||||||
GtkWidget* gtk_hbox_new (gboolean homogeneous,
|
GtkWidget* gtk_hbox_new (gboolean homogeneous,
|
||||||
gint spacing);
|
gint spacing);
|
||||||
|
|
||||||
|
@ -35,26 +35,28 @@ static void gtk_vbox_size_allocate (GtkWidget *widget,
|
|||||||
GtkAllocation *allocation);
|
GtkAllocation *allocation);
|
||||||
|
|
||||||
|
|
||||||
GtkType
|
GType
|
||||||
gtk_vbox_get_type (void)
|
gtk_vbox_get_type (void)
|
||||||
{
|
{
|
||||||
static GtkType vbox_type = 0;
|
static GType vbox_type = 0;
|
||||||
|
|
||||||
if (!vbox_type)
|
if (!vbox_type)
|
||||||
{
|
{
|
||||||
static const GtkTypeInfo vbox_info =
|
static const GTypeInfo vbox_info =
|
||||||
{
|
{
|
||||||
"GtkVBox",
|
|
||||||
sizeof (GtkVBox),
|
|
||||||
sizeof (GtkVBoxClass),
|
sizeof (GtkVBoxClass),
|
||||||
(GtkClassInitFunc) gtk_vbox_class_init,
|
NULL, /* base_init */
|
||||||
(GtkObjectInitFunc) gtk_vbox_init,
|
NULL, /* base_finalize */
|
||||||
/* reserved_1 */ NULL,
|
(GClassInitFunc) gtk_vbox_class_init,
|
||||||
/* reserved_2 */ NULL,
|
NULL, /* class_finalize */
|
||||||
(GtkClassInitFunc) NULL,
|
NULL, /* class_data */
|
||||||
|
sizeof (GtkVBox),
|
||||||
|
0, /* n_preallocs */
|
||||||
|
(GInstanceInitFunc) gtk_vbox_init,
|
||||||
};
|
};
|
||||||
|
|
||||||
vbox_type = gtk_type_unique (GTK_TYPE_BOX, &vbox_info);
|
vbox_type = g_type_register_static (GTK_TYPE_BOX, "GtkVBox",
|
||||||
|
&vbox_info, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return vbox_type;
|
return vbox_type;
|
||||||
@ -82,7 +84,7 @@ gtk_vbox_new (gboolean homogeneous,
|
|||||||
{
|
{
|
||||||
GtkVBox *vbox;
|
GtkVBox *vbox;
|
||||||
|
|
||||||
vbox = gtk_type_new (gtk_vbox_get_type ());
|
vbox = g_object_new (GTK_TYPE_VBOX, NULL);
|
||||||
|
|
||||||
GTK_BOX (vbox)->spacing = spacing;
|
GTK_BOX (vbox)->spacing = spacing;
|
||||||
GTK_BOX (vbox)->homogeneous = homogeneous ? TRUE : FALSE;
|
GTK_BOX (vbox)->homogeneous = homogeneous ? TRUE : FALSE;
|
||||||
|
@ -38,11 +38,11 @@ extern "C" {
|
|||||||
|
|
||||||
|
|
||||||
#define GTK_TYPE_VBOX (gtk_vbox_get_type ())
|
#define GTK_TYPE_VBOX (gtk_vbox_get_type ())
|
||||||
#define GTK_VBOX(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_VBOX, GtkVBox))
|
#define GTK_VBOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_VBOX, GtkVBox))
|
||||||
#define GTK_VBOX_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass))
|
#define GTK_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_VBOX, GtkVBoxClass))
|
||||||
#define GTK_IS_VBOX(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_VBOX))
|
#define GTK_IS_VBOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_VBOX))
|
||||||
#define GTK_IS_VBOX_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX))
|
#define GTK_IS_VBOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_VBOX))
|
||||||
#define GTK_VBOX_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), GTK_TYPE_VBOX, GtkVBoxClass))
|
#define GTK_VBOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_VBOX, GtkVBoxClass))
|
||||||
|
|
||||||
|
|
||||||
typedef struct _GtkVBox GtkVBox;
|
typedef struct _GtkVBox GtkVBox;
|
||||||
@ -59,7 +59,7 @@ struct _GtkVBoxClass
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
GtkType gtk_vbox_get_type (void) G_GNUC_CONST;
|
GType gtk_vbox_get_type (void) G_GNUC_CONST;
|
||||||
GtkWidget* gtk_vbox_new (gboolean homogeneous,
|
GtkWidget* gtk_vbox_new (gboolean homogeneous,
|
||||||
gint spacing);
|
gint spacing);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user