aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/application.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-17 23:21:23 +0100
committerfiaxh <git@mx.ax.lt>2017-03-18 00:17:29 +0100
commit582cc78edd35d7d3a9ab6ddc579919306a2325f5 (patch)
tree38010daad2a890d3f7e82eb4ef76696df8e492d0 /main/src/ui/application.vala
parentb65c71412b5791b8c7fc7d00d76f0e5b584a7ce2 (diff)
downloaddino-582cc78edd35d7d3a9ab6ddc579919306a2325f5.tar.gz
dino-582cc78edd35d7d3a9ab6ddc579919306a2325f5.zip
"No accounts active, add?" stack in main view
Diffstat (limited to 'main/src/ui/application.vala')
-rw-r--r--main/src/ui/application.vala17
1 files changed, 2 insertions, 15 deletions
diff --git a/main/src/ui/application.vala b/main/src/ui/application.vala
index 66fc0fd0..e6f01822 100644
--- a/main/src/ui/application.vala
+++ b/main/src/ui/application.vala
@@ -5,11 +5,7 @@ using Dino.Ui;
public class Dino.Ui.Application : Dino.Application {
private Notifications notifications;
- private UnifiedWindow? window;
- private ConversationSelector.View? filterable_conversation_list;
- private ConversationSelector.List? conversation_list;
- private ConversationSummary.View? conversation_frame;
- private ChatInput? chat_input;
+ private UnifiedWindow window;
public Application() throws Error {
Notify.init("dino");
@@ -21,20 +17,11 @@ public class Dino.Ui.Application : Dino.Application {
public override void activate() {
create_set_app_menu();
- create_window();
+ window = new UnifiedWindow(this, stream_interaction);
window.show_all();
restore();
}
- private void create_window() {
- window = new UnifiedWindow(this, stream_interaction);
-
- filterable_conversation_list = window.filterable_conversation_list;
- conversation_list = window.filterable_conversation_list.conversation_list;
- conversation_frame = window.conversation_frame;
- chat_input = window.chat_input;
- }
-
private void show_accounts_window() {
ManageAccounts.Dialog dialog = new ManageAccounts.Dialog(stream_interaction, db);
dialog.set_transient_for(window);