diff --git a/app/ui/control.glade b/app/ui/control.glade
index ef387699..7cfda504 100644
--- a/app/ui/control.glade
+++ b/app/ui/control.glade
@@ -408,118 +408,6 @@ Author: Dmitriy Yefremov
5
vertical
5
-
-
-
- False
- True
- 0
-
-
True
@@ -530,6 +418,115 @@ Author: Dmitriy Yefremov
5
vertical
5
+
+
+ True
+ False
+ 5
+ 0.5
+ none
+
+
+ True
+ False
+ center
+ 5
+ 5
+ True
+
+
+ True
+ True
+ True
+ Standby
+ app.on_standby
+ standby_image
+
+
+ False
+ True
+ 1
+
+
+
+
+ True
+ True
+ True
+ Wake Up
+ app.on_wake_up
+ wake_up_image
+
+
+ False
+ True
+ 2
+
+
+
+
+ True
+ True
+ True
+ Reboot
+ app.on_reboot
+ reboot_image
+
+
+ False
+ True
+ 3
+
+
+
+
+ True
+ True
+ True
+ Restart GUI
+ app.on_restart_gui
+ restart_gui_image
+
+
+ False
+ True
+ 4
+
+
+
+
+ True
+ True
+ True
+ Shutdown
+ app.on_shutdown
+ shutdown_image
+
+
+ False
+ True
+ 5
+
+
+
+
+
+
+
+ True
+ False
+ Power
+
+
+
+
+ False
+ True
+ 0
+
+
True
@@ -624,7 +621,7 @@ Author: Dmitriy Yefremov
False
True
- 0
+ 1
@@ -669,7 +666,7 @@ Author: Dmitriy Yefremov
False
True
- 1
+ 2
@@ -684,7 +681,7 @@ Author: Dmitriy Yefremov
False
True
- 2
+ 3
@@ -722,7 +719,7 @@ audio-volume-medium-symbolic
False
True
- 3
+ 4
@@ -733,7 +730,7 @@ audio-volume-medium-symbolic
False
True
- 4
+ 5
@@ -818,7 +815,7 @@ audio-volume-medium-symbolic
False
True
- 5
+ 6
@@ -1625,7 +1622,7 @@ audio-volume-medium-symbolic
True
False
- edit
+ gtk-edit
False
@@ -1656,7 +1653,7 @@ audio-volume-medium-symbolic
True
False
True
- edit
+ gtk-edit
Default
diff --git a/app/ui/control.py b/app/ui/control.py
index 83fea9aa..7d33a3cd 100644
--- a/app/ui/control.py
+++ b/app/ui/control.py
@@ -91,9 +91,9 @@ class ControlBox(Gtk.HBox):
service_name_label = builder.get_object("timer_service_name_label")
time_label = builder.get_object("timer_time_label")
- name_label.set_text(timer.get("e2name", ""))
- description_label.set_text(timer.get("e2description", ""))
- service_name_label.set_text(timer.get("e2servicename", ""))
+ name_label.set_text(timer.get("e2name", "") or "")
+ description_label.set_text(timer.get("e2description", "") or "")
+ service_name_label.set_text(timer.get("e2servicename", "") or "")
# Time
start_time = datetime.fromtimestamp(int(timer.get("e2timebegin", "0")))
end_time = datetime.fromtimestamp(int(timer.get("e2timeend", "0")))
@@ -471,8 +471,8 @@ class ControlBox(Gtk.HBox):
timer = row.timer
self._current_timer = timer
self._timer_name_entry.set_text(timer.get("e2name", ""))
- self._timer_desc_entry.set_text(timer.get("e2description", ""))
- self._timer_service_entry.set_text(timer.get("e2servicename", ""))
+ self._timer_desc_entry.set_text(timer.get("e2description", "") or "")
+ self._timer_service_entry.set_text(timer.get("e2servicename", "") or "")
self._timer_service_ref_entry.set_text(timer.get("e2servicereference", ""))
self._timer_event_id_entry.set_text(timer.get("e2eit", ""))
self._timer_enabled_switch.set_active((timer.get("e2disabled", "0") == "0"))