diff options
author | Darin Adler <darin@src.gnome.org> | 2001-11-07 18:12:25 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-11-07 18:12:25 +0000 |
commit | 966fc7ed0e814c4e02fdf9a48aa40526649401da (patch) | |
tree | 3aa86226da0f94a1381c5817f6269213894a209a /gtk/gtkdialog.c | |
parent | 57479a86be71dfac361633838c8129267a278233 (diff) | |
download | gdk-pixbuf-966fc7ed0e814c4e02fdf9a48aa40526649401da.tar.gz |
Add g_return_if_fail.
* gtk/gtkdialog.c: (gtk_dialog_set_response_sensitive),
(gtk_dialog_set_default_response): Add g_return_if_fail.
Diffstat (limited to 'gtk/gtkdialog.c')
-rw-r--r-- | gtk/gtkdialog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkdialog.c b/gtk/gtkdialog.c index 9fce66aea..7dc4be6e1 100644 --- a/gtk/gtkdialog.c +++ b/gtk/gtkdialog.c @@ -632,6 +632,8 @@ gtk_dialog_set_response_sensitive (GtkDialog *dialog, GList *children; GList *tmp_list; + g_return_if_fail (GTK_IS_DIALOG (dialog)); + children = gtk_container_get_children (GTK_CONTAINER (dialog->action_area)); tmp_list = children; @@ -667,6 +669,8 @@ gtk_dialog_set_default_response (GtkDialog *dialog, GList *children; GList *tmp_list; + g_return_if_fail (GTK_IS_DIALOG (dialog)); + children = gtk_container_get_children (GTK_CONTAINER (dialog->action_area)); tmp_list = children; |