Mercurial > pidgin.yaz
comparison src/gtkprivacy.c @ 10147:a485dedd6ba2
[gaim-migrate @ 11224]
Minor privacy dialog changes from Bleeter.
1. Force-save blist.xml when privacy stuff changes instead of when Gaim
shutdowns (or when something else triggers a blist-save)
2. Don't redraw stuff in the dialog if you select the same privacy option
that was previously selected.
Someone can commit this to oldstatus, if you really want. I'm not
going to because I don't want to test it and I don't want to be
responsible if it breaks something there, and I don't consider the
changes to be that dire.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 27 Oct 2004 22:24:51 +0000 |
parents | 4a15962c344a |
children | 946aa96fa103 |
comparison
equal
deleted
inserted
replaced
10146:ffab99688e5f | 10147:a485dedd6ba2 |
---|---|
241 static void | 241 static void |
242 type_changed_cb(GtkOptionMenu *optmenu, GaimGtkPrivacyDialog *dialog) | 242 type_changed_cb(GtkOptionMenu *optmenu, GaimGtkPrivacyDialog *dialog) |
243 { | 243 { |
244 int new_type = menu_entries[gtk_option_menu_get_history(optmenu)].num; | 244 int new_type = menu_entries[gtk_option_menu_get_history(optmenu)].num; |
245 | 245 |
246 if (dialog->account->perm_deny == new_type) | |
247 return; | |
248 | |
246 dialog->account->perm_deny = new_type; | 249 dialog->account->perm_deny = new_type; |
247 serv_set_permit_deny(gaim_account_get_connection(dialog->account)); | 250 serv_set_permit_deny(gaim_account_get_connection(dialog->account)); |
248 | 251 |
249 gtk_widget_hide(dialog->allow_widget); | 252 gtk_widget_hide(dialog->allow_widget); |
250 gtk_widget_hide(dialog->block_widget); | 253 gtk_widget_hide(dialog->block_widget); |
258 else if (new_type == GAIM_PRIVACY_DENY_USERS) { | 261 else if (new_type == GAIM_PRIVACY_DENY_USERS) { |
259 gtk_widget_show(dialog->block_widget); | 262 gtk_widget_show(dialog->block_widget); |
260 gtk_widget_show(dialog->button_box); | 263 gtk_widget_show(dialog->button_box); |
261 dialog->in_allow_list = FALSE; | 264 dialog->in_allow_list = FALSE; |
262 } | 265 } |
266 | |
267 gaim_blist_sync(); | |
263 } | 268 } |
264 | 269 |
265 static void | 270 static void |
266 add_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) | 271 add_cb(GtkWidget *button, GaimGtkPrivacyDialog *dialog) |
267 { | 272 { |