aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-11-28 20:04:41 +0100
committerRobert Tari <robert@tari.in>2023-11-28 20:04:41 +0100
commit3e8aab9eaf85ec528d6a0465a162c017934b3b5d (patch)
tree8e846264c36e02681cef23cc0bd7e31656546ae8
parentb153ce4da15f9ff3dc7f1bd5bd798a402d444f4b (diff)
parent41c2b5c21de5a3774f0bbb54de3999eaccc7de70 (diff)
downloadayatana-indicator-sound-3e8aab9eaf85ec528d6a0465a162c017934b3b5d.tar.gz
ayatana-indicator-sound-3e8aab9eaf85ec528d6a0465a162c017934b3b5d.tar.bz2
ayatana-indicator-sound-3e8aab9eaf85ec528d6a0465a162c017934b3b5d.zip
Merge branch 'protected-superclass'
Attributes GH PR #99: https://github.com/AyatanaIndicators/ayatana-indicator-sound/pull/99
-rw-r--r--src/volume-control.vala2
-rw-r--r--src/volume-warning.vala2
-rw-r--r--tests/CMakeLists.txt4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index f4244b4..a8ba3c7 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -54,7 +54,7 @@ public abstract class VolumeControl : Object
protected IndicatorSound.Options _options = null;
- internal VolumeControl(IndicatorSound.Options options) {
+ protected VolumeControl(IndicatorSound.Options options) {
_options = options;
}
diff --git a/src/volume-warning.vala b/src/volume-warning.vala
index b43e90f..6cfab41 100644
--- a/src/volume-warning.vala
+++ b/src/volume-warning.vala
@@ -44,7 +44,7 @@ public abstract class VolumeWarning : Object
}
}
- internal VolumeWarning (IndicatorSound.Options options) {
+ protected VolumeWarning (IndicatorSound.Options options) {
_options = options;
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 6776514..39711ed 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -83,8 +83,8 @@ vala_init(vala-mocks
set_source_files_properties(media-player-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-unknown-warning-option -Wno-incompatible-pointer-types -Wno-discarded-qualifiers")
set_source_files_properties(media-player-list-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types -Wno-unused-variable")
set_source_files_properties(options-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types -Wno-unused-variable")
-set_source_files_properties(volume-control-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types -Wno-int-to-pointer-cast -Wno-implicit-function-declaration")
-set_source_files_properties(volume-warning-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types -Wno-unused-variable -Wno-int-to-pointer-cast -Wno-implicit-function-declaration")
+set_source_files_properties(volume-control-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types")
+set_source_files_properties(volume-warning-mock.c PROPERTIES COMPILE_FLAGS "${CMAKE_C_FLAGS} -Wno-incompatible-pointer-types -Wno-unused-variable")
vala_add(vala-mocks
media-player-mock.vala