diff options
| author | jvoisin | 2013-03-30 18:21:07 +0100 |
|---|---|---|
| committer | jvoisin | 2013-03-30 18:21:07 +0100 |
| commit | 861996f614950c7061097a049efd56f5a0a4b6a5 (patch) | |
| tree | 68e8c730104bbb9991dd1a13ed328c5176db5a0d /mat-gui | |
| parent | b7848465cb833c36843921e32fa4903fe2bc73f4 (diff) | |
Add a "clear list" button
Diffstat (limited to 'mat-gui')
| -rwxr-xr-x | mat-gui | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -121,6 +121,12 @@ class GUI: | |||
| 121 | toolbutton.set_tooltip_text(_('Check selected files for harmful meta')) | 121 | toolbutton.set_tooltip_text(_('Check selected files for harmful meta')) |
| 122 | toolbar.add(toolbutton) | 122 | toolbar.add(toolbutton) |
| 123 | 123 | ||
| 124 | toolbutton = gtk.ToolButton(gtk.STOCK_REMOVE) | ||
| 125 | toolbutton.set_label(_('Clear the filelist')) | ||
| 126 | toolbutton.connect('clicked', lambda x: self.liststore.clear()) | ||
| 127 | toolbutton.set_tooltip_text(_('Clear the filelist')) | ||
| 128 | toolbar.add(toolbutton) | ||
| 129 | |||
| 124 | toolbutton = gtk.ToolButton(stock_id=gtk.STOCK_QUIT) | 130 | toolbutton = gtk.ToolButton(stock_id=gtk.STOCK_QUIT) |
| 125 | toolbutton.set_label(_('Quit')) | 131 | toolbutton.set_label(_('Quit')) |
| 126 | toolbutton.connect('clicked', gtk.main_quit) | 132 | toolbutton.connect('clicked', gtk.main_quit) |
