From 563cdd3b2e98eaf6225727f3320eb81826eaa41d Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Mon, 20 Apr 2009 15:46:16 +0100 Subject: Return NULL if _new is not given a GtkWindow. Signed-off-by: Jonny Lamb --- src/empathy-debug-dialog.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c index 802816e05..8c83d09c7 100644 --- a/src/empathy-debug-dialog.c +++ b/src/empathy-debug-dialog.c @@ -581,6 +581,8 @@ empathy_debug_dialog_class_init (EmpathyDebugDialogClass *klass) GtkWidget * empathy_debug_dialog_new (GtkWindow *parent) { + g_return_val_if_fail (GTK_IS_WINDOW (parent), NULL); + return GTK_WIDGET (g_object_new (EMPATHY_TYPE_DEBUG_DIALOG, "parent", parent, NULL)); } -- cgit v1.2.3