summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authornirav <nirav@teisuu.com>2019-03-26 07:54:56 +0530
committerDandelion <nirav@teisuu.com>2019-03-26 07:54:56 +0530
commitcc727e972f7fdc871ee1f42cf014151b67422bf0 (patch)
treeeda5279bf96e4999e4219beb331df4646cfd2a5b /src/main.c
parent4b27c1a348d8de036dabd5525452f5b9ad08a32b (diff)
downloadap_client-cc727e972f7fdc871ee1f42cf014151b67422bf0.tar.gz
ap_client-cc727e972f7fdc871ee1f42cf014151b67422bf0.zip
Update login flow and timeline window
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/main.c b/src/main.c
index d95f547..78968a3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -4,13 +4,9 @@
#include <stdlib.h>
#include <stdbool.h>
#include <gtk-3.0/gtk/gtk.h>
-#include "auth.h"
#include "http.h"
-#include "timeline.h"
-#include "login_window.h"
#include "config.h"
-#include "timeline_window.h"
-#include "log.h"
+#include "main_window.h"
static void startup(GtkApplication *app, gpointer user_data)
{
@@ -22,11 +18,7 @@ static void startup(GtkApplication *app, gpointer user_data)
static void activate(GtkApplication *app, gpointer user_data)
{
- if (read_local_credentials()) {
- create_login_window(app, user_data);
- return;
- }
- create_timeline_window(app, NULL);
+ create_main_window(app, NULL);
}
int main(int argc, char **argv)