diff options
-rw-r--r-- | src/config/profiles.c | 7 | ||||
-rw-r--r-- | src/config/profiles.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/config/profiles.c b/src/config/profiles.c index 23053a0..2829f56 100644 --- a/src/config/profiles.c +++ b/src/config/profiles.c @@ -102,6 +102,13 @@ mq_profiles_get_color(MqProfiles *profiles, const gchar *profile) NULL); } +gboolean +mq_profiles_is_default(MqProfiles *profiles, const gchar *profile) +{ + return g_key_file_get_boolean(profiles->key_file, profile, "default", + NULL); +} + void mq_profiles_set_name(MqProfiles *profiles, const gchar *profile, const gchar *name) diff --git a/src/config/profiles.h b/src/config/profiles.h index 0b0a465..fce5209 100644 --- a/src/config/profiles.h +++ b/src/config/profiles.h @@ -40,6 +40,9 @@ mq_profiles_get_name(MqProfiles *profiles, const gchar *profile); gchar * mq_profiles_get_color(MqProfiles *profiles, const gchar *profile); +gboolean +mq_profiles_is_default(MqProfiles *profiles, const gchar *profile); + void mq_profiles_set_name(MqProfiles *profiles, const gchar *profile, const gchar *name); |