You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/kevin/src/gtg/.local_build/install/lib/python3/dist-packages/GTG/gtk/browser/main_window.py", line 833, in focus_sidebarself.tagtreeview.grab_focus()
^^^^^^^^^^^^^^^^^^^^^^^^^^^AttributeError: 'NoneType' object has no attribute 'grab_focus'
It looks like e96a8f8 handled a similar case, with the justification that "tagtreeview is None if it's hidden". But the left side bar isn't hidden when I do CTRL-B.
I'm wondering if this shortcut and associated action shouldn't just have been removed but have been forgotten?
I haven't been able to see where self.tagtreeview is supposed to be set, and I'm starting to wonder if I'm not actually staring at a pile of dead code :) I don't have time to investigate right now but it looks a lot like the code related to the tag pane now lives at https://github.com/getting-things-gnome/gtg/blob/master/GTG/gtk/browser/sidebar.py? Like
I'm wondering if this shortcut and associated action shouldn't just have been removed but have been forgotten?
I tried Ctrl-B in 0.6 and it does focus the tag side panel. Probably to allow navigation by keyboard. So my statement was incorrect, and this is indeed a regression - it's just that self.tagtreeview.grab_focus() is no longer the way to focus the panel.
There is probably still a lot of cleanup to do around tagtreeview, but that can be done separately. We'll also need to verify all the other shortcuts in 0.7 - Ctrl-B might not be the only one that got broken.
Repro:
Context: Global generic exception
GTG: 0.7-dev-bd58425d
Flatpak: False
Snap: False
Display Name: wayland-0
Desktop: ubuntu:GNOME
lxml: True
caldav: True
liblarch: False
Cheetah3: False
dbus-python: False
pdflatex: False
pypdftk: False
OS: Ubuntu 24.04 LTS
Python: CPython 3.12.3
GLib: 2.80.0
PyGLib: 3.48.2
PyGObject: 3.48.2
GTK: 4.2.14
The text was updated successfully, but these errors were encountered: