Example #1
0
    def __init__(self, config):
        '''constructor'''
        BaseTable.__init__(self, 4, 1)
        self.config = config

        self.append_entry_default('Format', 'config.music_format', config.music_format)
        self.append_check(_('Set song cover as avatar'), 'config.change_avatar')
Example #2
0
    def __init__(self, config):
        '''constructor'''
        BaseTable.__init__(self, 4, 1)
        self.config = config

        self.append_entry_default(_('Format'), 'format', \
                                 'config.music_format', config.music_format)
        self.append_check(_('Set song cover as avatar'),
                          'config.change_avatar')
    def __init__(self, session):
        """constructor
        """
        BaseTable.__init__(self, 4, 1)
        self.first = False
        self.set_border_width(5)
        self.session = session
        self.main_vbox_conv = ExtensionMainVBox(session)
        self.main_vbox_emot = ExtensionMainVBox(session)
        self.main_vbox_snd = ExtensionMainVBox(session)
        self.main_vbox_images = ExtensionMainVBox(session)

        self.thc_com = {}
        self.thc_cur_name = 'Community'

        self.thc_com['Community'] = ThemesCollection('emesene-community-themes')
        self.thc_com['Supported'] = ThemesCollection('emesene-supported-themes')

        exts_hbox = gtk.VBox()

        exts_hbox.pack_start(self.main_vbox_conv)
        exts_hbox.pack_start(self.main_vbox_emot)
        exts_hbox.pack_start(self.main_vbox_snd)
        exts_hbox.pack_start(self.main_vbox_images)

        button_hbox = gtk.HButtonBox()
        button_hbox.set_layout(gtk.BUTTONBOX_END)
        button_hbox.set_border_width(2)

        self.button_start = gtk.Button("Refresh")
        self.button_start.connect('clicked', self.start_update)

        self.cmb_source = gtk.ComboBox()
        cmb_model_sources = gtk.ListStore(str)

        iter=cmb_model_sources.append()
        cmb_model_sources.set_value(iter, 0, "Community")
        iter=cmb_model_sources.append()
        cmb_model_sources.set_value(iter, 0, "Supported")
        
        self.cmb_source.set_model(cmb_model_sources)
        cell = gtk.CellRendererText()

        self.cmb_source.pack_start(cell, True)
        self.cmb_source.add_attribute(cell, 'text',0)
        self.cmb_source.set_active(0)

        self.cmb_source.connect('changed', self.on_change_theme_source)
        button_hbox.pack_start(self.cmb_source, fill = False)
        button_hbox.pack_start(self.button_start, fill = False)

        exts_hbox.pack_start(button_hbox)

        self.add(exts_hbox)
        self.show_all()
    def __init__(self, config):
        '''constructor'''
        BaseTable.__init__(self, 4, 1)
        self.config = config

        '''To allow for the plugin to work, the format is (termporary) disabled
        self.append_entry_default(_('Message Format: '), 'music', \
                                 'config.music_format', config.music_format)'''
        self.append_markup(_('Message Format: ') + "%TITLE% - %ARTIST%")
        self.append_check(_('Use the album art as an avatar'), 'config.change_avatar')
        self.append_markup(_('See the "listening to" option in the extentions tab of the'))
	self.append_markup(_('preference window to select a preferred media player'))
 def __init__(self, config):
     '''constructor'''
     BaseTable.__init__(self, 4, 1)
     self.config = config
     '''To allow for the plugin to work, the format is (termporary) disabled
     self.append_entry_default(_('Message Format: '), 'music', \
                              'config.music_format', config.music_format)'''
     self.append_markup(_('Message Format: ') + "%TITLE% - %ARTIST%")
     self.append_check(_('Use the album art as an avatar'),
                       'config.change_avatar')
     self.append_markup(
         _('See the "listening to" option in the extentions tab of the'))
     self.append_markup(
         _('preference window to select a preferred media player'))
Example #6
0
    def __init__(self):
        """constructor"""
        BaseTable.__init__(self, 4, 1)

        # This should be loaded from a config option
        self.format_default = "%ARTIST% - %ALBUM% - %TITLE%"
        self.format = self.format_default
        BaseTable.append_entry_default(self, "Format", "format", self.format_default)

        # This should be loaded from a config option
        self.change_avatar = True
        BaseTable.append_check(self, _("Set song cover as avatar"), "change_avatar")
Example #7
0
    def __init__(self):
        '''constructor'''
        BaseTable.__init__(self, 4, 1)

        # This should be loaded from a config option
        self.format_default = "%ARTIST% - %ALBUM% - %TITLE%"
        self.format = self.format_default
        BaseTable.append_entry_default(self,
            'Format', 'format', self.format_default)

        # This should be loaded from a config option
        self.change_avatar = True
        BaseTable.append_check(self,
            _('Set song cover as avatar'), 'change_avatar')
Example #8
0
    def __init__(self):
        '''constructor'''
        BaseTable.__init__(self, 4, 1)

        # This should be loaded from a config option
        self.format_default = "%ARTIST% - %ALBUM% - %TITLE%"
        self.format = self.format_default
        BaseTable.append_entry_default(self, 'Format', 'format',
                                       self.format_default)

        # This should be loaded from a config option
        self.change_avatar = True
        BaseTable.append_check(self, _('Set song cover as avatar'),
                               'change_avatar')