forked from AuroraMiddleware/gtk
renamed signal GtkWidget::set_parent to GtkWidget::parent_set. since it's
Sat Feb 21 15:33:20 1998 Tim Janik <timj@gimp.org> * 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.
This commit is contained in:
parent
e00c0594a3
commit
06d19fb68d
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -3,6 +3,13 @@ Sun Feb 22 00:20:12 MET 1998 Eckehard Berns <eb@berns.prima.de>
|
||||
* 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 <timj@gimp.org>
|
||||
|
||||
* 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 <scott@poverty.bloomington.in.us>
|
||||
|
||||
* gtk/gtkentry.c (gtk_entry_set_text): Added a test for passing a
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user