diff --git a/libportal/meson.build b/libportal/meson.build index 115cb114..c9ca1d44 100644 --- a/libportal/meson.build +++ b/libportal/meson.build @@ -70,7 +70,7 @@ src = [ generated_files, ] -gio_dep = dependency('gio-2.0', version: '>= 2.72') +gio_dep = dependency('gio-2.0', version: '>= 2.80') gio_unix_dep = dependency('gio-unix-2.0') install_headers(public_headers, subdir: 'libportal') diff --git a/tests/pyportaltest/test_notification.py b/tests/pyportaltest/test_notification.py index 484c175e..7ebe01f1 100644 --- a/tests/pyportaltest/test_notification.py +++ b/tests/pyportaltest/test_notification.py @@ -8,7 +8,7 @@ import logging gi.require_version("Xdp", "1.0") -from gi.repository import GLib, Gio, Xdp +from gi.repository import GLib, Gio, GioUnix, Xdp logger = logging.getLogger(__name__) @@ -96,7 +96,7 @@ def test_add_notification_bytes_icon(self): assert dict(notification) == notification_to_set_dict (icon_type, handle) = icon assert icon_type == "file-descriptor" - input_stream = Gio.UnixInputStream.new(handle.take(), True) + input_stream = GioUnix.InputStream.new(handle.take(), True) res_bytes = input_stream.read_bytes(bytes.get_size(), None) assert res_bytes.equal(bytes) @@ -128,7 +128,7 @@ def test_add_notification_file_icon(self): assert dict(notification) == notification_to_set_dict (icon_type, handle) = icon assert icon_type == "file-descriptor" - input_stream = Gio.UnixInputStream.new(handle.take(), True) + input_stream = GioUnix.InputStream.new(handle.take(), True) res_bytes = input_stream.read_bytes(bytes.get_size(), None) assert res_bytes.equal(bytes) @@ -183,7 +183,7 @@ def test_add_notification_bytes_sound(self): assert dict(notification) == notification_to_set_dict (sound_type, handle) = sound assert sound_type == "file-descriptor" - input_stream = Gio.UnixInputStream.new(handle.take(), True) + input_stream = GioUnix.InputStream.new(handle.take(), True) res_bytes = input_stream.read_bytes(bytes.get_size(), None) assert res_bytes.equal(bytes) @@ -216,7 +216,7 @@ def test_add_notification_file_sound(self): assert dict(notification) == notification_to_set_dict (sound_type, handle) = sound_out assert sound_type == "file-descriptor" - input_stream = Gio.UnixInputStream.new(handle.take(), True) + input_stream = GioUnix.InputStream.new(handle.take(), True) res_bytes = input_stream.read_bytes(bytes.get_size(), None) assert res_bytes.equal(bytes)