Exemplo n.º 1
0
    def _on_revid_clicked(self, widget):
        """ Browse for revision button clicked handler. """
        from revbrowser import RevisionBrowser

        # FIXME: Should specific parent window here - how to get to it?
        # JRV 20070715
        revb = RevisionBrowser(self._branch)
        response = revb.run()
        if response != gtk.RESPONSE_NONE:
            revb.hide()

            if response == gtk.RESPONSE_OK:
                if revb.selected_revno is not None:
                    self._entry_revid.set_text(revb.selected_revid)

            revb.destroy()
Exemplo n.º 2
0
    def _on_revision_clicked(self, button):
        """ Browse for revision button clicked handler. """
        from revbrowser import RevisionBrowser


        try:
            br = self._remote_branch.get_branch()
        except:
            return
        revb = RevisionBrowser(br, self)
        response = revb.run()
        if response != Gtk.ResponseType.NONE:
            revb.hide()

            if response == Gtk.ResponseType.OK:
                if revb.selected_revno is not None:
                    self._entry_revision.set_text(revb.selected_revno)

            revb.destroy()
Exemplo n.º 3
0
 def _on_revision_clicked(self, button):
     """ Browse for revision button clicked handler. """
     from revbrowser import RevisionBrowser
     
     location = self._combo.get_child().get_text()
     
     try:
         br = Branch.open(location)
     except:
         return
     else:
         revb = RevisionBrowser(br, self)
         response = revb.run()
         if response != gtk.RESPONSE_NONE:
             revb.hide()
     
             if response == gtk.RESPONSE_OK:
                 if revb.selected_revno is not None:
                     self._entry_revision.set_text(revb.selected_revno)
         
             revb.destroy()