Changeset 120

Show
Ignore:
Timestamp:
Thu Sep 21 09:37:16 2006
Author:
manatlan
Message:

- on win : it should be now possible to import folder with accentued
chars
- on win : key Insert should now work in the viewer

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/plugins/show/__init__.py

    r117 r120  
    85 85         self.draw()  
    86 86     def onKeyPress(self, widget, b):  
    87           if (b.keyval == 65365) or (b.keyval == 65362) or (b.keyval == 65361):  
      87         key= gtk.gdk.keyval_name(b.keyval).lower()  
      88         print key  
      89         if (key == "page_up") or (key == "up") or (key == "left"):  
    88 90             self.idx-=1  
    89 91             self.draw()  
    90           elif b.keyval == 65366 or (b.keyval == 65363) or (b.keyval ==65364):  
      92         if (key == "page_down") or (key == "down") or (key == "right"):  
    90 92             self.idx+=1  
    91 93             self.draw()  
    92           elif b.keyval == 65360: # HOME  
      94         elif key=="home":  
    92 94             self.idx=0  
    93 95             self.draw()  
    94           elif b.keyval == 65367: # END  
      96         elif key=="end":  
    94 96             self.idx=len(self.ln) -1  
    95 97             self.draw()  
    96           elif b.keyval == 65307: #ESC  
      98         elif key=="escape":  
    96 98             self.quit();  
    97 99  
    98           elif b.keyval == 32: #SPACE  
      100         elif key=="space":  
    98 100             # add/remove this photo to selection  
    99 101             node=self.ln[self.idx]  
     
    114 116             #~ self.zoom=max(self.zoom-1,1)  
    115 117             #~ self.show()  
    116           elif b.keyval==99 : #c  
      118         elif key=="c":  
    116 118             # clear selection  
    117 119             self.selected=[]  
    118 120             self.draw()  
    119           elif b.keyval==65379 : #key Insert  
      121         elif key=="insert":  
    119 121             self.needInfo = not self.needInfo  
    120 122             self.draw()  
  • trunk/jbrout.py

    r117 r120  
    1884 1884             elif path.startswith('file:'): # xffm  
    1885 1885                 path = path[5:] # 5 is len('file:')  
    1886               return path  
      1886             return unicode(path)  
    1886 1886  
    1887 1887         context, x, y, selection, info, time = args  
     
    1896 1896             path = get_file_path_from_dnd_dropped_uri(uri)  
    1897 1897             if os.path.isdir(path):  
    1898                   list.append(path.decode(sys.getfilesystemencoding()))  
      1898                 list.append(path)  
    1898 1898  
    1899 1899         # old way