aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiktor w brodlo <wiktor@brodlo.net>2011-08-04 02:15:25 +0000
committerwiktor w brodlo <wiktor@brodlo.net>2011-08-04 02:15:25 +0000
commit1a92c9d999287ffb56a892ce4480c8f5bb22cbda (patch)
treecf37bf1662aa1c14b9f98c12c4cc912e7b98fe92
parentiw/profile_gui.py: validation (diff)
downloadanaconda-1a92c9d999287ffb56a892ce4480c8f5bb22cbda.tar.gz
anaconda-1a92c9d999287ffb56a892ce4480c8f5bb22cbda.tar.bz2
anaconda-1a92c9d999287ffb56a892ce4480c8f5bb22cbda.zip
iw/systools_gui.py: validation
-rw-r--r--iw/systools_gui.py3
-rw-r--r--ui/systools.glade5
2 files changed, 8 insertions, 0 deletions
diff --git a/iw/systools_gui.py b/iw/systools_gui.py
index b8c67ac..5c0ccbd 100644
--- a/iw/systools_gui.py
+++ b/iw/systools_gui.py
@@ -37,6 +37,9 @@ class SystoolsWindow(InstallWindow):
def getNext(self):
self.anaconda.cron = self.cron.get_active_text()
self.anaconda.syslog = self.syslog.get_active_text()
+ if self.anaconda.syslog == "":
+ self.anaconda.intf.messageWindow(_("Select syslog"), _("You must select a system logger!"))
+ raise gui.StayOnScreen
return None
def getScreen(self, anaconda):
diff --git a/ui/systools.glade b/ui/systools.glade
index 69ebcbc..70a40bd 100644
--- a/ui/systools.glade
+++ b/ui/systools.glade
@@ -22,6 +22,8 @@
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
<property name="label" translatable="yes">Pick your system logger:</property>
<property name="justify">right</property>
</widget>
@@ -30,6 +32,8 @@
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0</property>
<property name="label" translatable="yes">Pick your cron:</property>
<property name="justify">right</property>
</widget>
@@ -56,6 +60,7 @@ metalog</property>
<widget class="GtkComboBox" id="cron">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="active">0</property>
<property name="items" translatable="yes">(none)
dcron
fcron