summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmat-gui10
1 files changed, 5 insertions, 5 deletions
diff --git a/mat-gui b/mat-gui
index 3ff9670..dded537 100755
--- a/mat-gui
+++ b/mat-gui
@@ -5,7 +5,7 @@
5 Metadata anonymisation toolkit - GUI edition 5 Metadata anonymisation toolkit - GUI edition
6''' 6'''
7 7
8from gi.repository import GObject, Gtk 8from gi.repository import GObject, Gtk, GLib
9from gi.repository import Gdk, GdkPixbuf 9from gi.repository import Gdk, GdkPixbuf
10 10
11import gettext 11import gettext
@@ -150,7 +150,7 @@ class GUI(object):
150 150
151 if not chooser.run(): # Gtk.STOCK_OK 151 if not chooser.run(): # Gtk.STOCK_OK
152 filenames = chooser.get_filenames() 152 filenames = chooser.get_filenames()
153 GObject.idle_add(self.populate(filenames).next) # asynchronous processing 153 GLib.idle_add(self.populate(filenames).next) # asynchronous processing
154 chooser.destroy() 154 chooser.destroy()
155 155
156 def cb_popup_metadata(self, widget, row, col): 156 def cb_popup_metadata(self, widget, row, col):
@@ -271,7 +271,7 @@ non-anonymised) file to output archive'))
271 271
272 dirty_urls = selection.get_uris() 272 dirty_urls = selection.get_uris()
273 cleaned_urls = map(clean_path, dirty_urls) 273 cleaned_urls = map(clean_path, dirty_urls)
274 GObject.idle_add(self.populate(cleaned_urls).next) # asynchronous processing 274 GLib.idle_add(self.populate(cleaned_urls).next) # asynchronous processing
275 275
276 def __add_file_to_treeview(self, filename): 276 def __add_file_to_treeview(self, filename):
277 ''' 277 '''
@@ -294,7 +294,7 @@ non-anonymised) file to output archive'))
294 if not iterator: # if nothing is selected : select everything 294 if not iterator: # if nothing is selected : select everything
295 iterator = range(len(self.liststore)) 295 iterator = range(len(self.liststore))
296 task = func(iterator) # launch func() in an asynchronous way 296 task = func(iterator) # launch func() in an asynchronous way
297 GObject.idle_add(task.next) 297 GLib.idle_add(task.next)
298 298
299 def __invert(self, button, name): 299 def __invert(self, button, name):
300 ''' Invert a preference state ''' 300 ''' Invert a preference state '''
@@ -398,6 +398,6 @@ if __name__ == '__main__':
398 infiles = [arg for arg in sys.argv[1:] if os.path.exists(arg)] 398 infiles = [arg for arg in sys.argv[1:] if os.path.exists(arg)]
399 if infiles: 399 if infiles:
400 task = gui.populate(infiles) 400 task = gui.populate(infiles)
401 GObject.idle_add(task.next) 401 Glib.idle_add(task.next)
402 402
403 Gtk.main() 403 Gtk.main()