From 5e24a86b40b15707bacf049bed97964053e14e4c Mon Sep 17 00:00:00 2001 From: Christopher Harvey Date: Tue, 1 Jun 2010 18:17:37 -0400 Subject: Added the option to display the RcUpdate window. (added a button) --- src/frontend/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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() -- cgit v1.2.3-65-gdbad