Display a warning banner when running as root

This commit is contained in:
Mike Massonnet
2010-05-23 13:59:43 +02:00
parent 9a26498a8b
commit d806b12544
2 changed files with 47 additions and 1 deletions

View File

@@ -104,6 +104,43 @@
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="root-warning-box">
<property name="orientation">vertical</property>
<child>
<object class="GtkEventBox" id="root-warning-ebox">
<property name="visible">True</property>
<child>
<object class="GtkLabel" id="root-warning-label">
<property name="visible">True</property>
<property name="xpad">6</property>
<property name="ypad">3</property>
<property name="label" translatable="yes">Warning, you are using the root account, you may harm your system.</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkHSeparator" id="root-warning-separator">
<property name="visible">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="mainview-vbox">
<property name="visible">True</property>
@@ -127,7 +164,7 @@
</child>
</object>
<packing>
<property name="position">1</property>
<property name="position">2</property>
</packing>
</child>
<child>