removed this function, it was unneeded and not exported.

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.
This commit is contained in:
Tim Janik
1998-03-30 20:03:36 +00:00
committed by Tim Janik
parent c05d6f2d12
commit 8eb7761e72
9 changed files with 98 additions and 22 deletions

View 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);
}