Gtk.IconTheme.get_icon_sizes() returns distinct lists
- From: Jay Strict <jay strict posteo de>
- To: <python-hackers-list gnome org>
- Subject: Gtk.IconTheme.get_icon_sizes() returns distinct lists
- Date: Fri, 04 Apr 2014 00:02:04 +0200
Hi,
with PyGObject 3.10.2 the following program
============================================================
from gi.repository import Gtk
theme = Gtk.IconTheme.get_default()
for i in range(20):
sizes = theme.get_icon_sizes('application-exit')
print(sizes)
============================================================
results in the following (undeterministic) output:
============================================================
[22, 16, 24, 32, 48, 0, 81, 0, 1920169263, 1634235183, 1764713842,
1936617315, 1869506351, 1932485997, 1634492771, 795176034, 1702125923,
1769107303, 1946186597, 1936617321, 909455916, 909455992, 1886413103]
[22, 16, 24]
[22, 16, 24]
[22, 16, 24]
[22, 16, 24]
[22, 16, 24]
[22, 16, 24, 32, 48, 0, 33, 0, -1686329720, 32747, -1686329720, 32747,
32, 0, 288, 0, 11155184, 0, 11322344, 0, -3, -1, 10972016, 0, 150, 0,
-1680381472, 32747]
[22, 16, 24, 32, 48, 0, 289, 0, 11155184, 0, 11322344, 0, -3, -1,
10972016, 0, 150, 0, -1680381472, 32747, 73, 0, 73, 0]
[22, 16, 24, 32, 48, 0, 33, 0, -1686329736]
[22, 16, 24, 32, 48]
[22, 16, 24, 32, 48, 0]
[22, 16, 24]
[22, 16, 24, 32, 48]
[22, 16, 24, 32, 48, 0, 33, 0, 22]
[22, 16, 24, 32, 48, 0, 33, 0, -1686329736]
[22, 16, 24, 32, 48]
[22, 16, 24, 32, 48, 0, 33, 0]
[22, 16, 24, 32]
[22, 16, 24, 32, 48, 0, 33, 0, -1686329720, 32747, -1686329720, 32747]
[22, 16, 24, 32, 48, 0, 49, 0]
============================================================
Can you confirm this? Is it a bug in PyGObject?
Best regards,
Jay
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]