aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/add_conversation/conference_list.vala
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-05-14 14:45:59 +0200
committerfiaxh <git@lightrise.org>2022-07-27 20:34:20 +0200
commitf44cbe02c17df1f02ad49c63cd784fec0ea02d85 (patch)
tree4cab9b5f84d88769d19b0698e24b318f50b6144e /main/src/ui/add_conversation/conference_list.vala
parent2b3ce5fc95c63ed7d54e207db0585c8b8bbcd603 (diff)
downloaddino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.tar.gz
dino-f44cbe02c17df1f02ad49c63cd784fec0ea02d85.zip
Improve Gtk4 port
Diffstat (limited to 'main/src/ui/add_conversation/conference_list.vala')
-rw-r--r--main/src/ui/add_conversation/conference_list.vala17
1 files changed, 6 insertions, 11 deletions
diff --git a/main/src/ui/add_conversation/conference_list.vala b/main/src/ui/add_conversation/conference_list.vala
index a19630e4..181c6219 100644
--- a/main/src/ui/add_conversation/conference_list.vala
+++ b/main/src/ui/add_conversation/conference_list.vala
@@ -20,10 +20,6 @@ protected class ConferenceList {
public ConferenceList(StreamInteractor stream_interactor) {
this.stream_interactor = stream_interactor;
-// list_box.set_filter_func(filter);
- list_box.set_header_func(header);
-// list_box.set_sort_func(sort);
-
stream_interactor.get_module(MucManager.IDENTITY).bookmarks_updated.connect((account, conferences) => {
lists[account] = conferences;
refresh_conferences();
@@ -57,7 +53,12 @@ protected class ConferenceList {
}
public void refresh_conferences() {
-// @foreach((widget) => { remove(widget); });
+ foreach (Account account in widgets.keys) {
+ foreach (Jid jid in widgets[account].keys) {
+ remove_conference(account, jid);
+ }
+ }
+
foreach (Account account in lists.keys) {
foreach (Conference conference in lists[account]) {
add_conference(account, conference);
@@ -74,12 +75,6 @@ protected class ConferenceList {
refresh_conferences();
}
- private void header(ListBoxRow row, ListBoxRow? before_row) {
- if (row.get_header() == null && before_row != null) {
- row.set_header(new Separator(Orientation.HORIZONTAL));
- }
- }
-
public ListBox get_list_box() {
return list_box;
}