Align and Distribute dialog - disappearing tooltips
Summary:
In the "Align and Distribute" dialog the buttons reimplemented lately as actions have tooltips only under certain conditions. Displaying, then closing, then re-displaying the dialog will find several controls/buttons have no tooltips.
Steps to reproduce:
The key difference is whether the "Align and Distribute" dialog is initially displayed when a new document window is opened.
- Start Inkscape
- In splash screen click button for New Document (observe that no dialogs are displayed at start up)
- Object -> Align and Distribute... to display dialog
- in dialog hover mouse cursor over the button icon below the phrase "Relative to:"
- Observe the popup tooltip appears: "Align right edges of objects to the left edge of anchor"
- Hover mouse cursor over the button icon below the word "Distribute" (observe no tooltip appears)
Tooltips are missing for the button icons under "Distribute", "Rearrange", and "Distribute Nodes"
Leaving "Align and Distribute" dialog displayed, quit Inkscape
- Start Inkscape
- In splash screen click button for New Document (observe that "Align and Distribute" dialog is now present at start up)
- in dialog hover mouse cursor over the button icon below the phrase "Relative to:"
- Observe the popup tooltip appears: "Align right edges of objects to the left edge of anchor"
- Hover mouse cursor over the button icon below the word "Distribute"
- Observe the popup tooltip appears: "Display horizontally with even spacing between left edges"
The previously missing tooltips now appear for the groups "Distribute", "Rearrange", and "Distribute Nodes" These tooltips are initialized only when the dialog is initially displayed (when the previous Inkscape exited displaying the dialog).
Prove that by now...
- closing the "Align and Distribute" dialog
- redisplay using Object -> Align and Distribute...
- observe that the tooltips under groups "Distribute", "Rearrange", and "Distribute Nodes" again fail to popup
The dialog control items that were changed to be actions are not fully rebuilt each time the Align and Distribute dialog is displayed. They are only built correctly when the dialog is initially displayed at window creation time. (?)
Bonus oddity:
With new (empty) document and the "Align and Distribute" dialog displayed,
- choose menu File -> Close
- new document window appears with initially displayed "Align and Distribute" dialog
- observe that everything below "Remove overlaps" controls is now not displayed
but tooltips continue working (because dialog initially present when window displayed?) so this problem is likely a separate problem. ;-) (Want a separate bug report?)
What happened?
As described above, tooltips are missing any time the "Align and Distribute" is (re)displayed by request from the Object menu.
What should have happened?
This dialog's control items should be completely rebuilt on each dialog display request, including the tooltips.
Version info
Both 1.2 and 1.3-dev show the problem.
Inkscape 1.2 (dc2aedaf03, 2022-05-15) GLib version: 2.72.1 GTK version: 3.24.33 glibmm version: 2.66.4 gtkmm version: 3.24.6 libxml2 version: 2.9.14 libxslt version: 1.1.35 Cairo version: 1.17.6 Pango version: 1.50.7 HarfBuzz version: 4.2.1
Inkscape 1.3-dev (74adff3496, 2022-05-26) GLib version: 2.72.1 GTK version: 3.24.34 glibmm version: 2.66.4 gtkmm version: 3.24.6 libxml2 version: 2.9.14 libxslt version: 1.1.35 Cairo version: 1.17.6 Pango version: 1.50.7 HarfBuzz version: 4.3.0
OS version: Windows 10 21H1