roundabout,
created on Wednesday, 20 August 2025, 09:12:57 (1755681177),
received on Wednesday, 20 August 2025, 09:13:01 (1755681181)
Author identity: Vlad <vlad.muntoiu@gmail.com>
a7a85060c0a2efdc86718d2c06a5290c93457d10
applets/soreaus-menu/__init__.py
@@ -179,6 +179,7 @@ class SoreausMenu(panorama_panel.Applet):
self.logout_box.append(self.logout_button)
self.search_entry = Gtk.SearchEntry()
self.search_entry.connect("search-changed", self.on_search_changed)
self.search_entry.connect("activate", self.click_first_button)
self.menu_box.append(self.search_entry)
self.menu_box.append(self.scrolled_window)
self.menu_box.append(self.logout_box)
@@ -189,6 +190,12 @@ class SoreausMenu(panorama_panel.Applet):
self.logout_ui = WayfireLogoutUI()
self.populate_menu_entries()
def click_first_button(self, search_entry):
flowbox_child = self.flowbox.get_first_child()
if flowbox_child is not None:
button = flowbox_child.get_first_child()
button.emit("clicked")
def on_search_changed(self, search_entry):
self.flowbox.remove_all()
self.populate_menu_entries()