diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:55:53 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-09-22 03:55:53 (EDT) |
commit | 8937b2f7b252a1aa74f6885ae5697f8124fce4e6 (patch) | |
tree | 6d5f7b7813c017432afad4c0371e0080c656460c /src | |
parent | b8f0f1dec14606f57241c46354942ccc647d8ac6 (diff) | |
download | marquee-8937b2f7b252a1aa74f6885ae5697f8124fce4e6.zip marquee-8937b2f7b252a1aa74f6885ae5697f8124fce4e6.tar.gz marquee-8937b2f7b252a1aa74f6885ae5697f8124fce4e6.tar.bz2 |
main(): Use MqApplication
Diffstat (limited to 'src')
-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); } |