diff --git a/app/ui/main_app_window.py b/app/ui/main_app_window.py index 968e31e8..9ba85660 100644 --- a/app/ui/main_app_window.py +++ b/app/ui/main_app_window.py @@ -95,7 +95,8 @@ class MainAppWindow: "on_assign_picon": self.on_assign_picon, "on_remove_picon": self.on_remove_picon, "on_reference_picon": self.on_reference_picon, - "on_filter_toggled": self.on_filter_toggled} + "on_filter_toggled": self.on_filter_toggled, + "on_search_toggled": self.on_search_toggled} self.__options = get_config() self.__profile = self.__options.get("profile") @@ -135,6 +136,7 @@ class MainAppWindow: self.__radio_count_label = builder.get_object("radio_count_label") self.__data_count_label = builder.get_object("data_count_label") self.__fav_edit_marker_popup_item = builder.get_object("fav_edit_marker_popup_item") + self.__search_info_bar = builder.get_object("search_info_bar") # Filter self.__services_model_filter = builder.get_object("services_model_filter") self.__services_model_filter.set_visible_func(self.services_filter_function) @@ -696,8 +698,6 @@ class MainAppWindow: self.on_hide(None) elif ctrl and key == Gdk.KEY_E or key == Gdk.KEY_e or key == Gdk.KEY_F2: self.on_edit(view) - elif key == Gdk.KEY_space and model_name == self._FAV_LIST_NAME: - pass elif key == Gdk.KEY_Left or key == Gdk.KEY_Right: view.do_unselect_all(view) @@ -836,6 +836,7 @@ class MainAppWindow: dialog.show() self.update_picons() + @run_idle def on_filter_toggled(self, toggle_button: Gtk.ToggleToolButton): self.__filter_info_bar.set_visible(toggle_button.get_active()) @@ -849,6 +850,9 @@ class MainAppWindow: else: return self.__filter_entry.get_text() in str(model.get(iter, 3, 6, 7, 10, 11, 12, 13, 14, 15, 16)) + def on_search_toggled(self, toggle_button: Gtk.ToggleToolButton): + self.__search_info_bar.set_visible(toggle_button.get_active()) + @run_idle def update_picons(self): update_picons(self.__options.get(self.__profile).get("picons_dir_path"), self.__picons, self.__services_model) diff --git a/app/ui/main_window.glade b/app/ui/main_window.glade index 9a1105b4..86d1047d 100644 --- a/app/ui/main_window.glade +++ b/app/ui/main_window.glade @@ -793,7 +793,7 @@ Services filter Services filter True - gtk-find + tools-check-spelling @@ -801,6 +801,20 @@ True + + + True + False + Search + True + gtk-find + + + + False + True + + True @@ -1138,6 +1152,97 @@ 1 + + + True + False + True + + + False + 6 + end + + + + + + + + + + + + False + False + 0 + + + + + False + 16 + True + + + True + False + + + + + + False + True + 0 + + + + + True + False + True + edit-find-symbolic + False + False + + + False + False + 1 + + + + + True + False + + + + + + False + True + 2 + + + + + False + False + 0 + + + + + + + + False + False + 2 + + True @@ -1493,6 +1598,7 @@ True False + 2 2 @@ -1520,27 +1626,26 @@ False 16 - - - - + True True - Services filter - edit-select-all-symbolic + tools-check-spelling False - Services filter - + False + False True - 1 + 0 + + + False @@ -1554,7 +1659,7 @@ False - True + False 2