/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 olive/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2006-10-04 19:11:46 UTC
  • Revision ID: jelmer@samba.org-20061004191146-73c96d34fc3d05e4
Rename OliveBranch -> BranchDialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import os
18
18
import sys
19
19
 
 
20
# gettext support
 
21
import gettext
 
22
gettext.install('olive-gtk')
 
23
 
20
24
try:
21
25
    import pygtk
22
26
    pygtk.require("2.0")
200
204
    
201
205
    def on_menuitem_branch_get_activate(self, widget):
202
206
        """ Branch/Get... menu handler. """
203
 
        from branch import OliveBranch
204
 
        branch = OliveBranch(self.get_path())
 
207
        from branch import BranchDialog
 
208
        branch = BranchDialog(self.get_path())
205
209
        branch.display()
206
210
    
207
211
    def on_menuitem_branch_checkout_activate(self, widget):
212
216
    
213
217
    def on_menuitem_branch_commit_activate(self, widget):
214
218
        """ Branch/Commit... menu handler. """
215
 
        from commit import OliveCommit
216
 
        commit = OliveCommit(self.wt, self.wtpath)
 
219
        from commit import CommitDialog
 
220
        commit = CommitDialog(self.wt, self.wtpath)
217
221
        commit.display()
218
222
    
219
223
    def on_menuitem_branch_missing_revisions_activate(self, widget):
607
611
    def set_sensitivity(self):
608
612
        """ Set menu and toolbar sensitivity. """
609
613
        self.menuitem_branch_init.set_sensitive(self.notbranch)
610
 
        self.menuitem_branch_get.set_sensitive(self.notbranch)
611
614
        self.menuitem_branch_checkout.set_sensitive(self.notbranch)
612
615
        self.menuitem_branch_pull.set_sensitive(not self.notbranch)
613
616
        self.menuitem_branch_push.set_sensitive(not self.notbranch)
713
716
                for rpath, id, kind in delta.added:
714
717
                    if rpath == filename:
715
718
                        status = 'added'                
716
 
                for rpath, id, kind, text_modified, meta_modified in delta.removed:
 
719
                for rpath, id, kind in delta.removed:
717
720
                    if rpath == filename:
718
721
                        status = 'removed'
719
722
                for rpath, id, kind, text_modified, meta_modified in delta.modified: