qt6-base.git
14 months agoQGtk3Theme: fix QGtk3Interface::fileIcon
Debian Qt/KDE Maintainers [Sun, 22 Sep 2024 19:08:16 +0000 (22:08 +0300)]
QGtk3Theme: fix QGtk3Interface::fileIcon

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=277d77029d7fe8f4
Last-Update: 2024-08-02

By failing to set the G_FILE_ATTRIBUTE_STANDARD_ICON attribute, the
"icon" returned by g_file_info_get_icon was always null and a
GLib-GIO-CRITICAL warning was output to the console (at least since glib
2.76.0)[1].

After adding the necessary attribute, the code was crashing, because now
a valid icon was returned, however the icon should not be freed[2],
which is why I removed the "g_object_unref(icon)".

Now it was no longer crashing, but the size of the icons was off. It was
passing GTK_ICON_SIZE_BUTTON (4) to gtk_icon_theme_lookup_by_gicon where
a size in pixels was expected. I chose 16 because that's the pixel size
associated with GTK_ICON_SIZE_BUTTON[3].

Finally I noticed the returned icons had the wrong color. It seems that
a GdkPixbuf uses RGBA8888 format[4]. Adding an explicit conversion to
ARGB32 made the icons look correct for me.

[1] https://gitlab.gnome.org/GNOME/glib/-/commit/ed8e86a7d41a0900d8fa57edc64264d04cf8135b
[2] https://docs.gtk.org/gio/method.FileInfo.get_icon.html
[3] https://docs.gtk.org/gtk3/enum.IconSize.html#button
[4] https://docs.gtk.org/gdk-pixbuf/class.Pixbuf.html#image-data

Gbp-Pq: Name fix_qgtk3interface_fileicon.patch

14 months agoqt6-base (6.6.2+dfsg-12) unstable; urgency=medium
Dmitry Shachnev [Sun, 22 Sep 2024 19:08:16 +0000 (22:08 +0300)]
qt6-base (6.6.2+dfsg-12) unstable; urgency=medium

  * Team upload.
  * Replace Qml2Imports (deprecated) with QmlImports in debian/qt.conf.in.

[dgit import unpatched qt6-base 6.6.2+dfsg-12]

14 months agoImport qt6-base_6.6.2+dfsg-12.debian.tar.xz
Dmitry Shachnev [Sun, 22 Sep 2024 19:08:16 +0000 (22:08 +0300)]
Import qt6-base_6.6.2+dfsg-12.debian.tar.xz

[dgit import tarball qt6-base 6.6.2+dfsg-12 qt6-base_6.6.2+dfsg-12.debian.tar.xz]

22 months agoImport qt6-base_6.6.2+dfsg.orig.tar.xz
Patrick Franz [Thu, 15 Feb 2024 18:44:16 +0000 (19:44 +0100)]
Import qt6-base_6.6.2+dfsg.orig.tar.xz

[dgit import orig qt6-base_6.6.2+dfsg.orig.tar.xz]