diff options
author | 2010-06-01 18:17:37 -0400 | |
---|---|---|
committer | 2010-06-01 18:17:37 -0400 | |
commit | 5e24a86b40b15707bacf049bed97964053e14e4c (patch) | |
tree | 8382762c289eeb893ed36ff7e108a96499b80abc | |
parent | Added RcUpdateWindow. It only displays current status, no updates yet. (diff) | |
download | ventoo-5e24a86b40b15707bacf049bed97964053e14e4c.tar.gz ventoo-5e24a86b40b15707bacf049bed97964053e14e4c.tar.bz2 ventoo-5e24a86b40b15707bacf049bed97964053e14e4c.zip |
Added the option to display the RcUpdate window. (added a button)
-rw-r--r-- | src/frontend/main.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/frontend/main.py b/src/frontend/main.py index 71e2340..4a74017 100644 --- a/src/frontend/main.py +++ b/src/frontend/main.py @@ -35,6 +35,7 @@ import os import re import ErrorDialog import gtkmozembed +import RcUpdateWindow sandboxDir = '/' @@ -53,9 +54,12 @@ class MainWindow(gtk.Window): self.diffButton = gtk.ToolButton(None, "Diff!") self.diffButton.connect("clicked", self.diffPressed, None) self.showErrorsButton = gtk.ToolButton(None, "Augeas Errors") + self.showRCUpdateButton = gtk.ToolButton(None, "rc-update") + self.showRCUpdateButton.connect("clicked", self.showRCUpdate, None) self.showErrorsButton.connect("clicked", self.showErrPressed, None) self.mainToolbar.insert(self.diffButton, -1) self.mainToolbar.insert(self.showErrorsButton, -1) + self.mainToolbar.insert(self.showRCUpdateButton, -1) self.rootBox.pack_start(self.mainToolbar, False, False) self.mainPaned = gtk.HPaned() self.rootBox.pack_start(self.docBox) @@ -158,6 +162,10 @@ class MainWindow(gtk.Window): else: os.system(call) + def showRCUpdate(self, button, data=None): + win = RcUpdateWindow.RcUpdateWindow() + win.show_all() + def showErrPressed(self, button, data=None): d = ErrorDialog.ErrorDialog(augeas_utils.getFileErrorList(self.a)) d.show_all() |