summaryrefslogtreecommitdiffstats
path: root/g-ed-it
diff options
context:
space:
mode:
authorMatthieu Gautier <mgautier@fedoraproject.org>2009-04-30 23:43:51 +0200
committerMatthieu Gautier <mgautier@fedoraproject.org>2009-04-30 23:43:51 +0200
commitd74a31da487bcff192cbc99e238bc2c989dcc4d3 (patch)
tree97ec0b59e3926e963a08437dfeedaa6c860609a8 /g-ed-it
parentb9ec0c418594803394bd16bc015e0c2970606e86 (diff)
downloadg-ed-it-d74a31da487bcff192cbc99e238bc2c989dcc4d3.zip
g-ed-it-d74a31da487bcff192cbc99e238bc2c989dcc4d3.tar.gz
g-ed-it-d74a31da487bcff192cbc99e238bc2c989dcc4d3.tar.xz
Fix (and simplify) adding of the docBar.
Diffstat (limited to 'g-ed-it')
-rw-r--r--g-ed-it/docBar.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/g-ed-it/docBar.py b/g-ed-it/docBar.py
index 9d019c1..e87a5c5 100644
--- a/g-ed-it/docBar.py
+++ b/g-ed-it/docBar.py
@@ -41,9 +41,6 @@ class DocBar (object):
self.tab = tab
self.gitAction = gitAction
self.docHelper = docHelper
- self.child = self.tab.get_children()[0]
- self.tab.remove(self.child)
- self.vbox = gtk.VBox()
self.docBar = gtk.HBox()
@@ -67,23 +64,16 @@ class DocBar (object):
self.docBar.pack_start(self.btn_add, False, False)
self.docBar.pack_start(self.btn_commit, False, False)
- self.vbox.pack_start(self.docBar, False, False)
- self.vbox.pack_start(self.child)
-
- self.tab.add(self.vbox)
+ self.tab.pack_start(self.docBar, False, False)
self.tab.show_all()
self.update_ui()
def deactivate(self):
- self.tab.remove(self.vbox)
- self.vbox.remove(self.child)
- self.tab.add(self.child)
+ self.tab.remove(self.docBar)
- self.doc = None
- self.vbox = None
- self.child = None
+ self.docBar = None
self.tab = None
def update_ui(self):