/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: 2007-02-03 10:25:09 UTC
  • Revision ID: jelmer@samba.org-20070203102509-im0cna70r892xzse
Move some files to the top-level directory, add first test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
    from bzrlib.plugins.gtk.viz.branchwin import BranchWindow
46
46
    from bzrlib.plugins.gtk.annotate.gannotate import GAnnotateWindow
47
47
    from bzrlib.plugins.gtk.annotate.config import GAnnotateConfig
 
48
    from bzrlib.plugins.gtk.commit import CommitDialog
 
49
    from bzrlib.plugins.gtk.push import PushDialog
48
50
except ImportError:
49
51
    # olive+bzr-gtk not installed. try to import from sources
50
52
    path = os.path.dirname(os.path.dirname(__file__))
67
69
        
68
70
        self.window = self.toplevel.get_widget('window_main')
69
71
        
70
 
        self.pref = OlivePreferences()
 
72
        self.pref = Preferences()
71
73
        
72
74
        self.path = None
73
75
 
248
250
    
249
251
    def on_menuitem_branch_commit_activate(self, widget):
250
252
        """ Branch/Commit... menu handler. """
251
 
        from commit import CommitDialog
252
253
        commit = CommitDialog(self.wt, self.wtpath, self.notbranch, self.get_selected_right(), self.window)
253
254
        response = commit.run()
254
255
        if response != gtk.RESPONSE_NONE:
321
322
    
322
323
    def on_menuitem_branch_push_activate(self, widget):
323
324
        """ Branch/Push... menu handler. """
324
 
        from push import PushDialog
325
325
        push = PushDialog(self.wt.branch, self.window)
326
326
        response = push.run()
327
327
        if response != gtk.RESPONSE_NONE:
930
930
 
931
931
import ConfigParser
932
932
 
933
 
class OlivePreferences:
 
933
class Preferences:
934
934
    """ A class which handles Olive's preferences. """
935
935
    def __init__(self):
936
936
        """ Initialize the Preferences class. """