]> Pileus Git - ~andy/gtk/commitdiff
removed this function, it was unneeded and not exported.
authorTim Janik <timj@gtk.org>
Mon, 30 Mar 1998 20:03:36 +0000 (20:03 +0000)
committerTim Janik <timj@src.gnome.org>
Mon, 30 Mar 1998 20:03:36 +0000 (20:03 +0000)
Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
                it was unneeded and not exported.

                        * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
                                the widgets to volatile GtkObjects (which was there for debugging
                                        purposes only). these functions should probably be macros, but that
                                                would break binary compatibility again, sigh.
                                                        (gtk_widget_destroy): removed superfluous check-casts, since the
                                                                neccessary checks are done in gtk_object_destroy anyways. this should
                                                                        be a macro as well but stays as a function for the above reasoonings.

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/gtkclist.c
gtk/gtkwidget.c

index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 5d39693504f508472160c903e1e1391fe96c315b..b401272f3a36d5dae5471fc3e64f33d646421387 100644 (file)
@@ -1,3 +1,16 @@
+Mon Mar 30 21:40:21 1998  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkclist.c (gtk_clist_row_from_ypixel): removed this function,
+       it was unneeded and not exported.
+
+       * gtk/gtkwidget.c (gtk_widget_ref) (gtk_widget_unref): don't check-cast
+       the widgets to volatile GtkObjects (which was there for debugging
+       purposes only). these functions should probably be macros, but that
+       would break binary compatibility again, sigh.
+       (gtk_widget_destroy): removed superfluous check-casts, since the
+       neccessary checks are done in gtk_object_destroy anyways. this should
+       be a macro as well but stays as a function for the above reasoonings.
+
 Mon Mar 30 17:21:27 BST 1998 Tony Gale  <gale@gimp.org>
 
        * docs/gtk_tut.sgml: reflect the change of meaning
index 2197ade93fb6b722fb011469145079df24838a30..ff9ce626e31f00341d9757ce3f4ab9895b9a496f 100644 (file)
@@ -2352,15 +2352,6 @@ gtk_clist_size_allocate (GtkWidget * widget,
   adjust_scrollbars (clist);
 }
 
-gint
-gtk_clist_row_from_ypixel (GtkCList *clist, gint y)
-{
-       g_return_val_if_fail (GTK_IS_CLIST (clist), 0);
-       g_return_val_if_fail (y >= 0, 0);
-
-       return ROW_FROM_YPIXEL (clist, y);
-}
-
 /* 
  * GTKCONTAINER
  *   gtk_clist_foreach
index 23405b5f2a7064b3589168132ce90098cf80ec02..b0da4adc67aef98713d53b0d02890cec3c11daae 100644 (file)
@@ -1198,7 +1198,7 @@ gtk_widget_destroy (GtkWidget *widget)
   g_return_if_fail (widget != NULL);
   g_return_if_fail (GTK_IS_WIDGET (widget));
   
-  gtk_object_destroy (GTK_OBJECT (widget));
+  gtk_object_destroy ((GtkObject*) widget);
 }
 
 /*****************************************
@@ -4075,26 +4075,20 @@ gtk_widget_dnd_data_set (GtkWidget   *widget,
   gdk_window_dnd_data_set (widget->window, event, data, data_numbytes);
 }
 
-
-#undef gtk_widget_ref
-#undef gtk_widget_unref
-
-
 void
 gtk_widget_ref (GtkWidget *widget)
 {
-  volatile GtkObject *object;
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (GTK_IS_WIDGET (widget));
 
-  object = GTK_OBJECT (widget);
-  gtk_object_ref (object);
+  gtk_object_ref ((GtkObject*) widget);
 }
 
 void
 gtk_widget_unref (GtkWidget *widget)
 {
-  volatile GtkObject *object;
+  g_return_if_fail (widget != NULL);
+  g_return_if_fail (GTK_IS_WIDGET (widget));
 
-  object = GTK_OBJECT (widget);
-  gtk_object_unref (object);
+  gtk_object_unref ((GtkObject*) widget);
 }
-