aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-06-01 18:17:37 -0400
committerChristopher Harvey <chris@basementcode.com>2010-06-01 18:17:37 -0400
commit5e24a86b40b15707bacf049bed97964053e14e4c (patch)
tree8382762c289eeb893ed36ff7e108a96499b80abc
parentAdded RcUpdateWindow. It only displays current status, no updates yet. (diff)
downloadventoo-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.py8
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()