From b02eb37f1c798ecf575d246a9bcbf5ec4bd7024e Mon Sep 17 00:00:00 2001 From: DYefremov Date: Wed, 10 Jun 2020 18:01:23 +0300 Subject: [PATCH] corrections after merge --- app/ui/main_app_window.py | 17 +- app/ui/main_window.glade | 81 ++++++++- app/ui/picons_manager.glade | 333 ++++++++++++++++++++--------------- app/ui/picons_manager.py | 6 +- app/ui/settings_dialog.glade | 118 +++++++++++-- 5 files changed, 373 insertions(+), 182 deletions(-) diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index c3571853..632fdffb 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -149,7 +149,6 @@ class Application(Gtk.Application): "on_full_screen": self.on_full_screen, "on_drawing_area_realize": self.on_drawing_area_realize, "on_player_drawing_area_draw": self.on_player_drawing_area_draw, - "on_main_window_state": self.on_main_window_state, "on_record": self.on_record, "on_remove_all_unavailable": self.on_remove_all_unavailable, "on_new_bouquet": self.on_new_bouquet, @@ -960,7 +959,7 @@ class Application(Gtk.Application): top_iter = model.get_iter(path) parent_itr = model.iter_parent(top_iter) # parent to_del = [] - is_darwin = self._settings.is_darwin # + is_darwin = self._settings.is_darwin if parent_itr: p_path = model.get_path(parent_itr)[0] @@ -2056,21 +2055,9 @@ class Application(Gtk.Application): def on_full_screen(self, item=None): self._full_screen = not self._full_screen - if self._settings.is_darwin: - self.update_state_on_full_screen(not self._full_screen) + self.update_state_on_full_screen(not self._full_screen) self._main_window.fullscreen() if self._full_screen else self._main_window.unfullscreen() - def on_main_window_state(self, window, event): - if self._settings.is_darwin: - return - - state = event.new_window_state - full = not state & Gdk.WindowState.FULLSCREEN - window.set_show_menubar(full) - self.update_state_on_full_screen(full) - if not state & Gdk.WindowState.ICONIFIED and self._links_transmitter: - self._links_transmitter.hide() - @run_idle def update_state_on_full_screen(self, visible): self._main_data_box.set_visible(visible) diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index ce1ee997..78eb201b 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -297,6 +297,15 @@ Author: Dmitriy Yefremov + + + True + False + Insert space + True + + + True @@ -591,6 +600,68 @@ Author: Dmitriy Yefremov document-save-symbolic 1 + + False + + + True + False + 5 + 5 + vertical + 2 + + + True + True + True + app.on_screenshot_all + All + True + + + False + True + 0 + + + + + True + True + True + app.on_screenshot_video + Video + True + + + False + True + 1 + + + + + True + True + True + app.on_screenshot_osd + OSD + True + + + False + True + 2 + + + + + main + 1 + + + @@ -947,7 +1018,6 @@ Author: Dmitriy Yefremov DemonEditor - @@ -1029,7 +1099,6 @@ Author: Dmitriy Yefremov - False True True Telnet @@ -2735,7 +2804,7 @@ Author: Dmitriy Yefremov True False - 0.4.9 Pre-alpha + 0.4.8 Pre-alpha @@ -2770,8 +2839,6 @@ Author: Dmitriy Yefremov True False - center - center gtk-info @@ -2845,8 +2912,6 @@ Author: Dmitriy Yefremov False No connection to the receiver! - center - center 10 10 network-offline @@ -2887,8 +2952,6 @@ Author: Dmitriy Yefremov False True Record - center - center diff --git a/app/ui/picons_manager.glade b/app/ui/picons_manager.glade index 95798ed2..b60058b4 100644 --- a/app/ui/picons_manager.glade +++ b/app/ui/picons_manager.glade @@ -32,6 +32,29 @@ Author: Dmitriy Yefremov + + True + False + window-close-symbolic + + + True + False + edit-redo-symbolic + 1 + + + True + False + edit-find-replace-symbolic + 1 + + + True + False + network-server-symbolic + 1 + @@ -271,59 +294,25 @@ Author: Dmitriy Yefremov 10 - + True False - 0.5 - in + vertical + 5 - - True + False - 5 - 5 - 5 - 5 - vertical + Filter services in the main list. + end + end 5 - + True - True - in - - - True - True - 5 - picons_sort_model - 5 - 5 - 1 - 5 - True - - - - - - - 128 - - - 0 - - - - - center - - - 1 - - - - + False + end + center + Filter services True @@ -332,48 +321,76 @@ Author: Dmitriy Yefremov - + + True False - 1 - 1 - - - True - True - edit-find-symbolic - False - False - - + end + center + False True + end 2 + + + False + False + 1 + + + + + False + 1 + 1 - - False - 1 - 1 - - - True - True - edit-find-replace-symbolic - False - False - - - + + True + True + edit-find-symbolic + False + False - - False - True - 3 - + + + False + True + 2 + + + + + False + 1 + 1 + + + True + True + gtk-spell-check + False + False + + + + + + False + True + 3 + + + + + True + False + 0.5 + in True @@ -703,60 +720,70 @@ Author: Dmitriy Yefremov - + False - other - - + 0 + in + + False - 6 - end - - - False - False - 0 - - - - - False - 10 - - - 128 - 72 - True + other + + False - gtk-missing-image - 6 - + 6 + end False - True + False + 0 + + + + + False + 10 + + + 128 + 72 + True + False + gtk-missing-image + 6 + + + + False + True + 0 + + + + + True + False + + + False + True + 1 + + + + + False + False 0 - - True - False - - - False - True - 1 - + - - False - False - 0 - - + @@ -1493,7 +1520,7 @@ Author: Dmitriy Yefremov - + True False center @@ -1517,6 +1544,7 @@ Author: Dmitriy Yefremov send_image True + False @@ -1534,6 +1562,7 @@ Author: Dmitriy Yefremov receive_image True + False @@ -1541,6 +1570,48 @@ Author: Dmitriy Yefremov 1 + + + Remove + True + True + True + Remove all picons from the receiver + remove_image + True + + + + + False + True + 3 + + + + + True + True + False + Details + False + + + True + False + emblem-important-symbolic + + + + + + False + True + end + 5 + True + + Filter @@ -1556,24 +1627,7 @@ Author: Dmitriy Yefremov False True - 2 - - - - - Remove - True - True - True - Remove all picons from the receiver - remove_image - True - - - - False - True - 3 + 6 @@ -1597,7 +1651,7 @@ Author: Dmitriy Yefremov cancel_image True - + False @@ -1667,6 +1721,9 @@ Author: Dmitriy Yefremov 2 + + + False diff --git a/app/ui/picons_manager.py b/app/ui/picons_manager.py index f0cd6dcf..00e2c67f 100644 --- a/app/ui/picons_manager.py +++ b/app/ui/picons_manager.py @@ -102,8 +102,6 @@ class PiconsDialog: self._picons_entry = builder.get_object("picons_entry") self._url_entry = builder.get_object("url_entry") self._picons_dir_entry = builder.get_object("picons_dir_entry") - self._info_bar = builder.get_object("info_bar") - self._info_bar = builder.get_object("info_bar") self._message_label = builder.get_object("info_bar_message_label") self._info_check_button = builder.get_object("info_check_button") self._picon_info_image = builder.get_object("picon_info_image") @@ -138,7 +136,9 @@ class PiconsDialog: self._filter_button.bind_property("active", builder.get_object("src_title_grid"), "visible") self._filter_button.bind_property("active", builder.get_object("dst_title_grid"), "visible") self._filter_button.bind_property("visible", self._info_check_button, "visible") - self._info_check_button.bind_property("active", builder.get_object("explorer_info_bar"), "visible") + explorer_info_bar = builder.get_object("explorer_info_bar") + explorer_info_bar.bind_property("visible", builder.get_object("explorer_info_bar_frame"), "visible") + self._info_check_button.bind_property("active", explorer_info_bar, "visible") # Init drag-and-drop self.init_drag_and_drop() # Style diff --git a/app/ui/settings_dialog.glade b/app/ui/settings_dialog.glade index 60a74bcd..46b0705b 100644 --- a/app/ui/settings_dialog.glade +++ b/app/ui/settings_dialog.glade @@ -28,7 +28,6 @@ Author: Dmitriy Yefremov --> - @@ -88,7 +87,7 @@ Author: Dmitriy Yefremov set_default_image False - + @@ -2931,44 +2930,129 @@ Author: Dmitriy Yefremov - False + True False 5 5 0.019999999552965164 in - + True False 5 5 5 5 + vertical + 5 - + True False - Enables parsing links using youtube-dl to get direct links to media - start - True - Enable support for youtube-dl (experimental) + Enables parsing links using youtube-dl to get direct media links. + + + True + False + start + Enable support for + + + False + True + 0 + + + + + youtube-dl + status-bar-button + True + True + True + start + center + none + https://youtube-dl.org/ + + + True + True + 3 + + + + + True + False + center + EXPERIMENTAL! + + + True + True + 3 + + + + + True + True + Enables parsing links using youtube-dl to get direct links to media + end + center + + + False + True + end + 2 + + - 0 - 0 + True + True + 1 - + True - True - Enables parsing links using youtube-dl to get direct links to media - end + False + False + + + True + False + start + Auto-check for updates + + + True + True + 0 + + + + + True + True + end + center + + + False + True + 1 + + - 1 - 0 + False + True + 2