summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-12 16:37:44 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-12 16:37:44 (EST)
commit0db5fe0c5562a248fd648abf07e7b21d96084f34 (patch)
treee393c4da22149b3785c1a8833b51a0492bd4342d /src
parent465b5cf5731122fb174ee4012ce469cf43a5a785 (diff)
downloadmarquee-0db5fe0c5562a248fd648abf07e7b21d96084f34.zip
marquee-0db5fe0c5562a248fd648abf07e7b21d96084f34.tar.gz
marquee-0db5fe0c5562a248fd648abf07e7b21d96084f34.tar.bz2
mq_application_new(): Get MqConfig from MqProfile
Diffstat (limited to 'src')
-rw-r--r--src/application.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/application.c b/src/application.c
index 24b8094..30cd060 100644
--- a/src/application.c
+++ b/src/application.c
@@ -83,16 +83,12 @@ MqApplication *
mq_application_new(const gchar *profile)
{
MqApplication *application;
- gchar *current_profile;
application = malloc(sizeof(*application));
application->profiles = mq_profiles_new();
mq_profiles_set_current(application->profiles, profile);
- current_profile = mq_profiles_get_current(application->profiles);
- application->config = mq_config_new(current_profile,
- MQ_CONFIG_PROFILE_DEFAULT);
- g_free(current_profile);
- mq_config_load(application->config);
+ application->config = mq_profiles_get_current_config(
+ application->profiles);
application->windows = NULL;
application->tabs = g_hash_table_new_full(g_int64_hash, g_int64_equal,
g_free, NULL);