diff options
author | Robert Tari <robert@tari.in> | 2021-05-25 16:07:45 +0200 |
---|---|---|
committer | Robert Tari <robert@tari.in> | 2021-05-25 16:07:45 +0200 |
commit | eced932e2243a8906fdfccf55f0e6d695a4d59bf (patch) | |
tree | d3d33bf593dc9741135ac74825c1a028d3480035 /src/service.c | |
parent | 3b9fe90ec0e7674126dd0e18d0ff1718b5b67133 (diff) | |
parent | 4a6696a9a28e4fa20e5d4c8ecbce527c13e6d1b8 (diff) | |
download | ayatana-indicator-session-eced932e2243a8906fdfccf55f0e6d695a4d59bf.tar.gz ayatana-indicator-session-eced932e2243a8906fdfccf55f0e6d695a4d59bf.tar.bz2 ayatana-indicator-session-eced932e2243a8906fdfccf55f0e6d695a4d59bf.zip |
Merge branch 'sunweaver-libayatana-common'
Attributes GH PR #35: https://github.com/AyatanaIndicators/ayatana-indicator-session/pull/35
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/service.c b/src/service.c index c970c62..1d3115f 100644 --- a/src/service.c +++ b/src/service.c @@ -19,11 +19,11 @@ #include <glib/gi18n.h> #include <gio/gio.h> +#include <ayatana/common/utils.h> #include "backend.h" #include "recoverable-problem.h" #include "service.h" - #include "utils.h" #define BUS_NAME "org.ayatana.indicator.session" @@ -1175,16 +1175,18 @@ indicator_session_service_init (IndicatorSessionService * self) /* init our priv pointer */ p = indicator_session_service_get_instance_private (self); p->indicator_settings = g_settings_new ("org.ayatana.indicator.session"); - if (is_mate()) - p->keybinding_settings = g_settings_new ("org.mate.SettingsDaemon.plugins.media-keys"); - - else if (is_budgie()) + if (ayatana_common_utils_is_mate()) { - p->keybinding_settings = g_settings_new("org.gnome.settings-daemon.plugins.media-keys"); + p->keybinding_settings = g_settings_new ("org.mate.SettingsDaemon.plugins.media-keys"); + } + else if (ayatana_common_utils_is_budgie()) + { + p->keybinding_settings = g_settings_new ("org.gnome.settings-daemon.plugins.media-keys"); + } + else if (ayatana_common_utils_is_gnome() || ayatana_common_utils_is_unity()) + { + p->keybinding_settings = g_settings_new ("org.gnome.settings-daemon.plugins.media-keys"); } - - else if (is_gnome() || is_unity()) - p->keybinding_settings = g_settings_new ("org.gnome.settings-daemon.plugins.media-keys"); self->priv = p; |