/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 nautilus-bzr.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-05 14:02:16 UTC
  • Revision ID: jelmer@samba.org-20120305140216-kin6qx701t4205ej
Only show annotate option for files in nautilus-bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
245
245
            item.connect('activate', self.unignore_cb, tree, path)
246
246
            yield item
247
247
        else:
 
248
            kind = tree.kind(file_id)
248
249
            item = Nautilus.MenuItem(name='BzrNautilus::log',
249
250
                             label='History ...',
250
251
                             tip='List changes',
274
275
            item.connect('activate', self.remove_cb, tree, path)
275
276
            yield item
276
277
 
277
 
            item = Nautilus.MenuItem(name='BzrNautilus::annotate',
278
 
                         label='Annotate ...',
279
 
                         tip='Annotate File Data',
280
 
                         icon='')
281
 
            item.connect('activate', self.annotate_cb, tree, path, file_id)
282
 
            yield item
 
278
            if kind == 'file':
 
279
                item = Nautilus.MenuItem(name='BzrNautilus::annotate',
 
280
                             label='Annotate ...',
 
281
                             tip='Annotate File Data',
 
282
                             icon='')
 
283
                item.connect('activate', self.annotate_cb, tree, path, file_id)
 
284
                yield item
283
285
 
284
286
    def get_file_items(self, window, files):
285
287
        items = []