Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions gknowledge/ui/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def _refresh_sources(self):
if not sources:
self.sources_list.append(_placeholder_row("No sources yet. Import some."))
for s in sources:
row = Adw.ActionRow(title=GLib.markup_escape_text(s.title),
row = Adw.ActionRow(activatable=True, title=GLib.markup_escape_text(s.title),
subtitle=s.status.value)
row.add_prefix(Gtk.Image.new_from_icon_name("text-x-generic-symbolic"))
row.source = s
Expand Down Expand Up @@ -473,7 +473,7 @@ def _refresh_knowledge(self):
order = {k: i for i, k in enumerate(_KIND_ORDER)}
pages.sort(key=lambda p: (order.get(p.kind, 99), p.title.lower()))
for p in pages:
row = Adw.ActionRow(title=GLib.markup_escape_text(p.title), title_lines=1,
row = Adw.ActionRow(activatable=True, title=GLib.markup_escape_text(p.title), title_lines=1,
tooltip_text=p.title)
row.add_prefix(Gtk.Image.new_from_icon_name(
_KIND_ICON.get(p.kind, "text-x-generic-symbolic")))
Expand Down Expand Up @@ -531,7 +531,7 @@ def _refresh_answers(self):
self.answers_list.append(_placeholder_row("No saved answers yet."))
return
for p in answers:
row = Adw.ActionRow(title=GLib.markup_escape_text(p.title),
row = Adw.ActionRow(activatable=True, title=GLib.markup_escape_text(p.title),
subtitle="saved answer")
row.add_prefix(Gtk.Image.new_from_icon_name("help-about-symbolic"))
row.page = p
Expand Down Expand Up @@ -619,6 +619,7 @@ def _refresh_reviews(self):
return
for item in items:
row = Adw.ActionRow(
activatable=True,
title=GLib.markup_escape_text(item.title),
subtitle=f"{item.action.value} 路 {item.detail}")
btn = Gtk.Button(label="Resolve", valign=Gtk.Align.CENTER)
Expand Down
Loading