diff options
| author | jvoisin | 2011-07-21 13:12:57 +0200 |
|---|---|---|
| committer | jvoisin | 2011-07-21 13:12:57 +0200 |
| commit | fbab11e43be5e88970e5ed00d8f216d7952a36a1 (patch) | |
| tree | a4eb10e8ab1b948c7feb5d982c1ea9c81c64bfc3 /gui.py | |
| parent | bafdb83e6103da640e1241b14deed866218ebc57 (diff) | |
Add some tooltips
Diffstat (limited to 'gui.py')
| -rw-r--r-- | gui.py | 6 |
1 files changed, 6 insertions, 0 deletions
| @@ -81,19 +81,23 @@ class ListStoreApp: | |||
| 81 | 81 | ||
| 82 | toolbutton = Gtk.ToolButton(label = 'Add', stock_id=Gtk.STOCK_ADD) | 82 | toolbutton = Gtk.ToolButton(label = 'Add', stock_id=Gtk.STOCK_ADD) |
| 83 | toolbutton.connect('clicked', self.add_files) | 83 | toolbutton.connect('clicked', self.add_files) |
| 84 | toolbutton.set_tooltip_text('Add files') | ||
| 84 | toolbar.add(toolbutton) | 85 | toolbar.add(toolbutton) |
| 85 | 86 | ||
| 86 | toolbutton = Gtk.ToolButton(label = 'Clean', | 87 | toolbutton = Gtk.ToolButton(label = 'Clean', |
| 87 | stock_id=Gtk.STOCK_PRINT_REPORT) | 88 | stock_id=Gtk.STOCK_PRINT_REPORT) |
| 88 | toolbutton.connect('clicked', self.mat_clean) | 89 | toolbutton.connect('clicked', self.mat_clean) |
| 90 | toolbutton.set_tooltip_text('Clean selected files without data loss') | ||
| 89 | toolbar.add(toolbutton) | 91 | toolbar.add(toolbutton) |
| 90 | 92 | ||
| 91 | toolbutton = Gtk.ToolButton(label='Brute Clean', | 93 | toolbutton = Gtk.ToolButton(label='Brute Clean', |
| 92 | stock_id=Gtk.STOCK_PRINT_WARNING) | 94 | stock_id=Gtk.STOCK_PRINT_WARNING) |
| 95 | toolbutton.set_tooltip_text('Clean selected files with possible data loss') | ||
| 93 | toolbar.add(toolbutton) | 96 | toolbar.add(toolbutton) |
| 94 | 97 | ||
| 95 | toolbutton = Gtk.ToolButton(label='Check', stock_id=Gtk.STOCK_FIND) | 98 | toolbutton = Gtk.ToolButton(label='Check', stock_id=Gtk.STOCK_FIND) |
| 96 | toolbutton.connect('clicked', self.mat_check) | 99 | toolbutton.connect('clicked', self.mat_check) |
| 100 | toolbutton.set_tooltip_text('Check selected files for harmful meta') | ||
| 97 | toolbar.add(toolbutton) | 101 | toolbar.add(toolbutton) |
| 98 | 102 | ||
| 99 | toolbutton = Gtk.ToolButton(stock_id=Gtk.STOCK_QUIT) | 103 | toolbutton = Gtk.ToolButton(stock_id=Gtk.STOCK_QUIT) |
| @@ -256,10 +260,12 @@ class ListStoreApp: | |||
| 256 | 260 | ||
| 257 | force = Gtk.CheckButton('Force Clean', False) | 261 | force = Gtk.CheckButton('Force Clean', False) |
| 258 | force.connect('toggled', self.invert, 'force') | 262 | force.connect('toggled', self.invert, 'force') |
| 263 | force.set_tooltip_text('Do not check if already clean before cleaning.') | ||
| 259 | force.set_active(self.force) | 264 | force.set_active(self.force) |
| 260 | 265 | ||
| 261 | backup = Gtk.CheckButton('Backup', False) | 266 | backup = Gtk.CheckButton('Backup', False) |
| 262 | backup.connect('toggled', self.invert, 'backup') | 267 | backup.connect('toggled', self.invert, 'backup') |
| 268 | backup.set_tooltip_text('Keep a backup copy.') | ||
| 263 | backup.set_active(self.backup) | 269 | backup.set_active(self.backup) |
| 264 | 270 | ||
| 265 | table.attach_defaults(force, 0, 1, 0, 1) | 271 | table.attach_defaults(force, 0, 1, 0, 1) |
