aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-20 22:46:16 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-04-24 08:52:48 +0800
commit563cdd3b2e98eaf6225727f3320eb81826eaa41d (patch)
tree0d0253762d122b2be7bd53f69b1d2456c8241172 /src
parentf408815ea2363da687f13bc93d3149ae982169c3 (diff)
downloadgsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar.gz
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar.bz2
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar.lz
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar.xz
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.tar.zst
gsoc2013-empathy-563cdd3b2e98eaf6225727f3320eb81826eaa41d.zip
Return NULL if _new is not given a GtkWindow.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/empathy-debug-dialog.c2
1 files changed, 2 insertions, 0 deletions
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));
}