diff --git a/ChangeLog b/ChangeLog index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4b5a37a085..eaea7ceaf4 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns * gdk/gdkcc.c (gdk_color_context_query_colors): fixed a bug for mode GDK_CC_MODE_TRUE, when on a 24-bit visual on a 32-bit mashine. +Sat Feb 21 15:33:20 1998 Tim Janik + + * gtk/gtkwidget.h: + * gtk/gtkwidget.c: renamed signal GtkWidget::set_parent to + GtkWidget::parent_set. since it's purpose is pure notification, + it should have been named this way in the first place. + Sat Feb 21 12:06:11 1998 Scott Goehring * gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a diff --git a/gtk/gtkobject.c b/gtk/gtkobject.c index 1a45c79043..b854634c89 100644 --- a/gtk/gtkobject.c +++ b/gtk/gtkobject.c @@ -264,6 +264,7 @@ gtk_object_set_arg (GtkObject *object, if ((arg->name[9 + 2 + 6] != ':') || (arg->name[9 + 2 + 7] != ':')) { g_warning ("invalid signal argument: \"%s\"\n", arg->name); + arg->type = GTK_TYPE_INVALID; return; } gtk_signal_connect (object, arg->name + 9 + 2 + 6 + 2, @@ -274,6 +275,7 @@ gtk_object_set_arg (GtkObject *object, if ((arg->name[9 + 2 + 13] != ':') || (arg->name[9 + 2 + 14] != ':')) { g_warning ("invalid signal argument: \"%s\"\n", arg->name); + arg->type = GTK_TYPE_INVALID; return; } gtk_signal_connect_object (object, arg->name + 9 + 2 + 13 + 2, diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a076d72bbd..3188419cf6 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -45,7 +45,7 @@ enum { SIZE_REQUEST, SIZE_ALLOCATE, STATE_CHANGED, - SET_PARENT, + PARENT_SET, INSTALL_ACCELERATOR, REMOVE_ACCELERATOR, EVENT, @@ -381,11 +381,11 @@ gtk_widget_class_init (GtkWidgetClass *klass) gtk_widget_marshal_signal_5, GTK_TYPE_NONE, 1, GTK_TYPE_UINT); - widget_signals[SET_PARENT] = - gtk_signal_new ("set_parent", + widget_signals[PARENT_SET] = + gtk_signal_new ("parent_set", GTK_RUN_FIRST, object_class->type, - GTK_SIGNAL_OFFSET (GtkWidgetClass, set_parent), + GTK_SIGNAL_OFFSET (GtkWidgetClass, parent_set), gtk_widget_marshal_signal_6, GTK_TYPE_NONE, 1, GTK_TYPE_OBJECT); @@ -676,7 +676,7 @@ gtk_widget_class_init (GtkWidgetClass *klass) klass->size_request = NULL; klass->size_allocate = gtk_widget_real_size_allocate; klass->state_changed = NULL; - klass->set_parent = NULL; + klass->parent_set = NULL; klass->install_accelerator = NULL; klass->remove_accelerator = NULL; klass->event = NULL; @@ -1125,7 +1125,7 @@ gtk_widget_unparent (GtkWidget *widget) old_parent = widget->parent; widget->parent = NULL; - gtk_signal_emit (GTK_OBJECT (widget), widget_signals[SET_PARENT], old_parent); + gtk_signal_emit (GTK_OBJECT (widget), widget_signals[PARENT_SET], old_parent); gtk_widget_unref (widget); } @@ -2314,7 +2314,7 @@ gtk_widget_set_parent (GtkWidget *widget, NULL); } - gtk_signal_emit (GTK_OBJECT (widget), widget_signals[SET_PARENT], NULL); + gtk_signal_emit (GTK_OBJECT (widget), widget_signals[PARENT_SET], NULL); } /************************************************************* diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h index f1dfc8cd57..4cd1884a26 100644 --- a/gtk/gtkwidget.h +++ b/gtk/gtkwidget.h @@ -252,7 +252,7 @@ struct _GtkWidgetClass GtkAllocation *allocation); void (* state_changed) (GtkWidget *widget, guint previous_state); - void (* set_parent) (GtkWidget *widget, + void (* parent_set) (GtkWidget *widget, GtkWidget *previous_parent); /* accelerators */