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'))
Exemplo n.º 2
0
 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'))
Exemplo n.º 3
0
 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'))
Exemplo n.º 6
0
 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'))