comparison src/gtkprefs.c @ 5819:7bdf66ab4fdd

[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: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Mon, 09 Jun 2003 02:21:55 +0000
parents f63a008726c6
children 6d24d7ce463e
comparison
equal deleted inserted replaced
5818:eb9cfee31244 5819:7bdf66ab4fdd
1268 }; 1268 };
1269 static const int num_possible_browsers = 5; 1269 static const int num_possible_browsers = 5;
1270 1270
1271 GList *browsers = NULL; 1271 GList *browsers = NULL;
1272 int i = 0; 1272 int i = 0;
1273 char *browser_setting = (char *)gaim_prefs_get_string("/gaim/gtk/browsers/browser");
1273 1274
1274 browsers = g_list_prepend(browsers, "custom"); 1275 browsers = g_list_prepend(browsers, "custom");
1275 browsers = g_list_prepend(browsers, _("Manual")); 1276 browsers = g_list_prepend(browsers, _("Manual"));
1276 1277
1277 for (i = 0; i < num_possible_browsers; i++) { 1278 for (i = 0; i < num_possible_browsers; i++) {
1278 if (program_is_valid(possible_browsers[i].command)) { 1279 if (program_is_valid(possible_browsers[i].command)) {
1279 browsers = g_list_prepend(browsers, 1280 browsers = g_list_prepend(browsers,
1280 possible_browsers[i].command); 1281 possible_browsers[i].command);
1281 browsers = g_list_prepend(browsers, _(possible_browsers[i].name)); 1282 browsers = g_list_prepend(browsers, _(possible_browsers[i].name));
1283 if(!strcmp(possible_browsers[i].command, browser_setting))
1284 browser_setting = NULL;
1282 } 1285 }
1283 } 1286 }
1287
1288 if(browser_setting)
1289 gaim_prefs_set_string("/gaim/gtk/browsers/browser", "custom");
1284 1290
1285 return browsers; 1291 return browsers;
1286 } 1292 }
1287 1293
1288 static void 1294 static void