aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-debug-window.c2
-rw-r--r--src/empathy-main-window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index 5a46e56e2..bca5d5c7c 100644
--- a/src/empathy-debug-window.c
+++ b/src/empathy-debug-window.c
@@ -1439,7 +1439,7 @@ empathy_debug_window_class_init (EmpathyDebugWindowClass *klass)
GtkWidget *
empathy_debug_window_new (GtkWindow *parent)
{
- g_return_val_if_fail (GTK_IS_WINDOW (parent), NULL);
+ g_return_val_if_fail (parent == NULL || GTK_IS_WINDOW (parent), NULL);
return GTK_WIDGET (g_object_new (EMPATHY_TYPE_DEBUG_WINDOW,
"transient-for", parent, NULL));
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index a2f9dde13..6d26dec5b 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1065,7 +1065,7 @@ static void
main_window_help_debug_cb (GtkAction *action,
EmpathyMainWindow *window)
{
- empathy_debug_window_new (GTK_WINDOW (window->window));
+ empathy_debug_window_new (NULL);
}
static void