]> Pileus Git - ~andy/gtk/commitdiff
renamed signal GtkWidget::set_parent to GtkWidget::parent_set. since it's
authorTim Janik <timj@gimp.org>
Sun, 22 Feb 1998 02:18:29 +0000 (02:18 +0000)
committerTim Janik <timj@src.gnome.org>
Sun, 22 Feb 1998 02:18:29 +0000 (02:18 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkobject.c
gtk/gtkwidget.c
gtk/gtkwidget.h

index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 4b5a37a08536c2d2d40443d355bfd7cb128dc7a8..eaea7ceaf4de4a6085cb9c9737a77dfc48661cca 100644 (file)
@@ -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
index 1a45c79043d1791a1f5f840b70f932f3eb91579a..b854634c890f82b908e75535fd399bb330545eaa 100644 (file)
@@ -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,
index a076d72bbd49a03736cd6e6e667cb682533bcf1a..3188419cf61e34a69aa6e18273730e47ae63d773 100644 (file)
@@ -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);
 }
 
 /*************************************************************
index f1dfc8cd57e8a372e263d2dfc198a54a84343787..4cd1884a2627b68aa4e36be9d57fba47bf4371bf 100644 (file)
@@ -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 */