Mercurial > pidgin.yaz
comparison src/gaimrc.c @ 6144:7ec9166fd2c8
[gaim-migrate @ 6618]
importing is important
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Wed, 16 Jul 2003 00:59:28 +0000 |
parents | e4a5085fb870 |
children | a97b47ff5a7e |
comparison
equal
deleted
inserted
replaced
6143:821bdd38db23 | 6144:7ec9166fd2c8 |
---|---|
35 | 35 |
36 #include "gaim.h" | 36 #include "gaim.h" |
37 | 37 |
38 #include "gtkpounce.h" | 38 #include "gtkpounce.h" |
39 #include "gtksound.h" | 39 #include "gtksound.h" |
40 #include "gtkplugin.h" | |
40 | 41 |
41 /* for people like myself, who are too lazy to add an away msg :) */ | 42 /* for people like myself, who are too lazy to add an away msg :) */ |
42 #define BORING_DEFAULT_AWAY_MSG _("sorry, i ran out for a while. bbl") | 43 #define BORING_DEFAULT_AWAY_MSG _("sorry, i ran out for a while. bbl") |
43 #define MAX_VALUES 10 | 44 #define MAX_VALUES 10 |
44 | 45 |
498 p = parse_line(buf, &parse_buffer); | 499 p = parse_line(buf, &parse_buffer); |
499 if (!strcmp(p->option, "plugin")) { | 500 if (!strcmp(p->option, "plugin")) { |
500 gaim_plugin_load(gaim_plugin_probe(p->value[0])); | 501 gaim_plugin_load(gaim_plugin_probe(p->value[0])); |
501 } | 502 } |
502 } | 503 } |
504 gaim_gtk_plugins_save(); | |
503 } | 505 } |
504 | 506 |
505 static GaimAccount *gaimrc_read_user(FILE *f) | 507 static GaimAccount *gaimrc_read_user(FILE *f) |
506 { | 508 { |
507 struct parse parse_buffer; | 509 struct parse parse_buffer; |
1172 gaim_prefs_set_int("/gaim/gtk/blist/x", atoi(p->value[0])); | 1174 gaim_prefs_set_int("/gaim/gtk/blist/x", atoi(p->value[0])); |
1173 gaim_prefs_set_int("/gaim/gtk/blist/y", atoi(p->value[1])); | 1175 gaim_prefs_set_int("/gaim/gtk/blist/y", atoi(p->value[1])); |
1174 gaim_prefs_set_int("/gaim/gtk/blist/width", atoi(p->value[2])); | 1176 gaim_prefs_set_int("/gaim/gtk/blist/width", atoi(p->value[2])); |
1175 gaim_prefs_set_int("/gaim/gtk/blist/height", atoi(p->value[3])); | 1177 gaim_prefs_set_int("/gaim/gtk/blist/height", atoi(p->value[3])); |
1176 } else if (!strcmp(p->option, "sort_method")) { | 1178 } else if (!strcmp(p->option, "sort_method")) { |
1177 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", p->value[0]); | 1179 if(!strcmp(p->value[0], _("Alphabetical"))) |
1180 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", "alphabetical"); | |
1181 else if(!strcmp(p->value[0], _("By status"))) | |
1182 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", "status"); | |
1183 else if(!strcmp(p->value[0], _("By log size"))) | |
1184 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", "log_size"); | |
1185 else | |
1186 gaim_prefs_set_string("/gaim/gtk/blist/sort_type", "none"); | |
1178 } | 1187 } |
1179 | 1188 |
1180 } | 1189 } |
1181 | 1190 |
1182 if (read_general) { | 1191 if (read_general) { |