Fix tab switching for Gtk4 compatibility
commit14b253f12b248a21fc873ec14fcc8a76113a4163
authorAayush Shah <aayushshah22@gmail.com>
Mon, 22 Apr 2024 16:24:41 +0000 (22 21:54 +0530)
committerPBS <pbs3141@googlemail.com>
Wed, 24 Apr 2024 10:28:49 +0000 (24 10:28 +0000)
tree39eac69b454d62f96c5856d2b63859910159e8cb
parent921fc05424fccdb76c77dcda482cd9473abf0b4f
Fix tab switching for Gtk4 compatibility

The migration to Gtk4 introduced changes in the widget hierarchy, which
prevented DialogBase from finding its parent Gtk::Notebook using the
get_parent() method. This issue affected the tab switching functionality,
where the UI failed to highlight or switch to the dialog's tab when
activated.

This patch updated the parent widget retrieval method to
get_parent()->get_parent(). This adjustment resolves the issue where
tab switching failed to activate and highlight the correct tab in Gtk4,
ensuring consistent behavior as expected.
src/ui/dialog/dialog-base.cpp
src/ui/dialog/dialog-container.cpp