Changeset 9821 for branches/plugin-system/plugins/roster_buttons/plugin.py
- Timestamp:
- 06/18/08 22:45:22 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/plugin-system/plugins/roster_buttons/plugin.py
r9803 r9821 20 20 21 21 :author: Mateusz Biliński <mateusz@bilinski.it> 22 :since: 06/10/200822 :since: 14th June 2008 23 23 :copyright: Copyright (2008) Mateusz Biliński <mateusz@bilinski.it> 24 24 :license: GPL … … 45 45 #def __init__(self): 46 46 #super(RosterButtonsPlugin, self).__init__() 47 48 @log_calls('RosterButtonsPlugin') 49 def init(self): 50 #log.debug('self.__path__==%s'%(self.__path__)) 51 self.GLADE_FILE_PATH = self.local_file_path('roster_buttons.glade') 47 52 53 self.roster_vbox = gajim.interface.roster.xml.get_widget('roster_vbox2') 54 self.show_offline_contacts_menuitem = gajim.interface.roster.xml.get_widget('show_offline_contacts_menuitem') 55 48 56 @log_calls('RosterButtonsPlugin') 49 57 def activate(self): 50 #log.debug('self.__path__==%s'%(self.__path__))51 self.GLADE_FILE_PATH = self.local_file_path('roster_buttons.glade')52 58 self.xml = gtk.glade.XML(self.GLADE_FILE_PATH, root='roster_buttons_buttonbox', domain=i18n.APP) 53 59 self.buttonbox = self.xml.get_widget('roster_buttons_buttonbox') 54 60 55 self.roster_vbox = gajim.interface.roster.xml.get_widget('roster_vbox2')56 61 self.roster_vbox.pack_start(self.buttonbox, expand=False) 57 62 self.roster_vbox.reorder_child(self.buttonbox, 0) 58 59 self.show_offline_contacts_menuitem = gajim.interface.roster.xml.get_widget('show_offline_contacts_menuitem')60 61 63 self.xml.signal_autoconnect(self) 62 63 64 64 65 @log_calls('RosterButtonsPlugin') … … 73 74 #gajim.interface.roster.on_show_offline_contacts_menuitem_activate(None) 74 75 self.show_offline_contacts_menuitem.set_active(not self.show_offline_contacts_menuitem.get_active()) 75 76 76 77 77 @log_calls('RosterButtonsPlugin')
