aboutsummaryrefslogtreecommitdiff
path: root/client/src/ui/add_conversation/conference
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/ui/add_conversation/conference')
-rw-r--r--client/src/ui/add_conversation/conference/add_groupchat_dialog.vala36
-rw-r--r--client/src/ui/add_conversation/conference/conference_details_fragment.vala66
-rw-r--r--client/src/ui/add_conversation/conference/conference_list.vala2
3 files changed, 31 insertions, 73 deletions
diff --git a/client/src/ui/add_conversation/conference/add_groupchat_dialog.vala b/client/src/ui/add_conversation/conference/add_groupchat_dialog.vala
index 05589fe1..8cc5ac72 100644
--- a/client/src/ui/add_conversation/conference/add_groupchat_dialog.vala
+++ b/client/src/ui/add_conversation/conference/add_groupchat_dialog.vala
@@ -8,32 +8,15 @@ namespace Dino.Ui.AddConversation.Conference {
[GtkTemplate (ui = "/org/dino-im/add_conversation/add_groupchat_dialog.ui")]
protected class AddGroupchatDialog : Gtk.Dialog {
- [GtkChild]
- private Stack accounts_stack;
-
- [GtkChild]
- private ComboBoxText accounts_comboboxtext;
-
- [GtkChild]
- private Label account_label;
-
- [GtkChild]
- private Button ok_button;
-
- [GtkChild]
- private Button cancel_button;
-
- [GtkChild]
- private Entry jid_entry;
-
- [GtkChild]
- private Entry alias_entry;
-
- [GtkChild]
- private Entry nick_entry;
-
- [GtkChild]
- private CheckButton autojoin_checkbutton;
+ [GtkChild] private Stack accounts_stack;
+ [GtkChild] private ComboBoxText accounts_comboboxtext;
+ [GtkChild] private Label account_label;
+ [GtkChild] private Button ok_button;
+ [GtkChild] private Button cancel_button;
+ [GtkChild] private Entry jid_entry;
+ [GtkChild] private Entry alias_entry;
+ [GtkChild] private Entry nick_entry;
+ [GtkChild] private CheckButton autojoin_checkbutton;
private StreamInteractor stream_interactor;
private Xmpp.Xep.Bookmarks.Conference? edit_confrence = null;
@@ -104,4 +87,5 @@ protected class AddGroupchatDialog : Gtk.Dialog {
close();
}
}
+
} \ No newline at end of file
diff --git a/client/src/ui/add_conversation/conference/conference_details_fragment.vala b/client/src/ui/add_conversation/conference/conference_details_fragment.vala
index 324c133d..d42c79bd 100644
--- a/client/src/ui/add_conversation/conference/conference_details_fragment.vala
+++ b/client/src/ui/add_conversation/conference/conference_details_fragment.vala
@@ -53,53 +53,25 @@ protected class ConferenceDetailsFragment : Box {
}
}
- [GtkChild]
- private Stack accounts_stack;
-
- [GtkChild]
- private Stack jid_stack;
-
- [GtkChild]
- private Stack nick_stack;
-
- [GtkChild]
- private Stack password_stack;
-
- [GtkChild]
- private Button accounts_button;
-
- [GtkChild]
- private Button jid_button;
-
- [GtkChild]
- private Button nick_button;
-
- [GtkChild]
- private Button password_button;
-
- [GtkChild]
- private Label accounts_label;
-
- [GtkChild]
- private Label jid_label;
-
- [GtkChild]
- private Label nick_label;
-
- [GtkChild]
- private Label password_label;
-
- [GtkChild]
- private ComboBoxText accounts_comboboxtext;
-
- [GtkChild]
- private Entry jid_entry;
-
- [GtkChild]
- private Entry nick_entry;
-
- [GtkChild]
- private Entry password_entry;
+ [GtkChild] private Stack accounts_stack;
+ [GtkChild] private Button accounts_button;
+ [GtkChild] private Label accounts_label;
+ [GtkChild] private ComboBoxText accounts_comboboxtext;
+
+ [GtkChild] private Stack jid_stack;
+ [GtkChild] private Button jid_button;
+ [GtkChild] private Label jid_label;
+ [GtkChild] private Entry jid_entry;
+
+ [GtkChild] private Stack nick_stack;
+ [GtkChild] private Button nick_button;
+ [GtkChild] private Label nick_label;
+ [GtkChild] private Entry nick_entry;
+
+ [GtkChild] private Stack password_stack;
+ [GtkChild] private Button password_button;
+ [GtkChild] private Label password_label;
+ [GtkChild] private Entry password_entry;
private StreamInteractor stream_interactor;
diff --git a/client/src/ui/add_conversation/conference/conference_list.vala b/client/src/ui/add_conversation/conference/conference_list.vala
index 2e461472..17f08ff3 100644
--- a/client/src/ui/add_conversation/conference/conference_list.vala
+++ b/client/src/ui/add_conversation/conference/conference_list.vala
@@ -5,6 +5,7 @@ using Xmpp;
using Dino.Entities;
namespace Dino.Ui.AddConversation.Conference {
+
protected class ConferenceList : FilterableList {
public signal void conversation_selected(Conversation? conversation);
@@ -102,4 +103,5 @@ internal class ConferenceListRow : ListRow {
image.set_from_pixbuf((new AvatarGenerator(35, 35)).set_stateless(true).draw_jid(stream_interactor, jid, account));
}
}
+
} \ No newline at end of file