def __init__(self, name,id_provider = None): Provider.__init__(self, name) self.id_provider = id_provider if not id_provider: self.id_provider = name self.id_provider = self.id_provider.lower() self.icon = gtk.gdk.pixbuf_new_from_file(config.add_data_prefix(self.id_provider + '.png'))
def __init__(self, name, id_provider = None): Provider.__init__(self, name) self.id_provider = id_provider if not id_provider: self.id_provider = name self.id_provider = self.id_provider.lower() self.icon = gtk.gdk.pixbuf_new_from_file(config.add_data_prefix(self.id_provider + '.png'))
def __init__(self, name, id_provider=None): Provider.__init__(self, name) self.id_provider = id_provider if not id_provider: self.id_provider = name self.id_provider = self.id_provider.lower() self.icon_path = config.add_data_prefix(self.id_provider + '.png') self.icon = GdkPixbuf.Pixbuf.new_from_file(self.icon_path) self.gicon = Gio.FileIcon.new(Gio.File.new_for_path(self.icon_path))
def __init__(self, name, id_provider = None): Provider.__init__(self, name) self.id_provider = id_provider if not id_provider: self.id_provider = name self.id_provider = self.id_provider.lower() self.icon_path = config.add_data_prefix(self.id_provider + '.png') self.icon = GdkPixbuf.Pixbuf.new_from_file(self.icon_path) self.gicon = Gio.FileIcon.new(Gio.File.new_for_path(self.icon_path))
def __init__(self): if GMailProvider.__default: raise GMailProvider.__default Provider.__init__(self, "GMail") self.icon = gtk.gdk.pixbuf_new_from_file(config.add_data_prefix('gmail.png'))
def __init__(self): if GMailProvider.__default: raise GMailProvider.__default Provider.__init__(self, "GMail") self.icon = gtk.gdk.pixbuf_new_from_file( config.add_data_prefix('gmail.png'))