summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkalignment.c33
-rw-r--r--gtk/gtkarg.c5
-rw-r--r--gtk/gtkargcollector.c7
-rw-r--r--gtk/gtkarrow.c30
-rw-r--r--gtk/gtkaspectframe.c26
-rw-r--r--gtk/gtkbin.c8
-rw-r--r--gtk/gtkcellrenderer.c12
-rw-r--r--gtk/gtkcellrendererpixbuf.c12
-rw-r--r--gtk/gtkcellrenderertext.c12
-rw-r--r--gtk/gtkcellrenderertextpixbuf.c12
-rw-r--r--gtk/gtkcellrenderertoggle.c12
-rw-r--r--gtk/gtkclist.c6
-rw-r--r--gtk/gtkcombo.c26
-rw-r--r--gtk/gtkcontainer.c12
-rw-r--r--gtk/gtkcurve.c26
-rw-r--r--gtk/gtkhandlebox.c4
-rw-r--r--gtk/gtkimagemenuitem.c12
-rw-r--r--gtk/gtkimcontext.c2
-rw-r--r--gtk/gtkitemfactory.c7
-rw-r--r--gtk/gtklayout.c2
-rw-r--r--gtk/gtklist.c4
-rw-r--r--gtk/gtkmarshal.list101
-rw-r--r--gtk/gtkmarshalers.list101
-rw-r--r--gtk/gtkmenu.c28
-rw-r--r--gtk/gtkobject.c20
-rw-r--r--gtk/gtkoldeditable.c2
-rw-r--r--gtk/gtkoptionmenu.c2
-rw-r--r--gtk/gtktext.c2
-rw-r--r--gtk/gtktextbuffer.c24
-rw-r--r--gtk/gtktextlayout.c6
-rw-r--r--gtk/gtktexttag.c28
-rw-r--r--gtk/gtktexttagtable.c14
-rw-r--r--gtk/gtktextview.c4
-rw-r--r--gtk/gtktipsquery.c4
-rw-r--r--gtk/gtktree.c4
-rw-r--r--gtk/gtktreedatalist.c3
-rw-r--r--gtk/gtktreedatalist.h2
-rw-r--r--gtk/gtktreemodel.c3
-rw-r--r--gtk/gtktreeselection.h1
-rw-r--r--gtk/gtktreeview.c17
-rw-r--r--gtk/gtktreeviewcolumn.c12
-rw-r--r--gtk/gtktypeutils.c33
-rw-r--r--gtk/gtktypeutils.h3
-rw-r--r--gtk/gtkviewport.c2
-rw-r--r--gtk/gtkwidget.c97
-rw-r--r--gtk/gtkwidget.h4
-rw-r--r--gtk/gtkwindow.c4
-rw-r--r--gtk/simple.c34
-rw-r--r--gtk/testgtk.c198
49 files changed, 405 insertions, 618 deletions
diff --git a/gtk/gtkalignment.c b/gtk/gtkalignment.c
index 4aea6a189..c21786baa 100644
--- a/gtk/gtkalignment.c
+++ b/gtk/gtkalignment.c
@@ -48,13 +48,11 @@ static void gtk_alignment_size_allocate (GtkWidget *widget,
static void gtk_alignment_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_alignment_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
GtkType
gtk_alignment_get_type (void)
@@ -166,16 +164,16 @@ gtk_alignment_new (gfloat xalign,
return GTK_WIDGET (alignment);
}
-static void gtk_alignment_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_alignment_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkAlignment *alignment;
-
+
alignment = GTK_ALIGNMENT (object);
-
+
switch (prop_id)
{
case PROP_XALIGN:
@@ -212,16 +210,15 @@ static void gtk_alignment_set_property (GObject *object,
}
}
-static void gtk_alignment_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_alignment_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkAlignment *alignment;
-
+
alignment = GTK_ALIGNMENT (object);
- g_assert (GTK_IS_ALIGNMENT(object));
switch (prop_id)
{
diff --git a/gtk/gtkarg.c b/gtk/gtkarg.c
index 934b4d6ef..20ba7cd02 100644
--- a/gtk/gtkarg.c
+++ b/gtk/gtkarg.c
@@ -549,10 +549,6 @@ gtk_arg_values_equal (const GtkArg *arg1,
case GTK_TYPE_POINTER:
equal = GTK_VALUE_POINTER (*arg1) == GTK_VALUE_POINTER (*arg2);
break;
- case GTK_TYPE_SIGNAL:
- equal = (GTK_VALUE_SIGNAL (*arg1).f == GTK_VALUE_SIGNAL (*arg2).f &&
- GTK_VALUE_SIGNAL (*arg1).d == GTK_VALUE_SIGNAL (*arg2).d);
- break;
default:
g_warning ("gtk_arg_values_equal() used with unknown type `%s'", gtk_type_name (arg1->type));
equal = FALSE;
@@ -630,7 +626,6 @@ gtk_arg_to_valueloc (GtkArg *arg,
p_pointer = value_pointer;
*p_pointer = GTK_VALUE_POINTER (*arg);
break;
- case GTK_TYPE_SIGNAL:
case GTK_TYPE_NONE:
case GTK_TYPE_INVALID:
/* it doesn't make much sense to retrive these values,
diff --git a/gtk/gtkargcollector.c b/gtk/gtkargcollector.c
index 32765018b..47d43b08e 100644
--- a/gtk/gtkargcollector.c
+++ b/gtk/gtkargcollector.c
@@ -112,13 +112,6 @@ G_STMT_START { \
GTK_VALUE_BOXED (*arg) = va_arg (var_args, gpointer); \
break; \
\
- /* structured types \
- */ \
- case GTK_TYPE_SIGNAL: \
- GTK_VALUE_SIGNAL (*arg).f = va_arg (var_args, GtkSignalFunc); \
- GTK_VALUE_SIGNAL (*arg).d = va_arg (var_args, gpointer); \
- break; \
- \
/* we do some extra sanity checking when collecting objects, \
* i.e. if the object pointer is not NULL, we check whether we \
* actually got an object pointer within the desired class branch. \
diff --git a/gtk/gtkarrow.c b/gtk/gtkarrow.c
index 2252cbbd2..69859b344 100644
--- a/gtk/gtkarrow.c
+++ b/gtk/gtkarrow.c
@@ -46,13 +46,11 @@ static gint gtk_arrow_expose (GtkWidget *widget,
static void gtk_arrow_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_arrow_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
GtkType
gtk_arrow_get_type (void)
@@ -113,14 +111,14 @@ gtk_arrow_class_init (GtkArrowClass *class)
widget_class->expose_event = gtk_arrow_expose;
}
-static void gtk_arrow_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_arrow_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkArrow *arrow;
-
+
arrow = GTK_ARROW (object);
switch (prop_id)
@@ -142,14 +140,14 @@ static void gtk_arrow_set_property (GObject *object,
}
-static void gtk_arrow_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_arrow_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkArrow *arrow;
-
+
arrow = GTK_ARROW (object);
switch (prop_id)
{
diff --git a/gtk/gtkaspectframe.c b/gtk/gtkaspectframe.c
index 604b4fbc2..8d2a9bfd8 100644
--- a/gtk/gtkaspectframe.c
+++ b/gtk/gtkaspectframe.c
@@ -45,13 +45,11 @@ static void gtk_aspect_frame_init (GtkAspectFrame *aspe
static void gtk_aspect_frame_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_aspect_frame_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_aspect_frame_compute_child_allocation (GtkFrame *frame,
GtkAllocation *child_allocation);
@@ -142,11 +140,11 @@ gtk_aspect_frame_init (GtkAspectFrame *aspect_frame)
aspect_frame->obey_child = TRUE;
}
-static void gtk_aspect_frame_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_aspect_frame_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkAspectFrame *aspect_frame = GTK_ASPECT_FRAME (object);
@@ -187,11 +185,11 @@ static void gtk_aspect_frame_set_property (GObject *object,
}
}
-static void gtk_aspect_frame_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_aspect_frame_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkAspectFrame *aspect_frame = GTK_ASPECT_FRAME (object);
diff --git a/gtk/gtkbin.c b/gtk/gtkbin.c
index ecaff82ab..83d45f94e 100644
--- a/gtk/gtkbin.c
+++ b/gtk/gtkbin.c
@@ -195,10 +195,10 @@ gtk_bin_add (GtkContainer *container,
g_warning ("Attempting to add a widget with type %s to a %s, "
"but as a GtkBin subclass a %s can only contain one widget at a time; "
"it already contains a widget of type %s",
- g_type_name (G_TYPE_FROM_INSTANCE (child)),
- g_type_name (G_TYPE_FROM_INSTANCE (bin)),
- g_type_name (G_TYPE_FROM_INSTANCE (bin)),
- g_type_name (G_TYPE_FROM_INSTANCE (bin->child)));
+ g_type_name (G_OBJECT_TYPE (child)),
+ g_type_name (G_OBJECT_TYPE (bin)),
+ g_type_name (G_OBJECT_TYPE (bin)),
+ g_type_name (G_OBJECT_TYPE (bin->child)));
return;
}
diff --git a/gtk/gtkcellrenderer.c b/gtk/gtkcellrenderer.c
index 99fcc0945..3bf189324 100644
--- a/gtk/gtkcellrenderer.c
+++ b/gtk/gtkcellrenderer.c
@@ -25,13 +25,11 @@ static void gtk_cell_renderer_class_init (GtkCellRendererClass *class);
static void gtk_cell_renderer_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
enum {
@@ -153,8 +151,7 @@ static void
gtk_cell_renderer_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRenderer *cell = GTK_CELL_RENDERER (object);
@@ -186,8 +183,7 @@ static void
gtk_cell_renderer_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRenderer *cell = GTK_CELL_RENDERER (object);
diff --git a/gtk/gtkcellrendererpixbuf.c b/gtk/gtkcellrendererpixbuf.c
index 5f58d65e6..67db58356 100644
--- a/gtk/gtkcellrendererpixbuf.c
+++ b/gtk/gtkcellrendererpixbuf.c
@@ -24,13 +24,11 @@
static void gtk_cell_renderer_pixbuf_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_pixbuf_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_pixbuf_init (GtkCellRendererPixbuf *celltext);
static void gtk_cell_renderer_pixbuf_class_init (GtkCellRendererPixbufClass *class);
static void gtk_cell_renderer_pixbuf_get_size (GtkCellRenderer *cell,
@@ -109,8 +107,7 @@ static void
gtk_cell_renderer_pixbuf_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererPixbuf *cellpixbuf = GTK_CELL_RENDERER_PIXBUF (object);
@@ -131,8 +128,7 @@ static void
gtk_cell_renderer_pixbuf_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GdkPixbuf *pixbuf;
GtkCellRendererPixbuf *cellpixbuf = GTK_CELL_RENDERER_PIXBUF (object);
diff --git a/gtk/gtkcellrenderertext.c b/gtk/gtkcellrenderertext.c
index de86b4b0d..8e297cd84 100644
--- a/gtk/gtkcellrenderertext.c
+++ b/gtk/gtkcellrenderertext.c
@@ -28,13 +28,11 @@ static void gtk_cell_renderer_text_finalize (GObject *object)
static void gtk_cell_renderer_text_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_text_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_text_get_size (GtkCellRenderer *cell,
GtkWidget *widget,
gint *width,
@@ -384,8 +382,7 @@ static void
gtk_cell_renderer_text_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererText *celltext = GTK_CELL_RENDERER_TEXT (object);
@@ -655,8 +652,7 @@ static void
gtk_cell_renderer_text_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererText *celltext = GTK_CELL_RENDERER_TEXT (object);
diff --git a/gtk/gtkcellrenderertextpixbuf.c b/gtk/gtkcellrenderertextpixbuf.c
index 08092e8ca..9be2e1530 100644
--- a/gtk/gtkcellrenderertextpixbuf.c
+++ b/gtk/gtkcellrenderertextpixbuf.c
@@ -35,13 +35,11 @@ enum {
static void gtk_cell_renderer_text_pixbuf_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_text_pixbuf_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_text_pixbuf_init (GtkCellRendererTextPixbuf *celltextpixbuf);
static void gtk_cell_renderer_text_pixbuf_class_init (GtkCellRendererTextPixbufClass *class);
static void gtk_cell_renderer_text_pixbuf_get_size (GtkCellRenderer *cell,
@@ -176,8 +174,7 @@ static void
gtk_cell_renderer_text_pixbuf_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererTextPixbuf *celltextpixbuf = GTK_CELL_RENDERER_TEXT_PIXBUF (object);
@@ -221,8 +218,7 @@ static void
gtk_cell_renderer_text_pixbuf_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererTextPixbuf *celltextpixbuf = GTK_CELL_RENDERER_TEXT_PIXBUF (object);
diff --git a/gtk/gtkcellrenderertoggle.c b/gtk/gtkcellrenderertoggle.c
index 9e1d0f541..66f20ecca 100644
--- a/gtk/gtkcellrenderertoggle.c
+++ b/gtk/gtkcellrenderertoggle.c
@@ -25,13 +25,11 @@
static void gtk_cell_renderer_toggle_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_toggle_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_cell_renderer_toggle_init (GtkCellRendererToggle *celltext);
static void gtk_cell_renderer_toggle_class_init (GtkCellRendererToggleClass *class);
static void gtk_cell_renderer_toggle_get_size (GtkCellRenderer *cell,
@@ -152,8 +150,7 @@ static void
gtk_cell_renderer_toggle_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererToggle *celltoggle = GTK_CELL_RENDERER_TOGGLE (object);
@@ -176,8 +173,7 @@ static void
gtk_cell_renderer_toggle_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkCellRendererToggle *celltoggle = GTK_CELL_RENDERER_TOGGLE (object);
diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c
index 334df0ce1..f5cd66157 100644
--- a/gtk/gtkclist.c
+++ b/gtk/gtkclist.c
@@ -607,7 +607,7 @@ gtk_clist_class_init (GtkCListClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkCListClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
clist_signals[SELECT_ROW] =
@@ -615,7 +615,7 @@ gtk_clist_class_init (GtkCListClass *klass)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkCListClass, select_row),
- gtk_marshal_VOID__INT_INT_POINTER,
+ gtk_marshal_VOID__INT_INT_BOXED,
GTK_TYPE_NONE, 3,
GTK_TYPE_INT,
GTK_TYPE_INT,
@@ -625,7 +625,7 @@ gtk_clist_class_init (GtkCListClass *klass)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkCListClass, unselect_row),
- gtk_marshal_VOID__INT_INT_POINTER,
+ gtk_marshal_VOID__INT_INT_BOXED,
GTK_TYPE_NONE, 3, GTK_TYPE_INT,
GTK_TYPE_INT, GTK_TYPE_GDK_EVENT);
clist_signals[ROW_MOVE] =
diff --git a/gtk/gtkcombo.c b/gtk/gtkcombo.c
index 02914818c..020ab7f28 100644
--- a/gtk/gtkcombo.c
+++ b/gtk/gtkcombo.c
@@ -105,13 +105,11 @@ static void gtk_combo_size_allocate (GtkWidget *widget,
static void gtk_combo_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_combo_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static GtkHBoxClass *parent_class = NULL;
static void
@@ -997,11 +995,11 @@ gtk_combo_disable_activate (GtkCombo* combo)
}
}
-static void gtk_combo_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_combo_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkCombo *combo = GTK_COMBO (object);
@@ -1026,11 +1024,11 @@ static void gtk_combo_set_property (GObject *object,
}
-static void gtk_combo_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_combo_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkCombo *combo = GTK_COMBO (object);
diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c
index d32eb5297..8a6295781 100644
--- a/gtk/gtkcontainer.c
+++ b/gtk/gtkcontainer.c
@@ -192,7 +192,7 @@ gtk_container_class_init (GtkContainerClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkContainerClass, add),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
container_signals[REMOVE] =
@@ -200,7 +200,7 @@ gtk_container_class_init (GtkContainerClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkContainerClass, remove),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
container_signals[CHECK_RESIZE] =
@@ -223,7 +223,7 @@ gtk_container_class_init (GtkContainerClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkContainerClass, set_focus_child),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
}
@@ -741,9 +741,9 @@ gtk_container_add (GtkContainer *container,
{
g_warning ("Attempting to add a widget with type %s to a container of "
"type %s, but the widget is already inside a container of type %s",
- g_type_name (G_TYPE_FROM_INSTANCE (widget)),
- g_type_name (G_TYPE_FROM_INSTANCE (container)),
- g_type_name (G_TYPE_FROM_INSTANCE (widget->parent)));
+ g_type_name (G_OBJECT_TYPE (widget)),
+ g_type_name (G_OBJECT_TYPE (container)),
+ g_type_name (G_OBJECT_TYPE (widget->parent)));
return;
}
diff --git a/gtk/gtkcurve.c b/gtk/gtkcurve.c
index 2b0b7c8bc..8954d9e56 100644
--- a/gtk/gtkcurve.c
+++ b/gtk/gtkcurve.c
@@ -66,13 +66,11 @@ static void gtk_curve_init (GtkCurve *curve);
static void gtk_curve_get_property (GObject *object,
guint param_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_curve_set_property (GObject *object,
guint param_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_curve_finalize (GObject *object);
static gint gtk_curve_graph_events (GtkWidget *widget,
GdkEvent *event,
@@ -201,11 +199,11 @@ gtk_curve_init (GtkCurve *curve)
gtk_curve_size_graph (curve);
}
-static void gtk_curve_set_property (GObject *object,
- guint prop_id,
- const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_curve_set_property (GObject *object,
+ guint prop_id,
+ const GValue *value,
+ GParamSpec *pspec)
{
GtkCurve *curve = GTK_CURVE (object);
@@ -236,11 +234,11 @@ static void gtk_curve_set_property (GObject *object,
}
}
-static void gtk_curve_get_property (GObject *object,
- guint prop_id,
- GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+static void
+gtk_curve_get_property (GObject *object,
+ guint prop_id,
+ GValue *value,
+ GParamSpec *pspec)
{
GtkCurve *curve = GTK_CURVE (object);
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index d9095f9f2..00ca124d7 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -203,7 +203,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkHandleBoxClass, child_attached),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
handle_box_signals[SIGNAL_CHILD_DETACHED] =
@@ -211,7 +211,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkHandleBoxClass, child_detached),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
}
diff --git a/gtk/gtkimagemenuitem.c b/gtk/gtkimagemenuitem.c
index 621a9cdc2..2130759fd 100644
--- a/gtk/gtkimagemenuitem.c
+++ b/gtk/gtkimagemenuitem.c
@@ -52,13 +52,11 @@ static void gtk_image_menu_item_forall (GtkContainer *container,
static void gtk_image_menu_item_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_image_menu_item_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
enum {
@@ -143,8 +141,7 @@ static void
gtk_image_menu_item_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkImageMenuItem *image_menu_item = GTK_IMAGE_MENU_ITEM (object);
@@ -179,8 +176,7 @@ static void
gtk_image_menu_item_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkImageMenuItem *image_menu_item = GTK_IMAGE_MENU_ITEM (object);
diff --git a/gtk/gtkimcontext.c b/gtk/gtkimcontext.c
index 7c7246076..371985e9f 100644
--- a/gtk/gtkimcontext.c
+++ b/gtk/gtkimcontext.c
@@ -104,7 +104,7 @@ gtk_im_context_class_init (GtkIMContextClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkIMContextClass, commit),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__STRING,
GTK_TYPE_NONE, 1,
GTK_TYPE_STRING);
}
diff --git a/gtk/gtkitemfactory.c b/gtk/gtkitemfactory.c
index f0aecf338..c1b3da1b1 100644
--- a/gtk/gtkitemfactory.c
+++ b/gtk/gtkitemfactory.c
@@ -596,10 +596,9 @@ gtk_item_factory_construct (GtkItemFactory *ifactory,
ifactory->accel_group = gtk_accel_group_new ();
ifactory->path = g_strdup (path);
- ifactory->widget =
- gtk_widget_new (container_type,
- "GtkObject::signal::destroy", gtk_widget_destroyed, &ifactory->widget,
- NULL);
+ ifactory->widget = g_object_connect (gtk_widget_new (container_type, NULL),
+ "signal::destroy", gtk_widget_destroyed, &ifactory->widget,
+ NULL);
gtk_object_ref (GTK_OBJECT (ifactory));
gtk_object_sink (GTK_OBJECT (ifactory));
diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c
index 48bfa2ec7..a80ceac43 100644
--- a/gtk/gtklayout.c
+++ b/gtk/gtklayout.c
@@ -397,7 +397,7 @@ gtk_layout_class_init (GtkLayoutClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkLayoutClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
}
diff --git a/gtk/gtklist.c b/gtk/gtklist.c
index a756ff3e0..7d0ee82b8 100644
--- a/gtk/gtklist.c
+++ b/gtk/gtklist.c
@@ -255,7 +255,7 @@ gtk_list_class_init (GtkListClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkListClass, select_child),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
list_signals[UNSELECT_CHILD] =
@@ -263,7 +263,7 @@ gtk_list_class_init (GtkListClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkListClass, unselect_child),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
diff --git a/gtk/gtkmarshal.list b/gtk/gtkmarshal.list
index 96579a2d5..5d6cd91cf 100644
--- a/gtk/gtkmarshal.list
+++ b/gtk/gtkmarshal.list
@@ -22,112 +22,49 @@
# BOOL deprecated alias for BOOLEAN
BOOLEAN:BOXED
-BOOLEAN:BOXED,BOXED
-BOOLEAN:BOXED,BOXED,INT
-BOOLEAN:POINTER
-BOOLEAN:POINTER,POINTER
-BOOLEAN:POINTER,INT,INT
-BOOLEAN:POINTER,INT,INT,UINT
-BOOLEAN:POINTER,POINTER,INT
-BOOLEAN:POINTER,POINTER,INT,INT
-BOOLEAN:POINTER,STRING,STRING,POINTER
+BOOLEAN:BOXED,INT,INT,UINT
+BOOLEAN:OBJECT,STRING,STRING,BOXED
BOOLEAN:VOID
-BOXED:BOXED
ENUM:ENUM
-INT:INT
-INT:BOXED
INT:OBJECT,BOXED,BOXED
INT:POINTER
-INT:POINTER,CHAR,CHAR
-INT:VOID
-POINTER:POINTER
-POINTER:POINTER,INT
-POINTER:VOID
+NONE:BOOL
+NONE:INT
+NONE:INT,INT
+NONE:NONE
+NONE:POINTER
+NONE:STRING,INT,POINTER
VOID:BOOLEAN
VOID:BOXED
VOID:BOXED,BOXED
-VOID:BOXED,BOXED,BOOLEAN
-VOID:BOXED,STRING,INT
-VOID:BOXED,INT,POINTER
+VOID:BOXED,BOXED,UINT,UINT
+VOID:BOXED,INT,INT,BOXED,UINT,UINT
VOID:BOXED,OBJECT
+VOID:BOXED,STRING,INT
+VOID:BOXED,UINT
VOID:BOXED,UINT,FLAGS
+VOID:BOXED,UINT,UINT
VOID:ENUM
VOID:ENUM,FLOAT
-VOID:ENUM,FLOAT,BOOLEAN
+VOID:ENUM,FLOAT,BOOL
+VOID:ENUM,INT
VOID:ENUM,INT,BOOLEAN
VOID:INT
VOID:INT,INT
+VOID:INT,INT,BOXED
VOID:INT,INT,INT
-VOID:INT,INT,INT,INT
-VOID:INT,INT,POINTER
VOID:OBJECT
-VOID:OBJECT,BOXED,BOXED
VOID:OBJECT,BOOLEAN
+VOID:OBJECT,BOXED,BOXED
VOID:OBJECT,INT,INT
-VOID:ENUM,INT
+VOID:OBJECT,OBJECT
+VOID:OBJECT,STRING,STRING
VOID:POINTER
-VOID:POINTER,BOOLEAN
VOID:POINTER,INT
-VOID:POINTER,INT,INT,POINTER,UINT,UINT
-VOID:POINTER,INT,POINTER
-VOID:POINTER,POINTER,BOOLEAN
-VOID:POINTER,POINTER,INT
-VOID:POINTER,POINTER,INT,BOOLEAN
-VOID:POINTER,POINTER,INT,INT
VOID:POINTER,POINTER,POINTER
-VOID:POINTER,POINTER,UINT,UINT
-VOID:POINTER,STRING,STRING
VOID:POINTER,UINT
-VOID:POINTER,UINT,ENUM
-VOID:POINTER,UINT,UINT
VOID:STRING
VOID:STRING,INT,POINTER
-VOID:STRING,POINTER
-VOID:UINT
VOID:UINT,BOXED,UINT,FLAGS,FLAGS
-VOID:UINT,POINTER,UINT,ENUM,ENUM,POINTER
-VOID:UINT,POINTER,UINT,UINT,ENUM
VOID:UINT,STRING
VOID:VOID
-
-# deprecated, compatibility aliases:
-BOOL:NONE
-BOOL:POINTER
-BOOL:POINTER,INT,INT
-BOOL:POINTER,INT,INT,UINT
-BOOL:POINTER,POINTER,INT,INT
-BOOL:POINTER,STRING,STRING,POINTER
-INT:NONE
-POINTER:NONE
-NONE:BOOL
-NONE:BOXED
-NONE:ENUM
-NONE:ENUM,FLOAT
-NONE:ENUM,FLOAT,BOOL
-NONE:INT
-NONE:INT,INT
-NONE:INT,INT,INT
-NONE:INT,INT,POINTER
-NONE:NONE
-NONE:OBJECT
-NONE:POINTER
-NONE:POINTER,INT
-NONE:POINTER,INT,INT,POINTER,UINT,UINT
-NONE:POINTER,INT,POINTER
-NONE:POINTER,POINTER
-NONE:POINTER,POINTER,INT
-NONE:POINTER,POINTER,INT,INT
-NONE:POINTER,POINTER,POINTER
-NONE:POINTER,POINTER,UINT,UINT
-NONE:POINTER,STRING,STRING
-NONE:POINTER,UINT
-NONE:POINTER,UINT,ENUM
-NONE:POINTER,UINT,UINT
-NONE:STRING
-NONE:STRING,INT,POINTER
-NONE:STRING,POINTER
-NONE:UINT
-NONE:UINT,POINTER,UINT,ENUM,ENUM,POINTER
-NONE:UINT,POINTER,UINT,UINT,ENUM
-NONE:UINT,STRING
-VOID:ENUM,FLOAT,BOOL
diff --git a/gtk/gtkmarshalers.list b/gtk/gtkmarshalers.list
index 96579a2d5..5d6cd91cf 100644
--- a/gtk/gtkmarshalers.list
+++ b/gtk/gtkmarshalers.list
@@ -22,112 +22,49 @@
# BOOL deprecated alias for BOOLEAN
BOOLEAN:BOXED
-BOOLEAN:BOXED,BOXED
-BOOLEAN:BOXED,BOXED,INT
-BOOLEAN:POINTER
-BOOLEAN:POINTER,POINTER
-BOOLEAN:POINTER,INT,INT
-BOOLEAN:POINTER,INT,INT,UINT
-BOOLEAN:POINTER,POINTER,INT
-BOOLEAN:POINTER,POINTER,INT,INT
-BOOLEAN:POINTER,STRING,STRING,POINTER
+BOOLEAN:BOXED,INT,INT,UINT
+BOOLEAN:OBJECT,STRING,STRING,BOXED
BOOLEAN:VOID
-BOXED:BOXED
ENUM:ENUM
-INT:INT
-INT:BOXED
INT:OBJECT,BOXED,BOXED
INT:POINTER
-INT:POINTER,CHAR,CHAR
-INT:VOID
-POINTER:POINTER
-POINTER:POINTER,INT
-POINTER:VOID
+NONE:BOOL
+NONE:INT
+NONE:INT,INT
+NONE:NONE
+NONE:POINTER
+NONE:STRING,INT,POINTER
VOID:BOOLEAN
VOID:BOXED
VOID:BOXED,BOXED
-VOID:BOXED,BOXED,BOOLEAN
-VOID:BOXED,STRING,INT
-VOID:BOXED,INT,POINTER
+VOID:BOXED,BOXED,UINT,UINT
+VOID:BOXED,INT,INT,BOXED,UINT,UINT
VOID:BOXED,OBJECT
+VOID:BOXED,STRING,INT
+VOID:BOXED,UINT
VOID:BOXED,UINT,FLAGS
+VOID:BOXED,UINT,UINT
VOID:ENUM
VOID:ENUM,FLOAT
-VOID:ENUM,FLOAT,BOOLEAN
+VOID:ENUM,FLOAT,BOOL
+VOID:ENUM,INT
VOID:ENUM,INT,BOOLEAN
VOID:INT
VOID:INT,INT
+VOID:INT,INT,BOXED
VOID:INT,INT,INT
-VOID:INT,INT,INT,INT
-VOID:INT,INT,POINTER
VOID:OBJECT
-VOID:OBJECT,BOXED,BOXED
VOID:OBJECT,BOOLEAN
+VOID:OBJECT,BOXED,BOXED
VOID:OBJECT,INT,INT
-VOID:ENUM,INT
+VOID:OBJECT,OBJECT
+VOID:OBJECT,STRING,STRING
VOID:POINTER
-VOID:POINTER,BOOLEAN
VOID:POINTER,INT
-VOID:POINTER,INT,INT,POINTER,UINT,UINT
-VOID:POINTER,INT,POINTER
-VOID:POINTER,POINTER,BOOLEAN
-VOID:POINTER,POINTER,INT
-VOID:POINTER,POINTER,INT,BOOLEAN
-VOID:POINTER,POINTER,INT,INT
VOID:POINTER,POINTER,POINTER
-VOID:POINTER,POINTER,UINT,UINT
-VOID:POINTER,STRING,STRING
VOID:POINTER,UINT
-VOID:POINTER,UINT,ENUM
-VOID:POINTER,UINT,UINT
VOID:STRING
VOID:STRING,INT,POINTER
-VOID:STRING,POINTER
-VOID:UINT
VOID:UINT,BOXED,UINT,FLAGS,FLAGS
-VOID:UINT,POINTER,UINT,ENUM,ENUM,POINTER
-VOID:UINT,POINTER,UINT,UINT,ENUM
VOID:UINT,STRING
VOID:VOID
-
-# deprecated, compatibility aliases:
-BOOL:NONE
-BOOL:POINTER
-BOOL:POINTER,INT,INT
-BOOL:POINTER,INT,INT,UINT
-BOOL:POINTER,POINTER,INT,INT
-BOOL:POINTER,STRING,STRING,POINTER
-INT:NONE
-POINTER:NONE
-NONE:BOOL
-NONE:BOXED
-NONE:ENUM
-NONE:ENUM,FLOAT
-NONE:ENUM,FLOAT,BOOL
-NONE:INT
-NONE:INT,INT
-NONE:INT,INT,INT
-NONE:INT,INT,POINTER
-NONE:NONE
-NONE:OBJECT
-NONE:POINTER
-NONE:POINTER,INT
-NONE:POINTER,INT,INT,POINTER,UINT,UINT
-NONE:POINTER,INT,POINTER
-NONE:POINTER,POINTER
-NONE:POINTER,POINTER,INT
-NONE:POINTER,POINTER,INT,INT
-NONE:POINTER,POINTER,POINTER
-NONE:POINTER,POINTER,UINT,UINT
-NONE:POINTER,STRING,STRING
-NONE:POINTER,UINT
-NONE:POINTER,UINT,ENUM
-NONE:POINTER,UINT,UINT
-NONE:STRING
-NONE:STRING,INT,POINTER
-NONE:STRING,POINTER
-NONE:UINT
-NONE:UINT,POINTER,UINT,ENUM,ENUM,POINTER
-NONE:UINT,POINTER,UINT,UINT,ENUM
-NONE:UINT,STRING
-VOID:ENUM,FLOAT,BOOL
diff --git a/gtk/gtkmenu.c b/gtk/gtkmenu.c
index b7b01a7f5..0f49d0949 100644
--- a/gtk/gtkmenu.c
+++ b/gtk/gtkmenu.c
@@ -239,12 +239,13 @@ gtk_menu_init (GtkMenu *menu)
menu->position_func_data = NULL;
menu->toggle_size = 0;
- menu->toplevel = gtk_widget_new (GTK_TYPE_WINDOW,
- "type", GTK_WINDOW_POPUP,
- "signal::event", gtk_menu_window_event, menu,
- "signal::destroy", gtk_widget_destroyed, &menu->toplevel,
- "child", menu,
- NULL);
+ menu->toplevel = g_object_connect (gtk_widget_new (GTK_TYPE_WINDOW,
+ "type", GTK_WINDOW_POPUP,
+ "child", menu,
+ NULL),
+ "signal::event", gtk_menu_window_event, menu,
+ "signal::destroy", gtk_widget_destroyed, &menu->toplevel,
+ NULL);
gtk_window_set_policy (GTK_WINDOW (menu->toplevel),
FALSE, FALSE, TRUE);
@@ -836,10 +837,11 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
GtkWidget *attach_widget;
gchar *title;
- menu->tearoff_window = gtk_widget_new (GTK_TYPE_WINDOW,
- "type", GTK_WINDOW_TOPLEVEL,
- "signal::destroy", gtk_widget_destroyed, &menu->tearoff_window,
- NULL);
+ menu->tearoff_window = g_object_connect (gtk_widget_new (GTK_TYPE_WINDOW,
+ "type", GTK_WINDOW_TOPLEVEL,
+ NULL),
+ "signal::destroy", gtk_widget_destroyed, &menu->tearoff_window,
+ NULL);
gtk_window_set_type_hint (GTK_WINDOW (menu->tearoff_window),
GDK_WINDOW_TYPE_HINT_MENU);
gtk_widget_set_app_paintable (menu->tearoff_window, TRUE);
@@ -883,9 +885,9 @@ gtk_menu_set_tearoff_state (GtkMenu *menu,
MENU_SCROLL_STEP,
height/2,
height));
- gtk_signal_connect (GTK_OBJECT (menu->tearoff_adjustment), "value_changed",
- gtk_menu_scrollbar_changed,
- menu);
+ g_object_connect (GTK_OBJECT (menu->tearoff_adjustment),
+ "signal::value_changed", gtk_menu_scrollbar_changed, menu,
+ NULL);
menu->tearoff_scrollbar = gtk_vscrollbar_new (menu->tearoff_adjustment);
gtk_box_pack_end (GTK_BOX (menu->tearoff_hbox),
diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c
index 3931af9c2..272eef2f8 100644
--- a/gtk/gtkobject.c
+++ b/gtk/gtkobject.c
@@ -50,13 +50,11 @@ static void gtk_object_init (GtkObject *object,
static void gtk_object_set_property (GObject *object,
guint property_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_object_get_property (GObject *object,
guint property_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_object_shutdown (GObject *object);
static void gtk_object_real_destroy (GtkObject *object);
static void gtk_object_finalize (GObject *object);
@@ -175,8 +173,7 @@ static void
gtk_arg_proxy_set_property (GObject *object,
guint property_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkObjectClass *class = g_type_class_peek (pspec->owner_type);
GtkArg arg;
@@ -194,8 +191,7 @@ static void
gtk_arg_proxy_get_property (GObject *object,
guint property_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkObjectClass *class = g_type_class_peek (pspec->owner_type);
GtkArg arg;
@@ -413,8 +409,7 @@ static void
gtk_object_set_property (GObject *object,
guint property_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
switch (property_id)
{
@@ -431,14 +426,11 @@ static void
gtk_object_get_property (GObject *object,
guint property_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
switch (property_id)
{
case PROP_USER_DATA:
- g_return_if_fail (trailer != NULL);
-
g_value_set_pointer (value, gtk_object_get_user_data (GTK_OBJECT (object)));
break;
default:
diff --git a/gtk/gtkoldeditable.c b/gtk/gtkoldeditable.c
index ee3bdbb79..6a0c8a0f2 100644
--- a/gtk/gtkoldeditable.c
+++ b/gtk/gtkoldeditable.c
@@ -220,7 +220,7 @@ gtk_old_editable_class_init (GtkOldEditableClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkOldEditableClass, insert_text),
- gtk_marshal_NONE__POINTER_INT_POINTER,
+ gtk_marshal_NONE__STRING_INT_POINTER,
GTK_TYPE_NONE,
3,
GTK_TYPE_STRING,
diff --git a/gtk/gtkoptionmenu.c b/gtk/gtkoptionmenu.c
index 9d9a25996..402739421 100644
--- a/gtk/gtkoptionmenu.c
+++ b/gtk/gtkoptionmenu.c
@@ -121,7 +121,7 @@ gtk_option_menu_class_init (GtkOptionMenuClass *class)
signals[CHANGED] =
g_signal_newc ("changed",
- G_TYPE_FROM_CLASS (class),
+ G_OBJECT_CLASS_TYPE (class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkOptionMenuClass, changed),
NULL,
diff --git a/gtk/gtktext.c b/gtk/gtktext.c
index 95aef29b8..c54cd6930 100644
--- a/gtk/gtktext.c
+++ b/gtk/gtktext.c
@@ -606,7 +606,7 @@ gtk_text_class_init (GtkTextClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTextClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
}
diff --git a/gtk/gtktextbuffer.c b/gtk/gtktextbuffer.c
index b2052f609..4440ee085 100644
--- a/gtk/gtktextbuffer.c
+++ b/gtk/gtktextbuffer.c
@@ -158,7 +158,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[INSERT_TEXT] =
g_signal_newc ("insert_text",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, insert_text),
NULL,
@@ -176,7 +176,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[INSERT_PIXBUF] =
g_signal_newc ("insert_pixbuf",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, insert_pixbuf),
NULL,
@@ -192,7 +192,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[INSERT_CHILD_ANCHOR] =
g_signal_newc ("insert_child_anchor",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, insert_child_anchor),
NULL,
@@ -208,7 +208,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[DELETE_RANGE] =
g_signal_newc ("delete_range",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, delete_range),
NULL,
@@ -225,7 +225,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[CHANGED] =
g_signal_newc ("changed",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, changed),
NULL,
@@ -235,7 +235,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[MODIFIED_CHANGED] =
g_signal_newc ("modified_changed",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, modified_changed),
NULL,
@@ -245,7 +245,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[MARK_SET] =
g_signal_newc ("mark_set",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, mark_set),
NULL,
@@ -257,7 +257,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[MARK_DELETED] =
g_signal_newc ("mark_deleted",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, mark_deleted),
NULL,
@@ -268,7 +268,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[APPLY_TAG] =
g_signal_newc ("apply_tag",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, apply_tag),
NULL,
@@ -281,7 +281,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[REMOVE_TAG] =
g_signal_newc ("remove_tag",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, remove_tag),
NULL,
@@ -294,7 +294,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[BEGIN_USER_ACTION] =
g_signal_newc ("begin_user_action",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, begin_user_action),
NULL,
@@ -304,7 +304,7 @@ gtk_text_buffer_class_init (GtkTextBufferClass *klass)
signals[END_USER_ACTION] =
g_signal_newc ("end_user_action",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextBufferClass, end_user_action),
NULL,
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index 8cf21002a..70198f7dc 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -173,7 +173,7 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass)
signals[INVALIDATED] =
g_signal_newc ("invalidated",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextLayoutClass, invalidated),
NULL,
@@ -183,7 +183,7 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass)
signals[CHANGED] =
g_signal_newc ("changed",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextLayoutClass, changed),
NULL,
@@ -196,7 +196,7 @@ gtk_text_layout_class_init (GtkTextLayoutClass *klass)
signals[ALLOCATE_CHILD] =
g_signal_newc ("allocate_child",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextLayoutClass, allocate_child),
NULL,
diff --git a/gtk/gtktexttag.c b/gtk/gtktexttag.c
index 4340000ff..7d5a0c267 100644
--- a/gtk/gtktexttag.c
+++ b/gtk/gtktexttag.c
@@ -139,13 +139,11 @@ static void gtk_text_tag_finalize (GObject *object);
static void gtk_text_tag_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_text_tag_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static GObjectClass *parent_class = NULL;
static guint signals[LAST_SIGNAL] = { 0 };
@@ -603,7 +601,7 @@ gtk_text_tag_class_init (GtkTextTagClass *klass)
signals[EVENT] =
g_signal_newc ("event",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
GTK_SIGNAL_OFFSET (GtkTextTagClass, event),
NULL,
@@ -779,8 +777,7 @@ static void
gtk_text_tag_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTextTag *text_tag;
gboolean size_changed = FALSE;
@@ -824,21 +821,23 @@ gtk_text_tag_set_property (GObject *object,
case PROP_BACKGROUND_GDK:
{
- GdkColor *color = g_value_get_as_pointer (value);
+ GdkColor *color = g_value_get_boxed (value);
+
set_bg_color (text_tag, color);
}
break;
case PROP_FOREGROUND_GDK:
{
- GdkColor *color = g_value_get_as_pointer (value);
+ GdkColor *color = g_value_get_boxed (value);
+
set_fg_color (text_tag, color);
}
break;
case PROP_BACKGROUND_STIPPLE:
{
- GdkBitmap *bitmap = g_value_get_as_pointer (value);
+ GdkBitmap *bitmap = g_value_get_boxed (value);
text_tag->bg_stipple_set = TRUE;
g_object_notify (G_OBJECT (text_tag), "background_stipple_set");
@@ -858,7 +857,7 @@ gtk_text_tag_set_property (GObject *object,
case PROP_FOREGROUND_STIPPLE:
{
- GdkBitmap *bitmap = g_value_get_as_pointer (value);
+ GdkBitmap *bitmap = g_value_get_boxed (value);
text_tag->fg_stipple_set = TRUE;
g_object_notify (G_OBJECT (text_tag), "foreground_stipple_set");
@@ -899,7 +898,7 @@ gtk_text_tag_set_property (GObject *object,
{
PangoFontDescription *font_desc;
- font_desc = g_value_get_as_pointer (value);
+ font_desc = g_value_get_boxed (value);
set_font_description (text_tag, font_desc);
@@ -1079,7 +1078,7 @@ gtk_text_tag_set_property (GObject *object,
/* FIXME I'm not sure if this is a memleak or not */
text_tag->values->tabs =
- pango_tab_array_copy (g_value_get_as_pointer (value));
+ pango_tab_array_copy (g_value_get_boxed (value));
g_object_notify (G_OBJECT (text_tag), "tabs_set");
@@ -1265,8 +1264,7 @@ static void
gtk_text_tag_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTextTag *tag;
diff --git a/gtk/gtktexttagtable.c b/gtk/gtktexttagtable.c
index 3ad3668c6..8f456e10f 100644
--- a/gtk/gtktexttagtable.c
+++ b/gtk/gtktexttagtable.c
@@ -21,13 +21,11 @@ static void gtk_text_tag_table_finalize (GObject *object);
static void gtk_text_tag_table_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_text_tag_table_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static GObjectClass *parent_class = NULL;
static guint signals[LAST_SIGNAL] = { 0 };
@@ -75,7 +73,7 @@ gtk_text_tag_table_class_init (GtkTextTagTableClass *klass)
signals[TAG_CHANGED] =
g_signal_newc ("tag_changed",
- G_TYPE_FROM_CLASS (object_class),
+ G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GtkTextTagTableClass, tag_changed),
NULL,
@@ -161,8 +159,7 @@ static void
gtk_text_tag_table_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTextTagTable *table;
@@ -182,8 +179,7 @@ static void
gtk_text_tag_table_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTextTagTable *table;
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 278222048..9e8027ecf 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -540,7 +540,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
GTK_RUN_LAST | GTK_RUN_ACTION,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTextViewClass, insert_at_cursor),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__STRING,
GTK_TYPE_NONE, 1, GTK_TYPE_STRING);
signals[DELETE_FROM_CURSOR] =
@@ -588,7 +588,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTextViewClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
widget_class->set_scroll_adjustments_signal = signals[SET_SCROLL_ADJUSTMENTS];
diff --git a/gtk/gtktipsquery.c b/gtk/gtktipsquery.c
index 92d05166f..a4f38a463 100644
--- a/gtk/gtktipsquery.c
+++ b/gtk/gtktipsquery.c
@@ -153,7 +153,7 @@ gtk_tips_query_class_init (GtkTipsQueryClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTipsQueryClass, widget_entered),
- gtk_marshal_VOID__POINTER_STRING_STRING,
+ gtk_marshal_VOID__OBJECT_STRING_STRING,
GTK_TYPE_NONE, 3,
GTK_TYPE_WIDGET,
GTK_TYPE_STRING,
@@ -163,7 +163,7 @@ gtk_tips_query_class_init (GtkTipsQueryClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTipsQueryClass, widget_selected),
- gtk_marshal_BOOLEAN__POINTER_STRING_STRING_POINTER,
+ gtk_marshal_BOOLEAN__OBJECT_STRING_STRING_BOXED,
GTK_TYPE_BOOL, 4,
GTK_TYPE_WIDGET,
GTK_TYPE_STRING,
diff --git a/gtk/gtktree.c b/gtk/gtktree.c
index a8183ad52..ff25b2542 100644
--- a/gtk/gtktree.c
+++ b/gtk/gtktree.c
@@ -150,7 +150,7 @@ gtk_tree_class_init (GtkTreeClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTreeClass, select_child),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
tree_signals[UNSELECT_CHILD] =
@@ -158,7 +158,7 @@ gtk_tree_class_init (GtkTreeClass *class)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTreeClass, unselect_child),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
}
diff --git a/gtk/gtktreedatalist.c b/gtk/gtktreedatalist.c
index 66f0364cb..c0ff3fb7a 100644
--- a/gtk/gtktreedatalist.c
+++ b/gtk/gtktreedatalist.c
@@ -18,9 +18,6 @@
*/
#include "gtktreedatalist.h"
-#include "gobject/gboxed.h"
-#include "gobject/gvalue.h"
-#include "gobject/gvaluetypes.h"
/* node allocation
*/
diff --git a/gtk/gtktreedatalist.h b/gtk/gtktreedatalist.h
index 66fe37592..cdcf602da 100644
--- a/gtk/gtktreedatalist.h
+++ b/gtk/gtktreedatalist.h
@@ -22,7 +22,7 @@
#define __GTK_TREE_DATA_LIST_H__
#include <glib.h>
-#include <gobject/gobject.h>
+#include <glib-object.h>
typedef struct _GtkTreeDataList GtkTreeDataList;
struct _GtkTreeDataList
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index 3ffc48c64..14f4625dd 100644
--- a/gtk/gtktreemodel.c
+++ b/gtk/gtktreemodel.c
@@ -21,12 +21,11 @@
#include <stdio.h>
#include <string.h>
#include <glib.h>
-#include <gobject/gobject.h>
#include <gobject/gvaluecollector.h>
-#include "gtkmarshal.h"
#include "gtktreemodel.h"
#include "gtktreeview.h"
#include "gtktreeprivate.h"
+#include "gtksignal.h"
struct _GtkTreePath
diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h
index 9478872ca..aaafa5057 100644
--- a/gtk/gtktreeselection.h
+++ b/gtk/gtktreeselection.h
@@ -20,7 +20,6 @@
#ifndef __GTK_TREE_SELECTION_H__
#define __GTK_TREE_SELECTION_H__
-#include <gobject/gobject.h>
#include <gtk/gtkobject.h>
#include <gtk/gtktreeview.h>
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 2a8e29054..cfe9f9c3e 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -315,14 +315,17 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
class->set_scroll_adjustments = gtk_tree_view_set_adjustments;
+#if 0
+ /* FIXME, tim needs to support interface prerequisits in GType */
g_object_class_install_property (o_class,
PROP_MODEL,
- g_param_spec_interface ("model",
- _("TreeView Model"),
- _("The model for the tree view"),
- GTK_TYPE_TREE_MODEL,
- G_PARAM_READWRITE));
-
+ g_param_spec_object ("model",
+ _("TreeView Model"),
+ _("The model for the tree view"),
+ GTK_TYPE_TREE_MODEL,
+ G_PARAM_READWRITE));
+#endif
+
g_object_class_install_property (o_class,
PROP_HADJUSTMENT,
g_param_spec_object ("hadjustment",
@@ -378,7 +381,7 @@ gtk_tree_view_class_init (GtkTreeViewClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkTreeViewClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2,
GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
}
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 5e0ed462d..c5badb27e 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -61,13 +61,11 @@ static void gtk_real_tree_column_clicked (GtkTreeViewColumn *tree_c
static void gtk_tree_view_column_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_tree_view_column_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer);
+ GParamSpec *pspec);
static void gtk_tree_view_column_finalize (GObject *object);
@@ -260,8 +258,7 @@ static void
gtk_tree_view_column_set_property (GObject *object,
guint prop_id,
const GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTreeViewColumn *tree_column;
@@ -340,8 +337,7 @@ static void
gtk_tree_view_column_get_property (GObject *object,
guint prop_id,
GValue *value,
- GParamSpec *pspec,
- const gchar *trailer)
+ GParamSpec *pspec)
{
GtkTreeViewColumn *tree_column;
diff --git a/gtk/gtktypeutils.c b/gtk/gtktypeutils.c
index 12b93f91e..c8385545e 100644
--- a/gtk/gtktypeutils.c
+++ b/gtk/gtktypeutils.c
@@ -128,12 +128,6 @@ gtk_type_init (GTypeDebugFlags debug_flags)
if (!initialized)
{
- static const struct {
- GtkType type_id;
- gchar *name;
- } fundamental_info[] = {
- { GTK_TYPE_SIGNAL, "GtkSignal" },
- };
static struct {
gchar *type_name;
GtkType *type_id;
@@ -159,16 +153,6 @@ gtk_type_init (GTypeDebugFlags debug_flags)
*/
gtk_object_get_type ();
- /* compatibility fundamentals
- */
- for (i = 0; i < sizeof (fundamental_info) / sizeof (fundamental_info[0]); i++)
- {
- type_id = g_type_register_fundamental (fundamental_info[i].type_id,
- fundamental_info[i].name,
- &tinfo, &finfo, 0);
- g_assert (type_id == fundamental_info[i].type_id);
- }
-
/* GTK_TYPE_IDENTIFIER
*/
GTK_TYPE_IDENTIFIER = g_type_register_static (G_TYPE_STRING, "GtkIdentifier", &tinfo, 0);
@@ -185,10 +169,25 @@ gtk_type_init (GTypeDebugFlags debug_flags)
type_id = g_flags_register_static (builtin_info[i].type_name, builtin_info[i].pointer1);
else if (builtin_info[i].parent == GTK_TYPE_BOXED)
{
+ static const gchar *copy_types[] = {
+ "GtkSelectionData", "GdkEvent", "GdkColor", "GtkTextIter", "PangoTabArray",
+ "PangoFontDescription", "GtkTreeIter", "GtkTreePath",
+ };
+ gboolean ref_counted = TRUE;
+ guint j;
+
+ for (j = 0; j < sizeof (copy_types) / sizeof (copy_types[0]); j++)
+ if (strcmp (copy_types[j], builtin_info[i].type_name) == 0)
+ {
+ ref_counted = FALSE;
+ break;
+ }
if (builtin_info[i].pointer1 && builtin_info[i].pointer2)
type_id = g_boxed_type_register_static (builtin_info[i].type_name,
+ NULL,
builtin_info[i].pointer1,
- builtin_info[i].pointer2);
+ builtin_info[i].pointer2,
+ ref_counted);
else
type_id = g_type_register_static (GTK_TYPE_BOXED, builtin_info[i].type_name, &tinfo, 0);
}
diff --git a/gtk/gtktypeutils.h b/gtk/gtktypeutils.h
index d8d6b9c42..ed6ff88e5 100644
--- a/gtk/gtktypeutils.h
+++ b/gtk/gtktypeutils.h
@@ -59,8 +59,7 @@ typedef enum /*< skip >*/
GTK_TYPE_DOUBLE = G_TYPE_DOUBLE,
GTK_TYPE_STRING = G_TYPE_STRING,
GTK_TYPE_BOXED = G_TYPE_BOXED,
- GTK_TYPE_POINTER = G_TYPE_POINTER,
- GTK_TYPE_SIGNAL = G_TYPE_GTK_SIGNAL
+ GTK_TYPE_POINTER = G_TYPE_POINTER
} GtkFundamentalType;
diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c
index 011636dfb..c79af9af3 100644
--- a/gtk/gtkviewport.c
+++ b/gtk/gtkviewport.c
@@ -142,7 +142,7 @@ gtk_viewport_class_init (GtkViewportClass *class)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkViewportClass, set_scroll_adjustments),
- gtk_marshal_VOID__POINTER_POINTER,
+ gtk_marshal_VOID__OBJECT_OBJECT,
GTK_TYPE_NONE, 2, GTK_TYPE_ADJUSTMENT, GTK_TYPE_ADJUSTMENT);
}
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 56f8664d8..a6fb15de3 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -98,7 +98,6 @@ enum {
NO_EXPOSE_EVENT,
VISIBILITY_NOTIFY_EVENT,
WINDOW_STATE_EVENT,
- DEBUG_MSG,
LAST_SIGNAL
};
@@ -258,14 +257,6 @@ gtk_widget_get_type (void)
*
* results:
*****************************************/
-#include "stdio.h"
-static void
-gtk_widget_debug_msg (GtkWidget *widget,
- const gchar *string)
-{
- fprintf (stderr, "Gtk-DEBUG: %s\n", string);
-}
-
static void
gtk_widget_class_init (GtkWidgetClass *klass)
{
@@ -334,8 +325,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
klass->no_expose_event = NULL;
- klass->debug_msg = gtk_widget_debug_msg;
-
gtk_object_add_arg_type ("GtkWidget::name", GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_NAME);
gtk_object_add_arg_type ("GtkWidget::parent", GTK_TYPE_CONTAINER, GTK_ARG_READWRITE, ARG_PARENT);
gtk_object_add_arg_type ("GtkWidget::x", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_X);
@@ -426,7 +415,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, parent_set),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_OBJECT);
widget_signals[STYLE_SET] =
@@ -434,7 +423,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_FIRST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, style_set),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_STYLE);
widget_signals[DIRECTION_CHANGED] =
@@ -463,7 +452,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[BUTTON_PRESS_EVENT] =
@@ -471,7 +460,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, button_press_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[BUTTON_RELEASE_EVENT] =
@@ -479,7 +468,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, button_release_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[SCROLL_EVENT] =
@@ -487,7 +476,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, scroll_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[MOTION_NOTIFY_EVENT] =
@@ -495,7 +484,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, motion_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[DELETE_EVENT] =
@@ -503,7 +492,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, delete_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[DESTROY_EVENT] =
@@ -511,7 +500,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, destroy_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[EXPOSE_EVENT] =
@@ -519,7 +508,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, expose_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[KEY_PRESS_EVENT] =
@@ -527,7 +516,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, key_press_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[KEY_RELEASE_EVENT] =
@@ -535,7 +524,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, key_release_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[ENTER_NOTIFY_EVENT] =
@@ -543,7 +532,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, enter_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[LEAVE_NOTIFY_EVENT] =
@@ -551,7 +540,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, leave_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[CONFIGURE_EVENT] =
@@ -559,7 +548,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, configure_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[FOCUS_IN_EVENT] =
@@ -567,7 +556,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_in_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[FOCUS_OUT_EVENT] =
@@ -575,7 +564,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, focus_out_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[MAP_EVENT] =
@@ -583,7 +572,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, map_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[UNMAP_EVENT] =
@@ -591,7 +580,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, unmap_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[PROPERTY_NOTIFY_EVENT] =
@@ -599,7 +588,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, property_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[SELECTION_CLEAR_EVENT] =
@@ -607,7 +596,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_clear_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[SELECTION_REQUEST_EVENT] =
@@ -615,7 +604,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_request_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[SELECTION_NOTIFY_EVENT] =
@@ -623,7 +612,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[SELECTION_RECEIVED] =
@@ -631,7 +620,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_received),
- gtk_marshal_VOID__POINTER_UINT,
+ gtk_marshal_VOID__BOXED_UINT,
GTK_TYPE_NONE, 2,
GTK_TYPE_SELECTION_DATA,
GTK_TYPE_UINT);
@@ -640,7 +629,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, selection_get),
- gtk_marshal_VOID__POINTER_UINT_UINT,
+ gtk_marshal_VOID__BOXED_UINT_UINT,
GTK_TYPE_NONE, 3,
GTK_TYPE_SELECTION_DATA,
GTK_TYPE_UINT,
@@ -650,7 +639,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_in_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[PROXIMITY_OUT_EVENT] =
@@ -658,7 +647,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, proximity_out_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[DRAG_LEAVE] =
@@ -666,7 +655,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_leave),
- gtk_marshal_VOID__POINTER_UINT,
+ gtk_marshal_VOID__BOXED_UINT,
GTK_TYPE_NONE, 2,
GDK_TYPE_DRAG_CONTEXT,
GTK_TYPE_UINT);
@@ -675,7 +664,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_begin),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__BOXED,
GTK_TYPE_NONE, 1,
GDK_TYPE_DRAG_CONTEXT);
widget_signals[DRAG_END] =
@@ -683,7 +672,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_end),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__BOXED,
GTK_TYPE_NONE, 1,
GDK_TYPE_DRAG_CONTEXT);
widget_signals[DRAG_DATA_DELETE] =
@@ -691,7 +680,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_data_delete),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__BOXED,
GTK_TYPE_NONE, 1,
GDK_TYPE_DRAG_CONTEXT);
widget_signals[DRAG_MOTION] =
@@ -699,7 +688,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_motion),
- gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT,
+ gtk_marshal_BOOLEAN__BOXED_INT_INT_UINT,
GTK_TYPE_BOOL, 4,
GDK_TYPE_DRAG_CONTEXT,
GTK_TYPE_INT,
@@ -710,7 +699,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_drop),
- gtk_marshal_BOOLEAN__POINTER_INT_INT_UINT,
+ gtk_marshal_BOOLEAN__BOXED_INT_INT_UINT,
GTK_TYPE_BOOL, 4,
GDK_TYPE_DRAG_CONTEXT,
GTK_TYPE_INT,
@@ -721,7 +710,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_data_get),
- gtk_marshal_VOID__POINTER_POINTER_UINT_UINT,
+ gtk_marshal_VOID__BOXED_BOXED_UINT_UINT,
GTK_TYPE_NONE, 4,
GDK_TYPE_DRAG_CONTEXT,
GTK_TYPE_SELECTION_DATA,
@@ -732,7 +721,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, drag_data_received),
- gtk_marshal_VOID__POINTER_INT_INT_POINTER_UINT_UINT,
+ gtk_marshal_VOID__BOXED_INT_INT_BOXED_UINT_UINT,
GTK_TYPE_NONE, 6,
GDK_TYPE_DRAG_CONTEXT,
GTK_TYPE_INT,
@@ -745,7 +734,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, visibility_notify_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[CLIENT_EVENT] =
@@ -753,7 +742,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, client_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[NO_EXPOSE_EVENT] =
@@ -761,7 +750,7 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, no_expose_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
widget_signals[WINDOW_STATE_EVENT] =
@@ -769,17 +758,9 @@ gtk_widget_class_init (GtkWidgetClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWidgetClass, window_state_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
- widget_signals[DEBUG_MSG] =
- gtk_signal_new ("debug_msg",
- GTK_RUN_LAST | GTK_RUN_ACTION,
- GTK_CLASS_TYPE (object_class),
- GTK_SIGNAL_OFFSET (GtkWidgetClass, debug_msg),
- gtk_marshal_VOID__POINTER,
- GTK_TYPE_NONE, 1,
- GTK_TYPE_STRING);
}
static void
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index b3497aac8..d3af4c4a8 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -370,10 +370,6 @@ struct _GtkWidgetClass
guint info,
guint time);
- /* action signals */
- void (* debug_msg) (GtkWidget *widget,
- const gchar *string);
-
/* Padding for future expandsion */
GtkFunction pad1;
GtkFunction pad2;
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3d632f5fa..710a5e32a 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -272,7 +272,7 @@ gtk_window_class_init (GtkWindowClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWindowClass, set_focus),
- gtk_marshal_VOID__POINTER,
+ gtk_marshal_VOID__OBJECT,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
@@ -281,7 +281,7 @@ gtk_window_class_init (GtkWindowClass *klass)
GTK_RUN_LAST,
GTK_CLASS_TYPE (object_class),
GTK_SIGNAL_OFFSET (GtkWindowClass, frame_event),
- gtk_marshal_BOOLEAN__POINTER,
+ gtk_marshal_BOOLEAN__BOXED,
GTK_TYPE_BOOL, 1,
GTK_TYPE_GDK_EVENT);
}
diff --git a/gtk/simple.c b/gtk/simple.c
index 450b3906c..9e57e357a 100644
--- a/gtk/simple.c
+++ b/gtk/simple.c
@@ -16,22 +16,24 @@ main (int argc, char *argv[])
/* FIXME: This is not allowable - what is this supposed to be? */
/* gdk_progclass = g_strdup ("XTerm"); */
gtk_init (&argc, &argv);
-
- window = gtk_widget_new (gtk_window_get_type (),
- "GtkObject::user_data", NULL,
- "GtkObject::signal::destroy", gtk_main_quit, NULL,
- "GtkWindow::type", GTK_WINDOW_TOPLEVEL,
- "GtkWindow::title", "hello world",
- "GtkWindow::allow_grow", FALSE,
- "GtkWindow::allow_shrink", FALSE,
- "GtkContainer::border_width", 10,
- NULL);
- button = gtk_widget_new (gtk_button_get_type (),
- "GtkButton::label", "hello world",
- "GtkObject::signal::clicked", hello, NULL,
- "GtkWidget::parent", window,
- "GtkWidget::visible", TRUE,
- NULL);
+
+ window = g_object_connect (gtk_widget_new (gtk_window_get_type (),
+ "user_data", NULL,
+ "type", GTK_WINDOW_TOPLEVEL,
+ "title", "hello world",
+ "allow_grow", FALSE,
+ "allow_shrink", FALSE,
+ "border_width", 10,
+ NULL),
+ "signal::destroy", gtk_main_quit, NULL,
+ NULL);
+ button = g_object_connect (gtk_widget_new (gtk_button_get_type (),
+ "GtkButton::label", "hello world",
+ "GtkWidget::parent", window,
+ "GtkWidget::visible", TRUE,
+ NULL),
+ "signal::clicked", hello, NULL,
+ NULL);
gtk_widget_show (window);
gtk_main ();
diff --git a/gtk/testgtk.c b/gtk/testgtk.c
index 553f606ec..8b06fe0b3 100644
--- a/gtk/testgtk.c
+++ b/gtk/testgtk.c
@@ -1022,37 +1022,34 @@ create_statusbar (void)
"visible", TRUE,
"parent", box2,
NULL);
- g_object_set (G_OBJECT (button),
- "signal::clicked", statusbar_push, statusbar,
- NULL);
-
- button = gtk_widget_new (gtk_button_get_type (),
- "label", "pop",
- "visible", TRUE,
- "parent", box2,
- NULL);
- g_object_set (G_OBJECT (button),
- "signal_after::clicked", statusbar_pop, statusbar,
- NULL);
+ g_object_connect (G_OBJECT (button),
+ "signal::clicked", statusbar_push, statusbar,
+ NULL);
- button = gtk_widget_new (gtk_button_get_type (),
- "label", "steal #4",
- "visible", TRUE,
- "parent", box2,
- NULL);
- g_object_set (G_OBJECT (button),
- "signal_after::clicked", statusbar_steal, statusbar,
- NULL);
+ button = g_object_connect (gtk_widget_new (gtk_button_get_type (),
+ "label", "pop",
+ "visible", TRUE,
+ "parent", box2,
+ NULL),
+ "signal_after::clicked", statusbar_pop, statusbar,
+ NULL);
- button = gtk_widget_new (gtk_button_get_type (),
- "label", "test contexts",
- "visible", TRUE,
- "parent", box2,
- NULL);
- g_object_set (G_OBJECT (button),
- "swapped_signal_after::clicked", statusbar_contexts, statusbar,
- NULL);
+ button = g_object_connect (gtk_widget_new (gtk_button_get_type (),
+ "label", "steal #4",
+ "visible", TRUE,
+ "parent", box2,
+ NULL),
+ "signal_after::clicked", statusbar_steal, statusbar,
+ NULL);
+ button = g_object_connect (gtk_widget_new (gtk_button_get_type (),
+ "label", "test contexts",
+ "visible", TRUE,
+ "parent", box2,
+ NULL),
+ "swapped_signal_after::clicked", statusbar_contexts, statusbar,
+ NULL);
+
separator = gtk_hseparator_new ();
gtk_box_pack_start (GTK_BOX (box1), separator, FALSE, TRUE, 0);
@@ -2386,13 +2383,14 @@ create_saved_position (void)
GtkWidget *label;
GtkWidget *any;
- window = gtk_widget_new (GTK_TYPE_WINDOW,
- "type", GTK_WINDOW_TOPLEVEL,
- "signal::configure_event", uposition_configure, NULL,
- "x", upositionx,
- "y", upositiony,
- "title", "Saved Position",
- NULL);
+ window = g_object_connect (gtk_widget_new (GTK_TYPE_WINDOW,
+ "type", GTK_WINDOW_TOPLEVEL,
+ "x", upositionx,
+ "y", upositiony,
+ "title", "Saved Position",
+ NULL),
+ "signal::configure_event", uposition_configure, NULL,
+ NULL);
gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (gtk_widget_destroyed),
@@ -2409,12 +2407,13 @@ create_saved_position (void)
"GtkContainer::border_width", 10,
"GtkWidget::parent", main_vbox,
"GtkWidget::visible", TRUE,
- "child", gtk_widget_new (GTK_TYPE_TOGGLE_BUTTON,
- "label", "Stop Events",
- "active", FALSE,
- "signal::clicked", uposition_stop_configure, window,
- "visible", TRUE,
- NULL),
+ "child", g_object_connect (gtk_widget_new (GTK_TYPE_TOGGLE_BUTTON,
+ "label", "Stop Events",
+ "active", FALSE,
+ "visible", TRUE,
+ NULL),
+ "signal::clicked", uposition_stop_configure, window,
+ NULL),
NULL);
hbox = gtk_hbox_new (FALSE, 0);
@@ -2639,23 +2638,23 @@ create_tooltips (void)
box3 =
gtk_widget_new (gtk_vbox_get_type (),
- "GtkBox::homogeneous", FALSE,
- "GtkBox::spacing", 5,
- "GtkContainer::border_width", 5,
- "GtkWidget::visible", TRUE,
+ "homogeneous", FALSE,
+ "spacing", 5,
+ "border_width", 5,
+ "visible", TRUE,
NULL);
tips_query = gtk_tips_query_new ();
button =
gtk_widget_new (gtk_button_get_type (),
- "GtkButton::label", "[?]",
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box3,
+ "label", "[?]",
+ "visible", TRUE,
+ "parent", box3,
+ NULL);
+ g_object_connect (G_OBJECT (button),
+ "swapped_signal::clicked", gtk_tips_query_start_query, tips_query,
NULL);
- g_object_set (G_OBJECT (button),
- "swapped_signal::clicked", gtk_tips_query_start_query, tips_query,
- NULL);
gtk_box_set_child_packing (GTK_BOX (box3), button, FALSE, FALSE, 0, GTK_PACK_START);
gtk_tooltips_set_tip (tooltips,
button,
@@ -2663,23 +2662,23 @@ create_tooltips (void)
"ContextHelp/buttons/?");
- gtk_widget_set (tips_query,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box3,
- "GtkTipsQuery::caller", button,
- "GtkObject::signal::widget_entered", tips_query_widget_entered, toggle,
- "GtkObject::signal::widget_selected", tips_query_widget_selected, NULL,
+ gtk_widget_set (g_object_connect (tips_query,
+ "signal::widget_entered", tips_query_widget_entered, toggle,
+ "signal::widget_selected", tips_query_widget_selected, NULL,
+ NULL),
+ "visible", TRUE,
+ "parent", box3,
+ "caller", button,
NULL);
- frame =
- gtk_widget_new (gtk_frame_get_type (),
- "GtkFrame::label", "ToolTips Inspector",
- "GtkFrame::label_xalign", (double) 0.5,
- "GtkContainer::border_width", 0,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box2,
- "GtkContainer::child", box3,
- NULL);
+ frame = gtk_widget_new (gtk_frame_get_type (),
+ "label", "ToolTips Inspector",
+ "label_xalign", (double) 0.5,
+ "border_width", 0,
+ "visible", TRUE,
+ "parent", box2,
+ "child", box3,
+ NULL);
gtk_box_set_child_packing (GTK_BOX (box2), frame, TRUE, TRUE, 10, GTK_PACK_START);
separator = gtk_hseparator_new ();
@@ -9075,11 +9074,11 @@ create_idle_test (void)
container =
gtk_widget_new (GTK_TYPE_HBOX,
- "GtkWidget::visible", TRUE,
+ "visible", TRUE,
/* "GtkContainer::child", gtk_widget_new (GTK_TYPE_HBOX,
* "GtkWidget::visible", TRUE,
*/
- "GtkContainer::child", label,
+ "child", label,
/* NULL), */
NULL);
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (window)->vbox),
@@ -9087,43 +9086,46 @@ create_idle_test (void)
frame =
gtk_widget_new (GTK_TYPE_FRAME,
- "GtkContainer::border_width", 5,
- "GtkFrame::label", "Label Container",
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", GTK_DIALOG (window)->vbox,
+ "border_width", 5,
+ "label", "Label Container",
+ "visible", TRUE,
+ "parent", GTK_DIALOG (window)->vbox,
NULL);
box =
gtk_widget_new (GTK_TYPE_VBOX,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", frame,
+ "visible", TRUE,
+ "parent", frame,
NULL);
button =
- gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
- "GtkButton::label", "Resize-Parent",
- "GtkObject::user_data", (void*)GTK_RESIZE_PARENT,
- "GtkObject::signal::clicked", toggle_idle_container, container,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box,
- NULL);
+ g_object_connect (gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
+ "label", "Resize-Parent",
+ "user_data", (void*)GTK_RESIZE_PARENT,
+ "visible", TRUE,
+ "parent", box,
+ NULL),
+ "signal::clicked", toggle_idle_container, container,
+ NULL);
button =
- gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
- "GtkButton::label", "Resize-Queue",
- "GtkObject::user_data", (void*)GTK_RESIZE_QUEUE,
- "GtkObject::signal::clicked", toggle_idle_container, container,
- "GtkRadioButton::group", button,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box,
- NULL);
+ g_object_connect (gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
+ "label", "Resize-Queue",
+ "user_data", (void*)GTK_RESIZE_QUEUE,
+ "group", button,
+ "visible", TRUE,
+ "parent", box,
+ NULL),
+ "signal::clicked", toggle_idle_container, container,
+ NULL);
button =
- gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
- "GtkButton::label", "Resize-Immediate",
- "GtkObject::user_data", (void*)GTK_RESIZE_IMMEDIATE,
- "GtkObject::signal::clicked", toggle_idle_container, container,
- "GtkRadioButton::group", button,
- "GtkWidget::visible", TRUE,
- "GtkWidget::parent", box,
- NULL);
-
+ g_object_set (g_object_connect (gtk_widget_new (GTK_TYPE_RADIO_BUTTON,
+ "label", "Resize-Immediate",
+ "user_data", (void*)GTK_RESIZE_IMMEDIATE,
+ NULL),
+ "signal::clicked", toggle_idle_container, container,
+ NULL),
+ "group", button,
+ "visible", TRUE,
+ "parent", box,
+ NULL);
button = gtk_button_new_with_label ("close");
gtk_signal_connect_object (GTK_OBJECT (button), "clicked",