[gaim-migrate @ 6249]

Mon, 09 Jun 2003 02:21:55 +0000

author
Ka-Hing Cheung <khc@pidgin.im>
date
Mon, 09 Jun 2003 02:21:55 +0000
changeset 5819
a96604ecebc4
parent 5818
59e4e52ad0cb
child 5820
93bcc8fca197

[gaim-migrate @ 6249]
<javabsp> lschiere0: If you selected a browser and later uninstall it, it reverts the setting to custom
<javabsp> lschiere0: If the only browser that gaim recognizes is uninstalled, you will be unable to set a custom browser without this patch
<lschiere0> that sounds decidedly odd
<javabsp> Because the only thing left in drop down list is Manual, and because in the config file it is not custom, the textfield is disabled
<javabsp> You cannot change to another browser, so you the preference is never changed, and stuck with an unsable browser
<lschiere0> oh, so you can't toggle the drop down to reset the preference, so you can't get the field to ungray
<javabsp> unusable*
<lschiere0> yeah, i can see that
<javabsp> Right

committer: Luke Schierer <lschiere@pidgin.im>

src/gtkprefs.c file | annotate | diff | comparison | revisions
src/main.c file | annotate | diff | comparison | revisions
--- a/src/gtkprefs.c	Mon Jun 09 02:04:05 2003 +0000
+++ b/src/gtkprefs.c	Mon Jun 09 02:21:55 2003 +0000
@@ -1270,6 +1270,7 @@
 
 	GList *browsers = NULL;
 	int i = 0;
+	char *browser_setting = (char *)gaim_prefs_get_string("/gaim/gtk/browsers/browser");
 
 	browsers = g_list_prepend(browsers, "custom");
 	browsers = g_list_prepend(browsers, _("Manual"));
@@ -1279,9 +1280,14 @@
 			browsers = g_list_prepend(browsers,
 									  possible_browsers[i].command);
 			browsers = g_list_prepend(browsers, _(possible_browsers[i].name));
+			if(!strcmp(possible_browsers[i].command, browser_setting))
+				browser_setting = NULL;
 		}
 	}
 
+	if(browser_setting)
+		gaim_prefs_set_string("/gaim/gtk/browsers/browser", "custom");
+
 	return browsers;
 }
 
--- a/src/main.c	Mon Jun 09 02:04:05 2003 +0000
+++ b/src/main.c	Mon Jun 09 02:21:55 2003 +0000
@@ -656,6 +656,7 @@
 #ifdef DEBUG
 	opt_debug = 1;
 #endif
+abort();
 #ifdef ENABLE_NLS
 	bindtextdomain(PACKAGE, LOCALEDIR);
 	bind_textdomain_codeset(PACKAGE, "UTF-8");

mercurial