/gtk/eog-manage-raws

To get this branch, use:
bzr branch http://bzr.ed.am/gtk/eog-manage-raws

« back to all changes in this revision

Viewing changes to src/raw-tools.py

  • Committer: edam
  • Date: 2012-01-21 23:25:05 UTC
  • Revision ID: edam@waxworlds.org-20120121232505-7ayo5dvod8o0rd17
switch to gir Gio

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
# version 0.1
24
24
 
25
 
from gi.repository import GObject, Gtk, Eog
26
 
import os, re, gio
 
25
from gi.repository import GObject, Gtk, Eog, Gio
 
26
import os, re
27
27
 
28
28
class RawToolsPlugin( GObject.Object, Eog.WindowActivatable ):
29
29
 
300
300
 
301
301
                # delete the files
302
302
                for file in files:
303
 
                    gio.file_parse_name( path + '/' + file ).trash()
 
303
                    Gio.file_parse_name( path + '/' + file ).trash( None )
304
304
                    #os.unlink( path + '/' + file )
305
305
 
306
306
                self.update_status( window )