Skip to content

Commit

Permalink
Add search syntax popup
Browse files Browse the repository at this point in the history
  • Loading branch information
diegogangl committed Nov 9, 2021
1 parent 57f03f5 commit ea18452
Show file tree
Hide file tree
Showing 2 changed files with 620 additions and 162 deletions.
12 changes: 12 additions & 0 deletions GTG/gtk/browser/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ def _init_widget_aliases(self):
self.menu_view_workview = self.builder.get_object("view_workview")
self.toggle_workview = self.builder.get_object("workview_toggle")
self.search_entry = self.builder.get_object("search_entry")
self.search_cheatsheet = self.builder.get_object("search_cheatsheet")
self.searchbar = self.builder.get_object("searchbar")
self.search_button = self.builder.get_object("search_button")
self.quickadd_entry = self.builder.get_object("quickadd_field")
Expand All @@ -260,6 +261,17 @@ def _init_widget_aliases(self):

self.tagpopup = TagContextMenu(self.req, self.app)

# Setup search syntax popup button
self.search_entry.connect('icon-release',
self.on_search_box_help_icon_click)


def on_search_box_help_icon_click(self, widget, icon_pos, event) -> None:
"""Show search syntax popup"""

self.search_cheatsheet.popup()


def _init_ui_widget(self):
""" Sets the main pane with three trees for active tasks,
actionable tasks (workview), closed tasks and creates
Expand Down
Loading

0 comments on commit ea18452

Please sign in to comment.