Commit 6d5faa20 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

added more g_return_if_fail() statements.

Sun Oct 25 08:04:33 1998  Tim Janik  <timj@gtk.org>

        * gtk/gtkwidget.c: added more g_return_if_fail() statements.
parent 18ce1ade
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
Sun Oct 25 08:04:33 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c: added more g_return_if_fail() statements.
Thu Oct 22 22:40:35 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkctree.c (gtk_ctree_destroy): removed. gtk_clist_destroy
......
......@@ -2568,9 +2568,11 @@ gtk_widget_set_parent (GtkWidget *widget,
GtkStateData data;
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (widget->parent == NULL);
g_return_if_fail (!GTK_WIDGET_TOPLEVEL (widget));
g_return_if_fail (parent != NULL);
g_return_if_fail (GTK_IS_WIDGET (parent));
g_return_if_fail (widget != parent);
/* keep this function in sync with gtk_menu_attach_to_widget()
......@@ -2607,6 +2609,7 @@ gtk_widget_set_style (GtkWidget *widget,
gboolean initial_emission;
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (style != NULL);
initial_emission = !GTK_WIDGET_RC_STYLE (widget) && !GTK_WIDGET_USER_STYLE (widget);
......@@ -2629,6 +2632,9 @@ gtk_widget_set_style (GtkWidget *widget,
void
gtk_widget_ensure_style (GtkWidget *widget)
{
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
if (!GTK_WIDGET_USER_STYLE (widget) &&
!GTK_WIDGET_RC_STYLE (widget))
gtk_widget_set_rc_style (widget);
......@@ -2642,6 +2648,7 @@ gtk_widget_set_rc_style (GtkWidget *widget)
gboolean initial_emission;
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
initial_emission = !GTK_WIDGET_RC_STYLE (widget) && !GTK_WIDGET_USER_STYLE (widget);
......@@ -2685,6 +2692,7 @@ gtk_widget_restore_default_style (GtkWidget *widget)
GtkStyle *default_style;
g_return_if_fail (widget != NULL);
g_return_if_fail (GTK_IS_WIDGET (widget));
GTK_PRIVATE_UNSET_FLAG (widget, GTK_USER_STYLE);
......@@ -2701,6 +2709,7 @@ GtkStyle*
gtk_widget_get_style (GtkWidget *widget)
{
g_return_val_if_fail (widget != NULL, NULL);
g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
return widget->style;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment