diff options
Diffstat (limited to 'src/application.c')
-rw-r--r-- | src/application.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/application.c b/src/application.c index f3061a3..0cf19c4 100644 --- a/src/application.c +++ b/src/application.c @@ -25,6 +25,7 @@ #include <webkit2/webkit2.h> #include "application.h" +#include "config.h" #include "about.h" #include "window.h" @@ -36,6 +37,8 @@ mq_application_new(gchar __attribute__((unused)) *profile, WebKitWebContext *web_context; application = malloc(sizeof(*application)); + application->config = mq_config_new("default"); + mq_config_load(application->config); application->windows = NULL; web_context = webkit_web_context_get_default(); @@ -57,6 +60,12 @@ mq_application_main(MqApplication __attribute__((unused)) *application) return EXIT_SUCCESS; } +MqConfig * +mq_application_get_config(MqApplication *application) +{ + return application->config; +} + MqWindow * mq_application_add_window(MqApplication *application, const gchar **uris) { |