diff --git a/app/ui/xml/dialogs.py b/app/ui/xml/dialogs.py index ddb46260..eb4129e6 100644 --- a/app/ui/xml/dialogs.py +++ b/app/ui/xml/dialogs.py @@ -401,8 +401,6 @@ class UpdateDialog: "on_satellite_changed": self.on_satellite_changed, "on_transponder_toggled": self.on_transponder_toggled, "on_info_bar_close": self.on_info_bar_close, - "on_filter_toggled": self.on_filter_toggled, - "on_find_toggled": self.on_find_toggled, "on_popup_menu": on_popup_menu, "on_select_all": self.on_select_all, "on_unselect_all": self.on_unselect_all, @@ -441,7 +439,7 @@ class UpdateDialog: self._left_action_box = builder.get_object("sat_update_left_action_box") self._right_action_box = builder.get_object("sat_update_right_action_box") # Filter - self._filter_bar = builder.get_object("sat_update_filter_bar") + self._filter_bar_box = builder.get_object("filter_bar_box") self._from_pos_button = builder.get_object("from_pos_button") self._to_pos_button = builder.get_object("to_pos_button") self._filter_from_combo_box = builder.get_object("filter_from_combo_box") @@ -449,18 +447,16 @@ class UpdateDialog: self._filter_model = builder.get_object("update_sat_list_model_filter") self._filter_model.set_visible_func(self.filter_function) self._filter_positions = (0, 0) - self._filter_bar.bind_property("search-mode-enabled", self._filter_bar, "visible") # Log. self._log_frame = builder.get_object("log_frame") builder.get_object("log_info_bar").connect("response", lambda b, r: self._log_frame.set_visible(False)) # Search. - self._search_bar = builder.get_object("sat_update_search_bar") - self._search_bar.bind_property("search-mode-enabled", self._search_bar, "visible") + self._search_bar_box = builder.get_object("search_bar_box") search_provider = SearchProvider(self._sat_view, builder.get_object("sat_update_search_entry"), builder.get_object("sat_update_search_down_button"), builder.get_object("sat_update_search_up_button")) - builder.get_object("sat_update_find_button").connect("toggled", search_provider.on_search_toggled) + builder.get_object("search_button").connect("toggled", search_provider.on_search_toggled) # Satellite lists init on dialog start. self._sat_view.connect("realize", self.on_update_satellites_list) # Options. @@ -599,10 +595,10 @@ class UpdateDialog: self._sat_update_info_bar.set_visible(False) def on_find_toggled(self, button: Gtk.ToggleToolButton): - self._search_bar.set_search_mode(button.get_active()) + self._search_bar_box.set_visible(button.get_active()) def on_filter_toggled(self, button: Gtk.ToggleToolButton): - self._filter_bar.set_search_mode(button.get_active()) + self._filter_bar_box.set_visible(button.get_active()) @run_idle def on_filter(self, item): diff --git a/app/ui/xml/update.glade b/app/ui/xml/update.glade index 5b9e5e8c..9b7281f9 100644 --- a/app/ui/xml/update.glade +++ b/app/ui/xml/update.glade @@ -41,8 +41,8 @@ Author: Dmitriy Yefremov False 10 10 - 5 - 5 + 10 + 10 vertical 5 @@ -176,24 +176,6 @@ Author: Dmitriy Yefremov - - True - False - network-receive-symbolic - 1 - - - True - False - window-close-symbolic - 1 - - - True - False - emblem-synchronizing-symbolic - 1 - @@ -306,14 +288,20 @@ Author: Dmitriy Yefremov expand - Update True True True Update - sat_update_image True + + + True + False + emblem-synchronizing-symbolic + 1 + + False @@ -323,13 +311,19 @@ Author: Dmitriy Yefremov - Cancel True True Cancel - sat_update_cancel_image True + + + True + False + window-close-symbolic + 1 + + @@ -340,15 +334,21 @@ Author: Dmitriy Yefremov - Receive True False True True Receive - sat_receive_image True + + + True + False + network-receive-symbolic + 1 + + False @@ -368,66 +368,6 @@ Author: Dmitriy Yefremov True False 5 - - - True - False - expand - - - True - True - True - Filter - True - - - - True - False - edit-find-replace-symbolic - 1 - - - - - - False - True - 2 - - - - - True - True - True - Find - True - - - - True - False - edit-find-symbolic - 1 - - - - - - False - True - 3 - - - - - False - True - 0 - - True @@ -436,36 +376,12 @@ Author: Dmitriy Yefremov none options_popover - + True False - 2 - - - True - False - Options - applications-system-symbolic - 1 - - - False - True - 0 - - - - - True - False - Options - - - False - True - 1 - - + Options + applications-system-symbolic + 1 @@ -500,206 +416,6 @@ Author: Dmitriy Yefremov 0 - - - False - - - True - False - 2 - 2 - - - 200 - True - True - edit-find-symbolic - False - False - - - False - True - 0 - - - - - True - False - True - True - - - True - False - down - - - - - False - False - 1 - - - - - True - False - True - True - - - True - False - up - - - - - False - False - 2 - - - - - - - - False - True - 1 - - - - - False - - - - True - False - 2 - 2 - 2 - - - True - False - From: - - - 0 - 0 - - - - - True - True - number - pos_adjustment - 1 - True - - - - 1 - 0 - - - - - True - False - side_store - 0 - - - - - 0 - - - - - 2 - 0 - - - - - True - False - To: - - - 3 - 0 - - - - - True - True - number - pos_adjustment2 - 1 - True - - - - 4 - 0 - - - - - True - False - side_store - 0 - - - - - 0 - - - - - 5 - 0 - - - - - gtk-apply - True - True - True - True - - - - 6 - 0 - - - - - - - False - True - 2 - - True @@ -727,10 +443,281 @@ Author: Dmitriy Yefremov 10 10 vertical + + + True + False + 5 + 5 + 5 + 5 + + + True + True + True + Filter + True + + + True + False + edit-find-replace-symbolic + 1 + + + + + + False + True + 0 + + + + + True + True + True + Find + True + + + True + False + edit-find-symbolic + 1 + + + + + + False + True + 1 + + + + + False + True + 0 + + + + + False + False + center + 5 + 5 + 5 + + + 200 + True + True + edit-find-symbolic + False + False + + + False + True + 0 + + + + + True + False + True + True + + + True + False + down + + + + + False + False + 1 + + + + + True + False + True + True + + + True + False + up + + + + + False + False + 2 + + + + + + False + True + 1 + + + + + False + False + 5 + + + + True + False + 5 + 5 + 2 + + + True + False + From: + + + 0 + 0 + + + + + True + True + 0,0 + number + pos_adjustment + 1 + True + + + + 1 + 0 + + + + + True + False + side_store + 0 + + + + + 0 + + + + + 2 + 0 + + + + + True + False + To: + + + 3 + 0 + + + + + True + True + 0,0 + number + pos_adjustment2 + 1 + True + + + + 4 + 0 + + + + + True + False + side_store + 0 + + + + + 0 + + + + + 5 + 0 + + + + + gtk-apply + True + True + True + True + + + + 6 + 0 + + + + + False + True + 1 + + + + + + + + False + True + 2 + + True True + 5 in @@ -831,7 +818,7 @@ Author: Dmitriy Yefremov True True - 1 + 3 @@ -870,7 +857,7 @@ Author: Dmitriy Yefremov False True - 2 + 4 @@ -894,7 +881,7 @@ Author: Dmitriy Yefremov True - True + False @@ -1044,7 +1031,7 @@ Author: Dmitriy Yefremov True - True + False @@ -1235,7 +1222,7 @@ Author: Dmitriy Yefremov True - True + False