Commit 76c2c393 authored by segfault's avatar segfault
Browse files

Fix tails-screen-locker

- Add signal to correct buttons
- Remove unused code from UI file
- Remove debugging output
parent 76f56ca6
......@@ -113,7 +113,6 @@ class PasswordDialog(object):
self.entry1 = self.builder.get_object('entry1')
self.entry2 = self.builder.get_object('entry2')
self.mismatch_icon = self.entry2.get_icon_stock(1)
print(self.mismatch_icon)
self.entry2.set_icon_from_icon_name(1, None)
self.ok_button.set_sensitive(False)
self.window = self.builder.get_object("window")
......
......@@ -2,68 +2,6 @@
<!-- Generated with glade 3.20.2 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkDialog">
<property name="can_focus">False</property>
<property name="type_hint">dialog</property>
<child internal-child="vbox">
<object class="GtkBox">
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkButtonBox">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button_cancel">
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<signal name="clicked" handler="on_cancel_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button_ok">
<property name="label" translatable="yes">Lock</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<signal name="clicked" handler="on_ok_clicked" 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">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
<action-widgets>
<action-widget response="2">button_cancel</action-widget>
<action-widget response="1">button_ok</action-widget>
</action-widgets>
<child>
<placeholder/>
</child>
</object>
<object class="GtkWindow" id="window">
<property name="can_focus">False</property>
<property name="type_hint">dialog</property>
......@@ -154,13 +92,14 @@
<property name="homogeneous">True</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="button_cancel1">
<object class="GtkButton" id="button_cancel">
<property name="label" translatable="yes">Cancel</property>
<property name="width_request">86</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<signal name="clicked" handler="on_cancel_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
......@@ -169,13 +108,14 @@
</packing>
</child>
<child>
<object class="GtkButton" id="button_ok1">
<object class="GtkButton" id="button_ok">
<property name="label" translatable="yes">Lock</property>
<property name="width_request">86</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="halign">end</property>
<signal name="clicked" handler="on_ok_clicked" swapped="no"/>
</object>
<packing>
<property name="expand">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment