Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libportal/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
10 changes: 5 additions & 5 deletions tests/pyportaltest/test_notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)

Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
Loading