Skip to content

Jeremypw/gtk4prep/devicelistbox cleanup#2541

Merged
danirabbit merged 6 commits intomainfrom
jeremypw/gtk4prep/devicelistbox-cleanup
Mar 8, 2025
Merged

Jeremypw/gtk4prep/devicelistbox cleanup#2541
danirabbit merged 6 commits intomainfrom
jeremypw/gtk4prep/devicelistbox-cleanup

Conversation

@jeremypw
Copy link
Contributor

@jeremypw jeremypw commented Mar 7, 2025

Use equivalent code that also compiles in Gtk4 where possible

Copy link
Member

@danirabbit danirabbit left a comment

Choose a reason for hiding this comment

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

Same little question/nitpick as the other one, otherwise makes sense to me

Comment on lines +176 to +177
int index = 0;
Gtk.ListBoxRow? row = list_box.get_row_at_index (index++);
Copy link
Member

Choose a reason for hiding this comment

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

Same question as another review. It seems odd to me to start at 0 and then immediately increment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Now using prefix operator which is clearer.

@jeremypw jeremypw requested a review from danirabbit March 8, 2025 13:15
@danirabbit danirabbit enabled auto-merge (squash) March 8, 2025 15:33
@danirabbit danirabbit merged commit eb9adf0 into main Mar 8, 2025
4 checks passed
@danirabbit danirabbit deleted the jeremypw/gtk4prep/devicelistbox-cleanup branch March 8, 2025 15:35
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