[empathy] debug window shouldn't be transient
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] debug window shouldn't be transient
- Date: Wed, 4 Nov 2009 16:47:35 +0000 (UTC)
commit 583adbaf8dd535855e3f0ceb05234c38f9c6564b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Wed Nov 4 11:53:06 2009 +0000
debug window shouldn't be transient
src/empathy-debug-window.c | 2 +-
src/empathy-main-window.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-debug-window.c b/src/empathy-debug-window.c
index 5a46e56..bca5d5c 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 a2f9dde..6d26dec 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]