diff --git a/app/ui/control.glade b/app/ui/control.glade
index d39cb9cf..f1aad24c 100644
--- a/app/ui/control.glade
+++ b/app/ui/control.glade
@@ -598,18 +598,6 @@ Author: Dmitriy Yefremov
5
5
5
-
-
-
- 0
- 3
-
-
-
-
-
- 1
- 3
-
-
+
+
+
+ 0
+ 9
+
+
+
+
+
+ 1
+ 9
+
+
+
+
+
+ 0
+ 10
+
+
+
+
+
+ 1
+ 10
+
+
+
+
+
+ 0
+ 12
+
+
+
+
+
+ 1
+ 12
+
+
+
+
+
+ 1
+ 11
+
+
True
@@ -699,7 +785,7 @@ Author: Dmitriy Yefremov
0
- 4
+ 3
@@ -724,7 +810,7 @@ Author: Dmitriy Yefremov
1
- 4
+ 3
@@ -736,7 +822,7 @@ Author: Dmitriy Yefremov
0
- 5
+ 4
@@ -761,7 +847,7 @@ Author: Dmitriy Yefremov
1
- 5
+ 4
@@ -773,7 +859,7 @@ Author: Dmitriy Yefremov
0
- 6
+ 5
@@ -954,7 +1040,7 @@ Author: Dmitriy Yefremov
1
- 6
+ 5
@@ -966,7 +1052,7 @@ Author: Dmitriy Yefremov
0
- 7
+ 6
@@ -981,7 +1067,7 @@ Author: Dmitriy Yefremov
1
- 7
+ 6
@@ -993,7 +1079,7 @@ Author: Dmitriy Yefremov
0
- 8
+ 7
@@ -1010,115 +1096,30 @@ Author: Dmitriy Yefremov
1
+ 7
+
+
+
+
+ True
+ False
+ Service:
+ 0
+
+
+ 0
8
-
+
True
- False
- Service reference:
- 0
-
-
- 0
- 9
-
-
-
-
- True
- False
- False
- 25
-
-
- 1
- 9
-
-
-
-
- True
- False
- Event ID:
- 0
-
-
- 0
- 10
-
-
-
-
- True
- False
- False
-
-
- 1
- 10
-
-
-
-
- True
- False
- Location:
- 0
-
-
- 0
- 12
-
-
-
-
- True
- False
True
document-edit-symbolic
- Default
1
- 12
-
-
-
-
- True
- False
- end
- 5
-
-
- True
- False
- document-edit-symbolic
-
-
- False
- False
- 0
-
-
-
-
- True
- True
-
-
- False
- False
- end
- 1
-
-
-
-
- 1
- 11
+ 8
diff --git a/app/ui/control.py b/app/ui/control.py
index 3ebf57cc..2687cb20 100644
--- a/app/ui/control.py
+++ b/app/ui/control.py
@@ -36,7 +36,7 @@ from urllib.parse import quote
from gi.repository import GLib
from .dialogs import get_builder, show_dialog, DialogType, get_message
-from .uicommons import Gtk, Gdk, UI_RESOURCES_PATH, Page, Column, KeyboardKey
+from .uicommons import Gtk, Gdk, UI_RESOURCES_PATH, Page, Column, KeyboardKey, IS_GNOME_SESSION
from ..commons import run_task, run_with_delay, log, run_idle
from ..connections import HttpAPI, UtfFTP
from ..eparser.ecommons import BqServiceType
@@ -159,7 +159,7 @@ class TimerTool(Gtk.Box):
class TimerDialog(Gtk.Dialog):
def __init__(self, parent, action=None, timer_data=None, *args, **kwargs):
- super().__init__(*args, **kwargs)
+ super().__init__(use_header_bar=IS_GNOME_SESSION, *args, **kwargs)
self._action = action or TimerTool.TimerAction.ADD
self._timer_data = timer_data or {}
@@ -213,7 +213,7 @@ class TimerTool(Gtk.Box):
self._timer_desc_entry.drag_dest_unset()
self._timer_service_entry.drag_dest_unset()
- self.add_buttons(get_message("Cancel"), Gtk.ResponseType.CLOSE, get_message("Save"), Gtk.ResponseType.OK)
+ self.add_buttons(get_message("Cancel"), Gtk.ResponseType.CANCEL, get_message("Save"), Gtk.ResponseType.OK)
self.get_content_area().pack_start(builder.get_object("timer_dialog_frame"), True, True, 5)
if self._action is TimerTool.TimerAction.ADD:
diff --git a/app/ui/dialogs.glade b/app/ui/dialogs.glade
index 0c0d9267..12499389 100644
--- a/app/ui/dialogs.glade
+++ b/app/ui/dialogs.glade
@@ -91,51 +91,36 @@ Author: Dmitriy Yefremov
utility
True
True
-
-
+
+
+ Cancel
+ True
+ True
+ True
+ center
+
+
+
+
+ OK
+ True
+ True
+ True
+ center
+
+
False
5
5
- 4
vertical
- 2
False
center
end
-
-
- Cancel
- True
- True
- True
- center
-
-
- False
- False
- 0
-
-
-
-
- OK
- True
- True
- True
- center
-
-
-
- False
- False
- 1
-
-
False
@@ -147,10 +132,10 @@ Author: Dmitriy Yefremov
True
True
- 2
- 2
- 2
- 2
+ 5
+ 5
+ 5
+ 5
document-edit-symbolic
False
False
diff --git a/app/ui/iptv.glade b/app/ui/iptv.glade
index 6e663d3e..98ae365e 100644
--- a/app/ui/iptv.glade
+++ b/app/ui/iptv.glade
@@ -185,7 +185,7 @@ Author: Dmitriy Yefremov
True
False
- gtk-cancel
+ gtk-close
@@ -268,6 +268,33 @@ Author: Dmitriy Yefremov
True
True
+
+
+ Cancel
+ True
+ True
+ True
+ center
+
+
+
+
+ Apply
+ True
+ True
+ True
+ center
+
+
+
+
+
+ OK
+ True
+ True
+ center
+
+
False
@@ -278,48 +305,6 @@ Author: Dmitriy Yefremov
False
center
end
-
-
- Cancel
- True
- True
- True
- center
-
-
- False
- False
- 0
-
-
-
-
- Apply
- True
- True
- True
- center
-
-
-
- False
- False
- 1
-
-
-
-
- OK
- True
- True
- center
-
-
- False
- False
- 2
-
-
False
@@ -873,6 +858,34 @@ Author: Dmitriy Yefremov
+
+
+ Cancel
+ True
+ True
+ True
+ center
+
+
+
+
+ Add
+ True
+ True
+ center
+
+
+
+
+
+ Save
+ True
+ True
+ True
+ center
+
+
+
False
@@ -882,49 +895,6 @@ Author: Dmitriy Yefremov
False
center
end
-
-
- Cancel
- True
- True
- True
- center
-
-
- False
- False
- 0
-
-
-
-
- Add
- True
- True
- center
-
-
-
- False
- False
- 1
-
-
-
-
- Save
- True
- True
- True
- center
-
-
-
- False
- False
- 2
-
-
False
@@ -938,7 +908,6 @@ Author: Dmitriy Yefremov
False
5
5
- 2
vertical
@@ -1340,60 +1309,60 @@ Author: Dmitriy Yefremov
2
-
-
+
+
+ False
+ True
+ 0
+
+
+
+
+ False
+ True
+
+
+
False
- True
-
-
-
+ 6
+ end
+
+
+ False
+ False
+ 0
+
+
+
+
+ False
+ 16
+
+
+ True
False
- 6
- end
+ start
+ label
+ end
- False
- False
- 0
-
-
-
-
- False
- 16
-
-
- True
- False
- start
- label
- end
-
-
- True
- True
- 0
-
-
-
-
- False
- False
+ True
+ True
0
False
- True
- 3
+ False
+ 0
False
True
- 1
+ 2
diff --git a/app/ui/iptv.py b/app/ui/iptv.py
index 34c1d3d1..844117aa 100644
--- a/app/ui/iptv.py
+++ b/app/ui/iptv.py
@@ -662,7 +662,7 @@ class M3uImportDialog(IptvListDialog):
extra_box.pack_start(self._info_label, False, False, 5)
extra_box.pack_end(self._picon_box, True, True, 5)
- frame = Gtk.Frame(visible=True)
+ frame = Gtk.Frame(visible=True, margin_bottom=5)
frame.add(extra_box)
self._data_box.add(frame)
diff --git a/app/ui/service_details_dialog.glade b/app/ui/service_details_dialog.glade
index cc8d4e86..ee3e5ce6 100644
--- a/app/ui/service_details_dialog.glade
+++ b/app/ui/service_details_dialog.glade
@@ -275,6 +275,38 @@ Author: Dmitriy Yefremov
+
+
+ Cancel
+ True
+ True
+ True
+ center
+
+
+
+
+
+ Apply
+ True
+ True
+ True
+ Save current service
+ center
+
+
+
+
+
+
+ Create
+ True
+ True
+ Create and save as new service
+ center
+
+
+
False
@@ -287,53 +319,6 @@ Author: Dmitriy Yefremov
False
center
end
-
-
- Cancel
- True
- True
- True
- center
-
-
-
- True
- True
- 0
-
-
-
-
- Apply
- True
- True
- True
- Save current service
- center
-
-
-
-
- True
- True
- 1
-
-
-
-
- Create
- True
- True
- Create and save as new service
- center
-
-
-
- True
- True
- 2
-
-
False
@@ -1644,6 +1629,9 @@ Author: Dmitriy Yefremov
+
+ cancel_button
+
@@ -1676,6 +1664,24 @@ Author: Dmitriy Yefremov
+
+
+ Cancel
+ True
+ True
+ True
+ center
+
+
+
+
+ OK
+ True
+ True
+ True
+ center
+
+
False
@@ -1685,34 +1691,6 @@ Author: Dmitriy Yefremov
False
center
-
-
- Cancel
- True
- True
- True
- center
-
-
- True
- True
- 0
-
-
-
-
- OK
- True
- True
- True
- center
-
-
- True
- True
- 1
-
-
False