From c3e75f360c3688af8a892ec3dd953956231547c2 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 1 Nov 2021 00:45:48 +0100 Subject: debian/control: Depend on lomiri-common-schemas instead of accountsservice-ubuntu-schemas --- debian/control | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 99ceccd..29be09f 100644 --- a/debian/control +++ b/debian/control @@ -9,7 +9,7 @@ Build-Depends: cmake, libayatana-common-dev (>= 0.9.1), libnotify-dev (>= 0.7.6), libglib2.0-dev (>= 2.36), - accountsservice-ubuntu-schemas | hello, + lomiri-common-schemas | hello, # for packaging debhelper (>= 10), dpkg-dev (>= 1.16.1.1), -- cgit v1.2.3 From b956f93f37250cc31c40b95ded703dc01dc05dae Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 1 Nov 2021 00:48:00 +0100 Subject: com.ubuntu.touch.AccountsService.Sound to com.lomiri.touch.AccountsService.Sound --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a22ab16..35ae281 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ pkg_check_modules(SERVICE_DEPS REQUIRED include_directories (SYSTEM ${SERVICE_DEPS_INCLUDE_DIRS}) -if(EXISTS "/usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.Sound.xml") +if(EXISTS "/usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml") set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS ON) add_definitions ( -DHAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS ) else() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 499efb4..7a460de 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -30,9 +30,9 @@ add_gdbus_codegen_with_namespace(SERVICE_GENERATED_SOURCES dbus-testing if (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) add_gdbus_codegen_with_namespace(SERVICE_GENERATED_SOURCES dbus-accounts-sound - com.ubuntu.touch + com.lomiri.touch Dbus - /usr/share/accountsservice/interfaces/com.ubuntu.touch.AccountsService.Sound.xml) + /usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml) endif() # add the bin dir to our include path so the code can find the generated header files -- cgit v1.2.3 From c8aae42d9199448176c287abd02bcb31f5e50a35 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 1 Nov 2021 00:54:01 +0100 Subject: *_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS to HAS_LOMIRI_ACCTSERVICE_SOUND --- CMakeLists.txt | 6 +++--- src/CMakeLists.txt | 2 +- src/notifier.c | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35ae281..8f8a8e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,10 +69,10 @@ pkg_check_modules(SERVICE_DEPS REQUIRED include_directories (SYSTEM ${SERVICE_DEPS_INCLUDE_DIRS}) if(EXISTS "/usr/share/accountsservice/interfaces/com.lomiri.touch.AccountsService.Sound.xml") - set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS ON) - add_definitions ( -DHAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS ) + set (HAS_LOMIRI_ACCTSERVICE_SOUND ON) + add_definitions ( -DHAS_LOMIRI_ACCTSERVICE_SOUND ) else() - set (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS OFF) + set (HAS_LOMIRI_ACCTSERVICE_SOUND OFF) endif() ## diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7a460de..d50d065 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -28,7 +28,7 @@ add_gdbus_codegen_with_namespace(SERVICE_GENERATED_SOURCES dbus-testing Dbus ${CMAKE_SOURCE_DIR}/data/org.ayatana.indicator.power.Testing.xml) -if (HAVE_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS) +if (HAS_LOMIRI_ACCTSERVICE_SOUND) add_gdbus_codegen_with_namespace(SERVICE_GENERATED_SOURCES dbus-accounts-sound com.lomiri.touch Dbus diff --git a/src/notifier.c b/src/notifier.c index 26a8ce7..4bd55c1 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -21,7 +21,7 @@ #include "datafiles.h" -#ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND #include "dbus-accounts-sound.h" #endif @@ -86,7 +86,7 @@ typedef struct gboolean actions_supported; GCancellable * cancellable; - #ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS + #ifdef HAS_LOMIRI_ACCTSERVICE_SOUND DbusAccountsServiceSound * accounts_service_sound_proxy; gboolean accounts_service_sound_proxy_pending; #endif @@ -147,7 +147,7 @@ get_battery_power_level (IndicatorPowerDevice * battery) **** Sounds ***/ -#ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS +#ifdef HAS_LOMIRI_ACCTSERVICE_SOUND static void on_sound_proxy_ready (GObject * source_object G_GNUC_UNUSED, GAsyncResult * res, @@ -309,7 +309,7 @@ notification_show(IndicatorPowerNotifier * self) if (are_actions_supported(self)) { - #ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS + #ifdef HAS_LOMIRI_ACCTSERVICE_SOUND if (!silent_mode(self)) #endif { @@ -453,7 +453,7 @@ my_dispose (GObject * o) indicator_power_notifier_set_battery (self, NULL); g_clear_object (&p->dbus_battery); - #ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS + #ifdef HAS_LOMIRI_ACCTSERVICE_SOUND g_clear_object (&p->accounts_service_sound_proxy); #endif @@ -490,7 +490,7 @@ indicator_power_notifier_init (IndicatorPowerNotifier * self) if (!instance_count++ && !notify_init(SERVICE_EXEC)) g_critical("Unable to initialize libnotify! Notifications might not be shown."); - #ifdef HAS_UT_ACCTSERVICE_SYSTEMSOUND_SETTINGS + #ifdef HAS_LOMIRI_ACCTSERVICE_SOUND p->accounts_service_sound_proxy_pending = TRUE; gchar* object_path = g_strdup_printf("/org/freedesktop/Accounts/User%lu", (gulong)getuid()); dbus_accounts_service_sound_proxy_new_for_bus( -- cgit v1.2.3