summaryrefslogtreecommitdiff
path: root/gtk/gtkhandlebox.c
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-07-21 04:13:42 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-07-21 04:13:42 +0000
commit7c30f2a15fbfa5f50d4859d635ab15ad1d6e1d37 (patch)
treefd630d133421ca0ea39f55a4130ced3e34c029ff /gtk/gtkhandlebox.c
parentcebb7bfc9f6cff18b06716fb8e536998f1a3df9a (diff)
downloadgdk-pixbuf-7c30f2a15fbfa5f50d4859d635ab15ad1d6e1d37.tar.gz
Use common marshalling routines instead of having widget-private ones. It
Use common marshalling routines instead of having widget-private ones. It compiles & links. testgtk segfaults. I'm convinced that is Somebody Else's Problem (marshalling routine gets func_data=0x0 and blithely passes it on) but the fact that it happens now & not before makes me wrong :-)
Diffstat (limited to 'gtk/gtkhandlebox.c')
-rw-r--r--gtk/gtkhandlebox.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/gtk/gtkhandlebox.c b/gtk/gtkhandlebox.c
index de2c85669..6dd34f117 100644
--- a/gtk/gtkhandlebox.c
+++ b/gtk/gtkhandlebox.c
@@ -38,10 +38,6 @@ enum
SIGNAL_LAST
};
-typedef void (*SignalChildAttached) (GtkObject *object,
- GtkWidget *widget,
- gpointer func_data);
-
static void gtk_handle_box_class_init (GtkHandleBoxClass *klass);
static void gtk_handle_box_init (GtkHandleBox *handle_box);
static void gtk_handle_box_destroy (GtkObject *object);
@@ -105,19 +101,6 @@ gtk_handle_box_get_type (void)
}
static void
-gtk_handle_box_marshal_child_attached (GtkObject *object,
- GtkSignalFunc func,
- gpointer func_data,
- GtkArg *args)
-{
- SignalChildAttached sfunc = (SignalChildAttached) func;
-
- (* sfunc) (object,
- (GtkWidget*) GTK_VALUE_OBJECT (args[0]),
- func_data);
-}
-
-static void
gtk_handle_box_class_init (GtkHandleBoxClass *class)
{
GtkObjectClass *object_class;
@@ -135,7 +118,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
GTK_RUN_FIRST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkHandleBoxClass, child_attached),
- gtk_handle_box_marshal_child_attached,
+ gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
handle_box_signals[SIGNAL_CHILD_DETACHED] =
@@ -143,7 +126,7 @@ gtk_handle_box_class_init (GtkHandleBoxClass *class)
GTK_RUN_FIRST,
object_class->type,
GTK_SIGNAL_OFFSET (GtkHandleBoxClass, child_detached),
- gtk_handle_box_marshal_child_attached,
+ gtk_marshal_NONE__POINTER,
GTK_TYPE_NONE, 1,
GTK_TYPE_WIDGET);
gtk_object_class_add_signals (object_class, handle_box_signals, SIGNAL_LAST);