/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/window.py

  • Committer: Adrian Room
  • Date: 2009-12-23 05:17:26 UTC
  • mto: This revision was merged to the branch mainline in revision 684.
  • Revision ID: ingolemo@gmail.com-20091223051726-zfl6dt9hslbyxuuh
Added tooltips and 'important button' status to the olive toolbar buttons

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
        self.tb_refresh_icon.set_from_file(icon_path("refresh.png"))
282
282
        self.tb_refresh = gtk.ToolButton(self.tb_refresh_icon, _i18n("Refresh"))
283
283
        self.tb_refresh.connect('clicked', self.signal.on_menuitem_view_refresh_activate)
 
284
        self.tb_refresh.set_tooltip_text(_i18n("Refresh the file list"))
 
285
        self.tb_refresh.set_is_important(True)
284
286
        self.tb.add(self.tb_refresh)
285
287
        
286
288
        self.tb_diff_icon = gtk.Image()
287
289
        self.tb_diff_icon.set_from_file(icon_path("diff.png"))
288
290
        self.tb_diff = gtk.ToolButton(self.tb_diff_icon, _i18n("Diff"))
289
291
        self.tb_diff.connect('clicked', self.signal.on_menuitem_stats_diff_activate)
 
292
        self.tb_diff.set_tooltip_text(_i18n("View changes since last commit"))
290
293
        self.tb.add(self.tb_diff)
291
294
        
292
295
        self.tb_log_icon = gtk.Image()
293
296
        self.tb_log_icon.set_from_file(icon_path("log.png"))
294
297
        self.tb_log = gtk.ToolButton(self.tb_log_icon, _i18n("Log"))
295
298
        self.tb_log.connect('clicked', self.signal.on_menuitem_stats_log_activate)
 
299
        self.tb_log.set_tooltip_text(_i18n("View the revision history"))
296
300
        self.tb.add(self.tb_log)
297
301
        
298
302
        self.tb.add(gtk.SeparatorToolItem())
301
305
        self.tb_commit_icon.set_from_file(icon_path("commit.png"))
302
306
        self.tb_commit = gtk.ToolButton(self.tb_commit_icon, _i18n("Commit"))
303
307
        self.tb_commit.connect('clicked', self.signal.on_menuitem_branch_commit_activate)
 
308
        self.tb_commit.set_tooltip_text(_i18n("Commit changes to the current branch"))
 
309
        self.tb_commit.set_is_important(True)
304
310
        self.tb.add(self.tb_commit)
305
311
        
306
312
        self.tb.add(gtk.SeparatorToolItem())
309
315
        self.tb_pull_icon.set_from_file(icon_path("pull.png"))
310
316
        self.tb_pull = gtk.ToolButton(self.tb_pull_icon, _i18n("Pull"))
311
317
        self.tb_pull.connect('clicked', self.signal.on_menuitem_branch_pull_activate)
 
318
        self.tb_pull.set_tooltip_text(_i18n("Pull changes from the parent branch"))
312
319
        self.tb.add(self.tb_pull)
313
320
        
314
321
        self.tb_push_icon = gtk.Image()
315
322
        self.tb_push_icon.set_from_file(icon_path("push.png"))
316
323
        self.tb_push = gtk.ToolButton(self.tb_push_icon, _i18n("Push"))
317
324
        self.tb_push.connect('clicked', self.signal.on_menuitem_branch_push_activate)
 
325
        self.tb_push.set_tooltip_text(_i18n("Push the branch to a remote location"))
318
326
        self.tb.add(self.tb_push)
319
327
        
320
328
        self.tb_update_icon = gtk.Image()
321
329
        self.tb_update_icon.set_from_file(icon_path("pull.png"))
322
330
        self.tb_update = gtk.ToolButton(self.tb_update_icon, _i18n("Update"))
323
331
        self.tb_update.connect('clicked', self.signal.on_menuitem_branch_update_activate)
 
332
        self.tb_update.set_tooltip_text(_i18n("Update the working tree"))
324
333
        self.tb.add(self.tb_update)
325
334
    
326
335
    def _create_locationbar(self):