summaryrefslogtreecommitdiff
path: root/mat-gui
diff options
context:
space:
mode:
authorjvoisin2013-03-30 18:21:07 +0100
committerjvoisin2013-03-30 18:21:07 +0100
commit861996f614950c7061097a049efd56f5a0a4b6a5 (patch)
tree68e8c730104bbb9991dd1a13ed328c5176db5a0d /mat-gui
parentb7848465cb833c36843921e32fa4903fe2bc73f4 (diff)
Add a "clear list" button
Diffstat (limited to 'mat-gui')
-rwxr-xr-xmat-gui6
1 files changed, 6 insertions, 0 deletions
diff --git a/mat-gui b/mat-gui
index 77720e0..4c00e27 100755
--- a/mat-gui
+++ b/mat-gui
@@ -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)