aboutsummaryrefslogtreecommitdiff
path: root/src/application.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/application.c')
-rw-r--r--src/application.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/application.c b/src/application.c
index e597bfb..529ba55 100644
--- a/src/application.c
+++ b/src/application.c
@@ -58,6 +58,16 @@ application_init(MESSENGER_Application *app,
58 app->chat.tid = 0; 58 app->chat.tid = 0;
59 app->chat.signal = MESSENGER_NONE; 59 app->chat.signal = MESSENGER_NONE;
60 60
61 app->ui.mobile = FALSE;
62
63 for (int i = 0; i < app->argc; i++) {
64 if (0 == strcmp("--mobile", app->argv[i]))
65 {
66 app->ui.mobile = TRUE;
67 break;
68 }
69 }
70
61 ui_messenger_init(app, &(app->ui.messenger)); 71 ui_messenger_init(app, &(app->ui.messenger));
62} 72}
63 73
@@ -102,8 +112,6 @@ typedef struct MESSENGER_ApplicationEventCall
102static gboolean 112static gboolean
103_application_event_call(gpointer user_data) 113_application_event_call(gpointer user_data)
104{ 114{
105 //printf("_application_event_call\n");
106
107 MESSENGER_ApplicationEventCall *call; 115 MESSENGER_ApplicationEventCall *call;
108 116
109 call = (MESSENGER_ApplicationEventCall*) user_data; 117 call = (MESSENGER_ApplicationEventCall*) user_data;
@@ -117,8 +125,6 @@ void
117application_call_event(MESSENGER_Application *app, 125application_call_event(MESSENGER_Application *app,
118 MESSENGER_ApplicationEvent event) 126 MESSENGER_ApplicationEvent event)
119{ 127{
120 //printf("application_call_event\n");
121
122 MESSENGER_ApplicationEventCall *call; 128 MESSENGER_ApplicationEventCall *call;
123 129
124 call = (MESSENGER_ApplicationEventCall*) GNUNET_malloc( 130 call = (MESSENGER_ApplicationEventCall*) GNUNET_malloc(