Implement ulock

This commit is contained in:
Matthias Schiffer 2013-09-19 19:41:24 +02:00
parent 8fac573efc
commit aff9ec19a2
11 changed files with 851 additions and 4 deletions

208
data/bg.svg Normal file
View file

@ -0,0 +1,208 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="1680"
height="1050"
viewBox="0 0 1680 1050"
id="svg2"
xml:space="preserve"
inkscape:version="0.48.2 r9819"
sodipodi:docname="bg.svg"><sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1280"
inkscape:window-height="776"
id="namedview3016"
showgrid="false"
inkscape:zoom="0.23166667"
inkscape:cx="349.5177"
inkscape:cy="787.53453"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="0"
inkscape:current-layer="layer1" /><metadata
id="metadata129"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
id="defs127">
<linearGradient
x1="960.00049"
y1="878.5"
x2="960.00049"
y2="291.50049"
id="linearGradient3223"
xlink:href="#SVGID_1_"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#SVGID_1_"
id="linearGradient3811"
gradientUnits="userSpaceOnUse"
x1="960.00049"
y1="878.5"
x2="960.00049"
y2="291.50049" />
<linearGradient
x1="960.00049"
y1="878.5"
x2="960.00049"
y2="291.50049"
id="SVGID_1_"
gradientUnits="userSpaceOnUse">
<stop
id="stop20"
style="stop-color:#50acc5;stop-opacity:0.80000001"
offset="0" />
<stop
id="stop22"
style="stop-color:#388da2;stop-opacity:0.81980002"
offset="0.0148" />
<stop
id="stop24"
style="stop-color:#247385;stop-opacity:0.84420002"
offset="0.0331" />
<stop
id="stop26"
style="stop-color:#166071;stop-opacity:0.87110001"
offset="0.0533" />
<stop
id="stop28"
style="stop-color:#0b5363;stop-opacity:0.9016"
offset="0.0762" />
<stop
id="stop30"
style="stop-color:#044d5c;stop-opacity:0.93849999"
offset="0.1039" />
<stop
id="stop32"
style="stop-color:#104b5a;stop-opacity:1;"
offset="0.15000001" />
<stop
id="stop34"
style="stop-color:#104b5a;stop-opacity:1;"
offset="0.85000002" />
<stop
id="stop36"
style="stop-color:#044d5c;stop-opacity:0.93529999"
offset="0.89859998" />
<stop
id="stop38"
style="stop-color:#0b5363;stop-opacity:0.8987"
offset="0.926" />
<stop
id="stop40"
style="stop-color:#165f70;stop-opacity:0.86919999"
offset="0.94809997" />
<stop
id="stop42"
style="stop-color:#237184;stop-opacity:0.84350002"
offset="0.96740001" />
<stop
id="stop44"
style="stop-color:#368ba0;stop-opacity:0.8204"
offset="0.98470002" />
<stop
id="stop46"
style="stop-color:#50acc5;stop-opacity:0.80000001"
offset="1" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#SVGID_1_"
id="linearGradient3830"
gradientUnits="userSpaceOnUse"
x1="960.00049"
y1="878.5"
x2="960.00049"
y2="291.50049"
gradientTransform="matrix(1.1474185,0,0,0.85490494,-261.52174,174.07496)" /></defs>
<g
id="Hilfslinien_Center"
style="display:none"
transform="translate(0,-150)">
</g>
<g
inkscape:groupmode="layer"
id="layer1"
inkscape:label="Layer"
transform="translate(0,-150)"><rect
style="fill:#104b5a;fill-opacity:1"
id="rect5"
y="150"
x="0"
height="1050"
width="1680" /><path
d="m 1326.2174,920.83442 c 0,2.35099 -2.5816,4.27453 -5.7371,4.27453 H 359.51967 c -3.1554,0 -5.73709,-1.92354 -5.73709,-4.27453 V 427.55427 c 0,-2.35098 2.58169,-4.27452 5.73709,-4.27452 h 960.96063 c 3.1555,0 5.7371,1.92354 5.7371,4.27452 v 493.28015 z"
id="path48"
style="opacity:0.5;fill:url(#linearGradient3830)"
inkscape:connector-curvature="0" /><path
d="m 1326.2174,920.83442 c 0,2.35099 -2.5816,4.27453 -5.7371,4.27453 H 359.51967 c -3.1554,0 -5.73709,-1.92354 -5.73709,-4.27453 V 427.55427 c 0,-2.35098 2.58169,-4.27452 5.73709,-4.27452 h 960.96063 c 3.1555,0 5.7371,1.92354 5.7371,4.27452 v 493.28015 z"
id="path50"
style="fill:none;stroke:#50acc5;stroke-width:0.4952105;stroke-linejoin:round;stroke-miterlimit:10"
inkscape:connector-curvature="0" /><g
id="Hilfslinien_Login"
transform="translate(-120,75)">
</g><text
xml:space="preserve"
style="font-size:14px;font-style:normal;font-weight:normal;line-height:129.99999523%;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Sans"
x="839.86035"
y="1006.295"
id="text3011"
sodipodi:linespacing="130%"><tspan
sodipodi:role="line"
id="tspan3013"
x="839.86035"
y="1006.295"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold">Bei Problemen melden Sie sich bitte per E-Mail an</tspan><tspan
sodipodi:role="line"
x="839.86035"
y="1034.895"
id="tspan3015"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold" /><tspan
sodipodi:role="line"
x="839.86035"
y="1063.495"
id="tspan3017"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold">pool-hotline@itsc.uni-luebeck.de</tspan><tspan
sodipodi:role="line"
x="839.86035"
y="1092.095"
id="tspan3019"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold" /><tspan
sodipodi:role="line"
x="839.86035"
y="1120.6949"
id="tspan3021"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold">oder telefonisch unter der</tspan><tspan
sodipodi:role="line"
x="839.86035"
y="1149.2949"
id="tspan3023"
style="font-size:22px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:center;line-height:129.99999523%;writing-mode:lr-tb;text-anchor:middle;font-family:Sans;-inkscape-font-specification:Sans Bold">internen Nummer 5004.</tspan></text>
</g></svg>

After

Width:  |  Height:  |  Size: 7.2 KiB

BIN
data/siegel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

166
data/unlock.ui Normal file
View file

@ -0,0 +1,166 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.24"/>
<object class="GtkNotebook" id="unlock_window">
<property name="width_request">700</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">center</property>
<property name="valign">center</property>
<property name="show_tabs">False</property>
<child>
<object class="GtkHBox" id="box1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">40</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">siegel.png</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="vbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">12</property>
<property name="spacing">12</property>
<child>
<object class="GtkLabel" id="lock_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" comments="This is a placeholder string and will be replaced with the hostname of the system">[lock]</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkVBox" id="login_box">
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkHBox" id="prompt_box">
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
<object class="GtkLabel" id="prompt_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">Password:</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="prompt_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="visibility">False</property>
<property name="invisible_char">•</property>
<property name="invisible_char_set">True</property>
<property name="primary_icon_activatable">False</property>
<property name="secondary_icon_activatable">False</property>
<signal name="activate" handler="login_cb" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="message_label">
<property name="can_focus">False</property>
<property name="yalign">0</property>
<property name="label" comments="This is a placeholder string and will be replaced with a message from PAM">[message]</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkHBox" id="hbox2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">20</property>
<child>
<object class="GtkButton" id="unlock_button">
<property name="label" translatable="yes">Unlock</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="logout_button">
<property name="label" translatable="yes">Logout</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_action_appearance">False</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">3</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
<child type="tab">
<placeholder/>
</child>
</object>
</interface>