diff options
| author | jvoisin | 2011-07-17 21:30:45 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-17 21:30:45 +0200 |
| commit | fe68c6541536c6b65b7193ef07bec0ac39feeaed (patch) | |
| tree | 59c6027e9c6700ff4ace52bb0d4812419668dcbb /gui.py | |
| parent | c07c612a4d81ed4f84f313e8a9eee3f90e7b53ab (diff) | |
Change icon, and fix a minor bug in "check"
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 7 |
1 files changed, 4 insertions, 3 deletions
| @@ -65,12 +65,13 @@ class ListStoreApp: | |||
| 65 | toolbutton.connect('clicked', self.add_files) | 65 | toolbutton.connect('clicked', self.add_files) |
| 66 | toolbar.add(toolbutton) | 66 | toolbar.add(toolbutton) |
| 67 | 67 | ||
| 68 | toolbutton = Gtk.ToolButton(label = 'Clean', stock_id=Gtk.STOCK_CLEAR) | 68 | toolbutton = Gtk.ToolButton(label = 'Clean', |
| 69 | stock_id=Gtk.STOCK_PRINT_REPORT) | ||
| 69 | toolbutton.connect('clicked', self.mat_clean) | 70 | toolbutton.connect('clicked', self.mat_clean) |
| 70 | toolbar.add(toolbutton) | 71 | toolbar.add(toolbutton) |
| 71 | 72 | ||
| 72 | toolbutton = Gtk.ToolButton(label='Brute Clean', | 73 | toolbutton = Gtk.ToolButton(label='Brute Clean', |
| 73 | stock_id=Gtk.STOCK_CLEAR) | 74 | stock_id=Gtk.STOCK_PRINT_WARNING) |
| 74 | toolbar.add(toolbutton) | 75 | toolbar.add(toolbutton) |
| 75 | 76 | ||
| 76 | toolbutton = Gtk.ToolButton(label='Check', stock_id=Gtk.STOCK_FIND) | 77 | toolbutton = Gtk.ToolButton(label='Check', stock_id=Gtk.STOCK_FIND) |
| @@ -175,7 +176,7 @@ class ListStoreApp: | |||
| 175 | string = 'clean' | 176 | string = 'clean' |
| 176 | else: | 177 | else: |
| 177 | string = 'dirty' | 178 | string = 'dirty' |
| 178 | self.model.append([item.shortname, item.mime, string]) | 179 | self.model.append([item.filename, item.mime, string]) |
| 179 | 180 | ||
| 180 | def mat_clean(self, button):#I am dirty too | 181 | def mat_clean(self, button):#I am dirty too |
| 181 | self.model.clear() | 182 | self.model.clear() |
