changeset 288fc98b4e99 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=288fc98b4e99
description: add advanced option to disable showing affiliation in muc. Fixes 
#5534

diffstat:

 src/common/config.py     |  1 +
 src/groupchat_control.py |  3 ++-
 2 files changed, 3 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 5483a0f99e8c -r 288fc98b4e99 src/common/config.py
--- a/src/common/config.py      Thu Jan 07 19:46:32 2010 +0100
+++ b/src/common/config.py      Thu Jan 07 20:52:16 2010 +0100
@@ -279,6 +279,7 @@
                'video_output_device': [opt_str, 'autovideosink'],
                'use_stun_server': [opt_bool, True, _('If True, Gajim will try 
to use a STUN server when using jingle. The one in "stun_server" option, or the 
one given by the jabber server.')],
                'stun_server': [opt_str, '', _('STUN server to use when using 
jingle')],
+               'show_affiliation_in_groupchat': [opt_bool, True, _('If True, 
Gajim will show affiliation of groupchat occupants by adding a colored square 
to the status icon')],
        }
 
        __options_per_key = {
diff -r 5483a0f99e8c -r 288fc98b4e99 src/groupchat_control.py
--- a/src/groupchat_control.py  Thu Jan 07 19:46:32 2010 +0100
+++ b/src/groupchat_control.py  Thu Jan 07 20:52:16 2010 +0100
@@ -1136,7 +1136,8 @@
                                         '%s</span>') % (colorstring, 
gobject.markup_escape_text(status))
 
                if image.get_storage_type() == gtk.IMAGE_PIXBUF and \
-               gc_contact.affiliation != 'none':
+               gc_contact.affiliation != 'none' and gajim.config.get(
+               'show_affiliation_in_groupchat'):
                        pixbuf1 = image.get_pixbuf().copy()
                        pixbuf2 = gtk.gdk.Pixbuf(gtk.gdk.COLORSPACE_RGB, True, 
8, 4, 4)
                        if gc_contact.affiliation == 'owner':
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to