[empathy: 16/53] Return NULL if _new is not given a GtkWindow.
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy: 16/53] Return NULL if _new is not given a GtkWindow.
- Date: Thu, 4 Jun 2009 12:16:23 -0400 (EDT)
commit 563cdd3b2e98eaf6225727f3320eb81826eaa41d
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Mon Apr 20 15:46:16 2009 +0100
Return NULL if _new is not given a GtkWindow.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
src/empathy-debug-dialog.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/empathy-debug-dialog.c b/src/empathy-debug-dialog.c
index 802816e..8c83d09 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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]