M numberstation/ui/numberstation.glade => numberstation/ui/numberstation.glade +8 -2
@@ 1,5 1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.38.2 -->
+<!-- Generated with glade 3.40.0 -->
<interface>
<requires lib="gtk+" version="3.24"/>
<requires lib="libhandy" version="1.0"/>
@@ 79,11 79,17 @@
<property name="spacing">12</property>
<child>
<object class="GtkButton" id="back">
- <property name="label" translatable="yes">Back</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<signal name="clicked" handler="on_back_clicked" swapped="no"/>
+ <child>
+ <object class="GtkImage">
+ <property name="visible">True</property>
+ <property name="can-focus">False</property>
+ <property name="icon-name">go-previous-symbolic</property>
+ </object>
+ </child>
</object>
<packing>
<property name="expand">False</property>
M numberstation/window.py => numberstation/window.py +4 -0
@@ 37,6 37,7 @@ class NumberstationWindow:
self.window.set_application(self.application)
self.error = builder.get_object("error")
self.mainstack = builder.get_object("mainstack")
+ self.headstack = builder.get_object("headstack")
self.add_name = builder.get_object("add_name")
self.add_secret = builder.get_object("add_secret")
@@ 283,9 284,11 @@ class NumberstationWindow:
def on_add_entry_clicked(self, widget, *args):
self.mainstack.set_visible_child_name('add')
+ self.headstack.set_visible_child_name('add')
def on_back_clicked(self, widget, *args):
self.mainstack.set_visible_child_name('codes')
+ self.headstack.set_visible_child_name('codes')
def on_save_clicked(self, widget, *args):
name = self.add_name.get_text().strip()
@@ 313,6 316,7 @@ class NumberstationWindow:
self.build_code_list()
self.mainstack.set_visible_child_name('codes')
+ self.headstack.set_visible_child_name('codes')
def on_add_secret_changed(self, widget, *args):
value = self.add_secret.get_text()