diff --git a/libportal/meson.build b/libportal/meson.build index 93094d31..954106a9 100644 --- a/libportal/meson.build +++ b/libportal/meson.build @@ -68,7 +68,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 ecbc4827..1fe2bac2 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__) @@ -88,7 +88,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) @@ -117,7 +117,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) @@ -164,7 +164,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) @@ -192,7 +192,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)