mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-21 20:15:02 +02:00
add function on_search_cleared()
This commit is contained in:

committed by
GitHub

parent
1a3eb86678
commit
bb5d73fe57
@@ -284,4 +284,21 @@ class Main(Gtk.Window): # Basic OOPS Concept
|
||||
if self.search_activated == True:
|
||||
self.search_queue.task_done()
|
||||
|
||||
def on_search_cleared(self, searchentry, icon_pos, event):
|
||||
if self.search_activated:
|
||||
GUI.setup_gui(
|
||||
self,
|
||||
Gtk,
|
||||
Gdk,
|
||||
GdkPixbuf,
|
||||
base_dir,
|
||||
os,
|
||||
Pango,
|
||||
None,
|
||||
)
|
||||
|
||||
self.searchentry.set_placeholder_text("Search...")
|
||||
|
||||
self.search_activated = False
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user