Mercurial > pidgin
comparison src/gtkprivacy.c @ 6646:b89d98f0bf79
[gaim-migrate @ 7171]
The Privacy dialog now displays only accounts that are online, as does the
pounce dialog.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 29 Aug 2003 22:41:23 +0000 |
parents | 01289157fc37 |
children | a230b7bca1fb |
comparison
equal
deleted
inserted
replaced
6645:2fa677eb9e57 | 6646:b89d98f0bf79 |
---|---|
328 close_cb(GtkWidget *button, void *user_data) | 328 close_cb(GtkWidget *button, void *user_data) |
329 { | 329 { |
330 gaim_gtk_privacy_dialog_hide(); | 330 gaim_gtk_privacy_dialog_hide(); |
331 } | 331 } |
332 | 332 |
333 static gboolean | |
334 check_account_func(GaimAccount *account) | |
335 { | |
336 GaimConnection *gc = gaim_account_get_connection(account); | |
337 GaimPluginProtocolInfo *prpl_info = NULL; | |
338 | |
339 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | |
340 | |
341 return (prpl_info->set_permit_deny != NULL); | |
342 } | |
343 | |
333 static GaimGtkPrivacyDialog * | 344 static GaimGtkPrivacyDialog * |
334 privacy_dialog_new(void) | 345 privacy_dialog_new(void) |
335 { | 346 { |
336 GaimGtkPrivacyDialog *dialog; | 347 GaimGtkPrivacyDialog *dialog; |
337 GaimConnection *gc; | 348 GaimConnection *gc; |
386 gtk_widget_show(label); | 397 gtk_widget_show(label); |
387 | 398 |
388 /* Accounts drop-down */ | 399 /* Accounts drop-down */ |
389 dropdown = gaim_gtk_account_option_menu_new(dialog->account, FALSE, | 400 dropdown = gaim_gtk_account_option_menu_new(dialog->account, FALSE, |
390 G_CALLBACK(select_account_cb), | 401 G_CALLBACK(select_account_cb), |
391 dialog); | 402 check_account_func, dialog); |
392 gtk_box_pack_start(GTK_BOX(hbox), dropdown, FALSE, FALSE, 0); | 403 gtk_box_pack_start(GTK_BOX(hbox), dropdown, FALSE, FALSE, 0); |
393 gtk_widget_show(dropdown); | 404 gtk_widget_show(dropdown); |
394 | 405 |
395 /* Add the drop-down list with the allow/block types. */ | 406 /* Add the drop-down list with the allow/block types. */ |
396 dialog->type_menu = gtk_option_menu_new(); | 407 dialog->type_menu = gtk_option_menu_new(); |