/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 revisionmenu.py

  • Committer: Aaron Bentley
  • Date: 2008-02-23 04:55:56 UTC
  • mfrom: (423.1.16 trunk)
  • Revision ID: aaron@aaronbentley.com-20080223045556-xl3kf2v61crquq83
MergeĀ fromĀ mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
import bzrlib
25
25
import gtk
 
26
import gobject
26
27
from bzrlib import (errors, ui)
27
28
from bzrlib.revision import NULL_REVISION
28
29
 
29
30
class RevisionPopupMenu(gtk.Menu):
 
31
 
 
32
    __gsignals__ = {
 
33
            'tag-added': (
 
34
                gobject.SIGNAL_RUN_FIRST,
 
35
                gobject.TYPE_NONE,
 
36
                (gobject.TYPE_STRING, gobject.TYPE_STRING)
 
37
            )
 
38
    }
 
39
 
30
40
    def __init__(self, repository, revids, branch=None, wt=None):
31
41
        super(RevisionPopupMenu, self).__init__()
32
42
        self.branch = branch
100
110
            dialog.hide()
101
111
        
102
112
            if response == gtk.RESPONSE_OK:
103
 
                try:
104
 
                    self.branch.lock_write()
105
 
                    self.branch.tags.set_tag(dialog.tagname, dialog._revid)
106
 
                finally:
107
 
                    self.branch.unlock()
 
113
                self.emit('tag-added', dialog.tagname, dialog._revid)
108
114
            
109
115
            dialog.destroy()
110
116