little changes for the filter bar

This commit is contained in:
DYefremov
2018-09-12 17:46:45 +03:00
parent 403426ba75
commit 5d01bd5479
2 changed files with 1 additions and 2 deletions

View File

@@ -1093,14 +1093,12 @@ class MainAppWindow:
# ***************** Filter and search *********************# # ***************** Filter and search *********************#
@run_idle
def on_filter_toggled(self, toggle_button: Gtk.ToggleToolButton): def on_filter_toggled(self, toggle_button: Gtk.ToggleToolButton):
active = toggle_button.get_active() active = toggle_button.get_active()
if active: if active:
self.update_filter_sat_positions() self.update_filter_sat_positions()
self._filter_bar.set_search_mode(active) self._filter_bar.set_search_mode(active)
self._filter_bar.set_visible(active)
@run_idle @run_idle
def update_filter_sat_positions(self): def update_filter_sat_positions(self):

View File

@@ -1224,6 +1224,7 @@ Author: Dmitriy Yefremov
</child> </child>
<child> <child>
<object class="GtkSearchBar" id="filter_bar"> <object class="GtkSearchBar" id="filter_bar">
<property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<child> <child>
<object class="GtkBox" id="filter_box"> <object class="GtkBox" id="filter_box">