/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: Curtis Hovey
  • Date: 2012-03-11 18:24:06 UTC
  • mto: This revision was merged to the branch mainline in revision 785.
  • Revision ID: sinzui.is@verizon.net-20120311182406-f4jqpff65b30g3al
Create the mnemonic for the button label.

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
        dialog.display()
125
125
        Gtk.main()
126
126
 
127
 
    def push_cb(self, menu, controldir, path=None):
128
 
        from bzrlib.plugins.gtk.push import PushDialog
129
 
        dialog = PushDialog(branch=controldir.open_workingtree().branch)
130
 
        dialog.display()
131
 
        Gtk.main()
132
 
 
133
127
    def merge_cb(self, menu, tree, path=None):
134
128
        from bzrlib.plugins.gtk.merge import MergeDialog
135
129
        dialog = MergeDialog(tree, path)
245
239
            item.connect('activate', self.unignore_cb, tree, path)
246
240
            yield item
247
241
        else:
248
 
            kind = tree.kind(file_id)
249
242
            item = Nautilus.MenuItem(name='BzrNautilus::log',
250
243
                             label='History ...',
251
244
                             tip='List changes',
275
268
            item.connect('activate', self.remove_cb, tree, path)
276
269
            yield item
277
270
 
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
 
271
            item = Nautilus.MenuItem(name='BzrNautilus::annotate',
 
272
                         label='Annotate ...',
 
273
                         tip='Annotate File Data',
 
274
                         icon='')
 
275
            item.connect('activate', self.annotate_cb, tree, path, file_id)
 
276
            yield item
285
277
 
286
278
    def get_file_items(self, window, files):
287
279
        items = []