Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 12849:c0fbdea8828b
[gaim-migrate @ 15199]
SF Patch #1230429 from Jean-Yves Lefort
"Block instant messages in core if a prpl does not
support privacy."
I modified this to use the gaim_privacy_check() Sadrul added a while back. I
also cleaned up the loose end, rather than leaving a function that always
returned TRUE. Finally, I added the same check to the chat invite handler.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 12 Jan 2006 06:44:23 +0000 |
parents | ff267281e882 |
children | d486bb706e82 |
comparison
equal
deleted
inserted
replaced
12848:d26e3314c650 | 12849:c0fbdea8828b |
---|---|
3248 | 3248 |
3249 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Buddy Pounces")); | 3249 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Buddy Pounces")); |
3250 gtk_widget_set_sensitive(widget, (gaim_connections_get_all() != NULL)); | 3250 gtk_widget_set_sensitive(widget, (gaim_connections_get_all() != NULL)); |
3251 | 3251 |
3252 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Privacy")); | 3252 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Privacy")); |
3253 gtk_widget_set_sensitive(widget, gaim_gtk_privacy_is_showable()); | |
3254 | 3253 |
3255 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Room List")); | 3254 widget = gtk_item_factory_get_widget(gtkblist->ift, N_("/Tools/Room List")); |
3256 gtk_widget_set_sensitive(widget, gaim_gtk_roomlist_is_showable()); | 3255 gtk_widget_set_sensitive(widget, gaim_gtk_roomlist_is_showable()); |
3257 } | 3256 } |
3258 | 3257 |