Skip to content

AliasDialog: use ListStore - #1082

Merged
danirabbit merged 7 commits into
masterfrom
danirabbit/aliasdialog-liststore
Aug 10, 2026
Merged

AliasDialog: use ListStore#1082
danirabbit merged 7 commits into
masterfrom
danirabbit/aliasdialog-liststore

Conversation

@danirabbit

Copy link
Copy Markdown
Member

Can't use get_children in GTK4, so use a ListStore

@danirabbit
danirabbit requested a review from a team August 6, 2026 20:19
@danirabbit danirabbit moved this to Needs Review in GTK4 Porting Aug 6, 2026

@jeremypw jeremypw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Couple of inline comments. Also clicking on the add button does nothing. Investigating.

list.set_filter_func ((Gtk.ListBoxFilterFunc) filter_func);
list.set_placeholder (placeholder);
list_box.bind_model (alias_list, (obj) => (Alias) obj);
list_box.set_filter_func ((Gtk.ListBoxFilterFunc) filter_func);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think filter functions are ignored when there is a bound model.

Comment thread src/Dialogs/AliasDialog/AliasDialog.vala Outdated
@danirabbit
danirabbit requested a review from jeremypw August 10, 2026 18:14
@danirabbit

Copy link
Copy Markdown
Member Author

@jeremypw oops sorry about that. Should work now

@jeremypw jeremypw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good now and seems to work.

write_aliases ();
});

list.add (alias);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You need to replace this with somthing!

@danirabbit
danirabbit merged commit 9f3f1c3 into master Aug 10, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in GTK4 Porting Aug 10, 2026
@danirabbit
danirabbit deleted the danirabbit/aliasdialog-liststore branch August 10, 2026 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants