diff options
-rw-r--r-- | src/main.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -28,7 +28,7 @@ #include <gtk/gtk.h> #include <webkit2/webkit2.h> -#include "window.h" +#include "application.h" static gchar *opt_profile; static gboolean opt_private; @@ -59,7 +59,8 @@ static GOptionEntry entries[] = { int main(int argc, char *argv[]) { - GError *error; + GError *error; + MqApplication *application; if (G_UNLIKELY(!gtk_init_with_args(&argc, &argv, "[URI]", entries, NULL, &error))) { @@ -85,9 +86,8 @@ main(int argc, char *argv[]) webkit_web_context_set_favicon_database_directory( webkit_web_context_get_default(), NULL); - mq_window_new(opt_uris); + application = mq_application_new(opt_profile, opt_private); + mq_application_add_window(application, opt_uris); - gtk_main(); - - return EXIT_SUCCESS; + return mq_application_main(application); } |