Commits

Yuki KODAMA  committed c7b1614

commit: prevent AttributeError related 'response' signal

Closes #810

  • Participants
  • Parent commits eb7942d
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgtk/commit.py

         gtklib.set_tortoise_keys(self)
         self.set_resizable(False)
         self.set_has_separator(False)
-        self.connect('response', self.response)
 
         self.newbranch = None
         self.closebranch = False
         self.newbranchradio = gtk.RadioButton(nochanges,
                 _('Open a new named branch'))
         self.newbranchradio.set_active(True)
-        self.newbranchradio.connect('toggled', self.nbtoggle)
         self.branchentry = gtk.Entry()
-        self.branchentry.connect('activate', self.activated)
         self.closebranchradio = gtk.RadioButton(nochanges,
                 _('Close current named branch'))
 
         table.add_row(self.closebranchradio)
         table.add_row(nochanges)
 
+        # signal handlers
+        self.connect('response', self.response)
+        self.newbranchradio.connect('toggled', self.nbtoggle)
+        self.branchentry.connect('activate', self.activated)
+
         # prepare to show
         if branch:
             self.newbranch = branch