changeset 5535:933739f789f9

[gaim-migrate @ 5935] ding, dong, OPT_MISC_DEBUG is dead. committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Mon, 26 May 2003 16:11:46 +0000
parents 0aa4d089125c
children 8bf28c2d100e
files src/gtkdebug.c src/gtkprefs.c src/main.c
diffstat 3 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkdebug.c	Mon May 26 15:44:21 2003 +0000
+++ b/src/gtkdebug.c	Mon May 26 16:11:46 2003 +0000
@@ -232,7 +232,7 @@
 			ts_s = g_strdup("");
 	}
 
-	if ((misc_options & OPT_MISC_DEBUG) &&
+	if (gaim_prefs_get_bool("/gaim/gtk/debug/enabled") &&
 		debug_win != NULL && !debug_win->paused) {
 
 		gchar *esc_s, *cat_s, *s;
--- a/src/gtkprefs.c	Mon May 26 15:44:21 2003 +0000
+++ b/src/gtkprefs.c	Mon May 26 16:11:46 2003 +0000
@@ -1993,13 +1993,7 @@
 {
 	misc_options ^= option;
 
-	if (option == OPT_MISC_DEBUG) {
-		if ((misc_options & OPT_MISC_DEBUG))
-			gaim_gtk_debug_window_show();
-		else
-			gaim_gtk_debug_window_hide();
-	}
-	else if(option == OPT_MISC_USE_SERVER_ALIAS) {
+	if(option == OPT_MISC_USE_SERVER_ALIAS) {
 		/* XXX blist reset the aliases here */
 		gaim_conversation_foreach(gaim_conversation_autoset_title);
 	}
--- a/src/main.c	Mon May 26 15:44:21 2003 +0000
+++ b/src/main.c	Mon May 26 16:11:46 2003 +0000
@@ -923,7 +923,7 @@
 		opt_user_arg = NULL;
 	}
 
-	if (misc_options & OPT_MISC_DEBUG)
+	if (gaim_prefs_get_bool("/gaim/gtk/debug/enabled"))
 		gaim_gtk_debug_window_show();
 
 	static_proto_init();