Exemple #1
0
    def get_pixbuf(self):
        scanner = FileScanner()
        files = scanner.get_files_from_dir(self.directory)

        if files:
            file_manager = FileManager(on_list_modified=lambda: None)
            file_manager.set_files(files)
            file_manager.sort_by_date(True)
            file_manager.go_first()
            return self.get_mixed_thumbnail(file_manager.get_current_file(), self.default_thumbnail_size)
        else:
            dir_icon = GTKIconImage(gtk.STOCK_DIRECTORY, self.default_gtk_icon_size)
            return dir_icon.get_pixbuf()
Exemple #2
0
 def initial_data(self):
     unknown_icon = GTKIconImage(gtk.STOCK_MISSING_IMAGE, self.size)
     return (unknown_icon.get_pixbuf(), 
             self.item.get_basename(),
             self.item.get_filename())