Changeset 10023 for trunk/src/config.py

Show
Ignore:
Timestamp:
07/25/08 02:43:01 (4 months ago)
Author:
js
Message:

* Better rendering of mood in roster.

(Only takes space if needed now)

* Possibility to disable display of mood in roster from preferences.

(Also works on the fly with the new rendering method)

* Minor improvements in the translation of the moods to German.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/config.py

    r9906 r10023  
    9393                # Display avatars in roster 
    9494                st = gajim.config.get('show_avatars_in_roster') 
    95                 self.xml.get_widget('show_avatars_in_roster_checkbutton').set_active(st) 
     95                self.xml.get_widget('show_avatars_in_roster_checkbutton'). \ 
     96                        set_active(st)  
    9697 
    9798                # Display status msg under contact name in roster 
    9899                st = gajim.config.get('show_status_msgs_in_roster') 
    99                 self.xml.get_widget('show_status_msgs_in_roster_checkbutton').set_active( 
    100                         st) 
     100                self.xml.get_widget('show_status_msgs_in_roster_checkbutton'). \ 
     101                        set_active( st) 
     102 
     103                # Display mood in roster 
     104                st = gajim.config.get('show_mood_in_roster') 
     105                self.xml.get_widget('show_mood_in_roster_checkbutton'). \ 
     106                        set_active(st) 
    101107 
    102108                # Sort contacts by show 
     
    527533                        if ctl.type_id == message_control.TYPE_GC: 
    528534                                ctl.update_ui() 
     535 
     536        def on_show_mood_in_roster_checkbutton_toggled(self, widget): 
     537                self.on_checkbutton_toggled(widget, 'show_mood_in_roster') 
     538                gajim.interface.roster.setup_and_draw_roster() 
    529539 
    530540        def on_sort_by_show_checkbutton_toggled(self, widget):