Mercurial > pidgin
comparison src/gtkprivacy.c @ 10704:a4ae4fb7f939
[gaim-migrate @ 12288]
Make the blist.xml saving schedule function public and call it
whenever privacy settings are changed.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 20 Mar 2005 01:42:53 +0000 |
parents | f175ff63d571 |
children | 61c7edaca933 |
comparison
equal
deleted
inserted
replaced
10703:a7486f12e56f | 10704:a4ae4fb7f939 |
---|---|
237 | 237 |
238 rebuild_allow_list(dialog); | 238 rebuild_allow_list(dialog); |
239 rebuild_block_list(dialog); | 239 rebuild_block_list(dialog); |
240 } | 240 } |
241 | 241 |
242 /* | |
243 * TODO: Setting the permit/deny setting needs to go through privacy.c | |
244 * Even better: the privacy API needs to not suck. | |
245 */ | |
242 static void | 246 static void |
243 type_changed_cb(GtkOptionMenu *optmenu, GaimGtkPrivacyDialog *dialog) | 247 type_changed_cb(GtkOptionMenu *optmenu, GaimGtkPrivacyDialog *dialog) |
244 { | 248 { |
245 int new_type = menu_entries[gtk_option_menu_get_history(optmenu)].num; | 249 int new_type = menu_entries[gtk_option_menu_get_history(optmenu)].num; |
246 | 250 |
260 gtk_widget_show(dialog->block_widget); | 264 gtk_widget_show(dialog->block_widget); |
261 gtk_widget_show(dialog->button_box); | 265 gtk_widget_show(dialog->button_box); |
262 dialog->in_allow_list = FALSE; | 266 dialog->in_allow_list = FALSE; |
263 } | 267 } |
264 | 268 |
265 gaim_blist_sync(); | 269 gaim_blist_schedule_save(); |
266 } | 270 } |
267 | 271 |
268 static void | 272 static void |
269 add_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) | 273 add_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) |
270 { | 274 { |