changeset 19805:d6a308e375b9

More dialogs made transient
author Gabriel Schulhof <nix@go-nix.ca>
date Tue, 24 Jul 2007 20:28:29 +0000
parents c229bf90b6a4
children b9f5d8e14794
files pidgin/gtkblist.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Tue Jul 24 20:26:06 2007 +0000
+++ b/pidgin/gtkblist.c	Tue Jul 24 20:28:29 2007 +0000
@@ -2824,8 +2824,12 @@
 static void
 toggle_debug(void)
 {
+	gboolean current_setting = purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled");
+
+	if (!current_setting)
+		pidgin_set_toplevel(GTK_WINDOW(gtkblist->window));
 	purple_prefs_set_bool(PIDGIN_PREFS_ROOT "/debug/enabled",
-			!purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/debug/enabled"));
+			!current_setting);
 }
 
 static void