Skip to content

Launcher: Use index for tooltip #590

Merged
danirabbit merged 2 commits into
mainfrom
leolost/launcher-index
Jun 19, 2026
Merged

Launcher: Use index for tooltip #590
danirabbit merged 2 commits into
mainfrom
leolost/launcher-index

Conversation

@leolost2605

Copy link
Copy Markdown
Member

Instead of manually calculating the index use the provided property of base item. Required some refactoring to make sure the index gets updated when it should. This will also make sure update_tooltip is called only once when reordering instead of on every frame like it's currently on main.

@leolost2605 leolost2605 requested a review from a team June 19, 2026 16:20

@danirabbit danirabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, very nice!

Comment thread src/BaseItem.vala
get {
var item_group = get_ancestor (typeof (ItemGroup)) as ItemGroup;
if (item_group == null) {
return Gtk.INVALID_LIST_POSITION;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice use of constants, I didn't know about this one

@danirabbit danirabbit merged commit 6f218aa into main Jun 19, 2026
4 checks passed
@danirabbit danirabbit deleted the leolost/launcher-index branch June 19, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants