예제 #1
0
파일: gui.py 프로젝트: svn2github/Xpra
 def set_icon(self, basefilename):
     if not self.tray:
         return
     with_ext = "%s.ico" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in win32 icon dir: %s", with_ext, icon_dir)
         return
     self.tray.set_icon(filename)
예제 #2
0
파일: gui.py 프로젝트: svn2github/Xpra
 def set_icon(self, basefilename):
     if not self.macapp:
         return
     with_ext = "%s.png" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in osx icon dir: %s", with_ext, icon_dir)
         return
     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
     self.macapp.set_dock_icon_pixbuf(pixbuf)
예제 #3
0
 def set_icon(self, basefilename):
     if not self.tray:
         return
     with_ext = "%s.ico" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in win32 icon dir: %s",
                   with_ext, icon_dir)
         return
     self.tray.set_icon(filename)
예제 #4
0
 def set_icon(self, basefilename):
     if not self.macapp:
         return
     with_ext = "%s.png" % basefilename
     icon_dir = get_icon_dir()
     filename = os.path.join(icon_dir, with_ext)
     if not os.path.exists(filename):
         log.error("could not find icon '%s' in osx icon dir: %s", with_ext,
                   icon_dir)
         return
     pixbuf = gtk.gdk.pixbuf_new_from_file(filename)
     self.macapp.set_dock_icon_pixbuf(pixbuf)