gtk+3.0.git
2 years agoUpdate Slovak translation
Dušan Kazik [Tue, 13 Jun 2023 12:10:56 +0000 (12:10 +0000)]
Update Slovak translation

Origin: 3.24.39, commit:4d9ca4e0b6bf64e0e2246e0dddf44b792142b911

Gbp-Pq: Name Update-Slovak-translation.patch

2 years agoUpdate Czech translation
Daniel Rusek [Mon, 12 Jun 2023 13:15:19 +0000 (13:15 +0000)]
Update Czech translation

Origin: 3.24.39, commit:eb379bfdd78ba68ffee1a195d3eb6a3d64217f26

Gbp-Pq: Name Update-Czech-translation.patch

2 years agoPopover: Clarify/guard out rect of get_pointing_to
Daniel Boles [Sun, 11 Jun 2023 10:37:45 +0000 (11:37 +0100)]
Popover: Clarify/guard out rect of get_pointing_to

Clarify that we zero out the widget coords and only keep its dimensions.

If we have no widget to fall-back to, memset to 0 the output @rect since
we return FALSE whether or not we have widget, so protect users from not
knowing if there was a widget and possibly accessing uninitialised ints.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/893#note_1766079
Origin: 3.24.39, commit:a6d40b610be6acb635d8732c11bb6d866bf2e95d

Gbp-Pq: Name Popover-Clarify-guard-out-rect-of-get_pointing_to.patch

2 years agopopover: Remove useless if case
Timm Bäder [Sat, 3 Jun 2017 12:38:56 +0000 (14:38 +0200)]
popover: Remove useless if case

rect is not nullable, so stop checking if it is NULL and instead add a
g_return_val_if_fail guard.

Origin: 3.24.39, commit:ad07e9043f36319ae2d733a8d5d0ef89ee9a7586

Gbp-Pq: Name popover-Remove-useless-if-case.patch

2 years agoScrolledWindow: Frame on viewport is not optional,
Daniel Boles [Sun, 11 Jun 2023 10:22:45 +0000 (11:22 +0100)]
ScrolledWindow: Frame on viewport is not optional,

and seems always to default to true, so don't mention it being optional.

Origin: 3.24.39, commit:c9f0b0d29b882326b4858b4d9fa62291dccfcf43

Gbp-Pq: Name ScrolledWindow-Frame-on-viewport-is-not-optional.patch

2 years agogtkmountoperation: avoid SEGV after bad password input
Martin Wilck [Fri, 2 Jun 2023 13:16:58 +0000 (15:16 +0200)]
gtkmountoperation: avoid SEGV after bad password input

I observed the following nautilus crash below after trying to access an SMB
share and mistyping my password (it also happens if mounting the SMB share
fails for other reasons after entering a password). The crash happens when
the password entry window pops up the second time, in this code path, at
the 7th element of priv->user_widgets:

458 pw_dialog_anonymous_toggled (GtkWidget         *widget,
459                              GtkMountOperation *operation)
460 {
...
472   for (l = priv->user_widgets; l != NULL; l = l->next)
473     {
474       gtk_widget_set_sensitive (GTK_WIDGET (l->data), !priv->anonymous);
475     }

The broken element had l->data = 0xaaaaaaaaaaaa, which means the pointer had
been freed.

The broken list entries were at the of the list because when
gtk_mount_operation_ask_password_do_gtk() constucts the pop-up the 2nd time,
it prepends new widgets:

gtk_mount_operation_ask_password_do_gtk()
   table_add_entry
       operation->priv->user_widgets = g_list_prepend (operation->priv->user_widgets, entry);

The problem is that in pw_dialog_got_response(), the widget is destroyed,
which also destroys all child widgets, but the priv->user_widgets list is
neither freed nor set to NULL.

Fix it.

Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6049
Origin: 3.24.39, commit:1d95b8ab2646b3e36a1c1b23b771c4f145be13fc

Gbp-Pq: Name gtkmountoperation-avoid-SEGV-after-bad-password-input.patch

2 years agox11: Trap XRandr errors when getting outputs during init and update
Marco Trevisan (Treviño) [Thu, 1 Jun 2023 22:23:51 +0000 (00:23 +0200)]
x11: Trap XRandr errors when getting outputs during init and update

We may try to update the XRR outputs and Crtcs when they're changing in
the server, and so we may get BadRROutput that we're currently not
handling properly.

As per this, use traps and check whether we got errors, and if we did
let's ignore the current output.

It's not required to call init_randr13() again because if we got errors
it's very likely that there's a change coming that will be notified at
next iteration during which we'll repeat the init actions.

Forwarded: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/6047
Origin: 3.24.39, commit:b938e4e6ac75af57ed5cd844c96738f01d57f24c

Gbp-Pq: Name x11-Trap-XRandr-errors-when-getting-outputs-during-init-a.patch

2 years agoThis commit fixes a performance issue on X11 systems in regards to drawing on an...
henry [Wed, 31 May 2023 22:05:19 +0000 (23:05 +0100)]
This commit fixes a performance issue on X11 systems in regards to drawing on an OpenGL surface in GTK/GDK.

This commit fixes a performance issue on X11 systems making use of the gdk_cairo_draw_from_gl() function in regards
to drawing on an OpenGL surface in GTK/GDK. Specifically, this fix removes the slow X11 codepath that was used when
executing the gdk_cairo_draw_from_gl() function because it was completely uneeded. I tested the before and after on
Flutter and GTK apps making use of the OpenGL rendering and can confirm that there is no behaviour and visual
difference. This change is also specific to drawings that make use of textures. The render buffer code path has
been left completely unmodified.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4704
Origin: 3.24.39, commit:7237f5d0eb5ec2f1411a28b9394ff4c4472f4d8b

Gbp-Pq: Name This-commit-fixes-a-performance-issue-on-X11-systems-in-r.patch

2 years agoFix a typo
liulinsong [Wed, 31 May 2023 14:13:48 +0000 (22:13 +0800)]
Fix a typo

1. According to the UTF-8 spec, ASCII character's charcode is from
   0 to 127 inclusively.

2. Any charcode which is greater than or equal to 128 will be
   a multi-byte character.

Origin: 3.24.39, commit:1659cefde792f127f604f15ae12f17ede10f1c00

Gbp-Pq: Name Fix-a-typo.patch

2 years agoUpdate Turkish translation
Sabri Ünal [Mon, 29 May 2023 12:18:38 +0000 (12:18 +0000)]
Update Turkish translation

Origin: 3.24.39, commit:379512c092dc2bc904ebd6aaa3b84d7234c31034

Gbp-Pq: Name Update-Turkish-translation.patch

2 years agoMake sure that the charcode is signless
liiulinsong [Fri, 26 May 2023 02:18:58 +0000 (10:18 +0800)]
Make sure that the charcode is signless

1. The data with type of char is signed by default.

2. The byte value of UTF-8 is signless by default.

3. So, if a UTF-8 charcode is stored in a char array, we should cast the
type of its value from char to unsigned char.

Origin: 3.24.39, commit:6dc75b46cc9afe1c98b7ba72a9b1a275c723ea42

Gbp-Pq: Name Make-sure-that-the-charcode-is-signless.patch

2 years agoUse correct stat struct for ftw()
Руслан Ижбулатов [Sun, 10 Jun 2018 21:05:30 +0000 (21:05 +0000)]
Use correct stat struct for ftw()

check_dir_mtime() is called by ftw() and is given
the real stat struct, not its glib version (which may
or may not be the same as "struct stat").

This is irrelevant for MSVC (it has no ftw()) and
works correctly for MinGW-w64 (which declares stat
structures correctly). If mingw.org complains, add
a special ifdef for it later.

Origin: upstream, 3.24.39, commit:7e17693cced0db855bfe0997f26633ca8bdd48cc

Gbp-Pq: Name Use-correct-stat-struct-for-ftw.patch

2 years agogtk+3.0 (3.24.38-6+rpi1) trixie-staging; urgency=medium
Raspbian forward porter [Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)]
gtk+3.0 (3.24.38-6+rpi1) trixie-staging; urgency=medium

  [changes brought forward from 3.24.38-5+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Sat, 23 Sep 2023 08:21:18 +0000]
  * Disable testsuite.

[dgit import unpatched gtk+3.0 3.24.38-6+rpi1]

2 years agoImport gtk+3.0_3.24.38-6+rpi1.debian.tar.xz
Raspbian forward porter [Wed, 22 Nov 2023 04:54:09 +0000 (04:54 +0000)]
Import gtk+3.0_3.24.38-6+rpi1.debian.tar.xz

[dgit import tarball gtk+3.0 3.24.38-6+rpi1 gtk+3.0_3.24.38-6+rpi1.debian.tar.xz]

2 years agoImport gtk+3.0_3.24.38.orig.tar.xz
Jeremy Bícha [Mon, 22 May 2023 17:35:52 +0000 (13:35 -0400)]
Import gtk+3.0_3.24.38.orig.tar.xz

[dgit import orig gtk+3.0_3.24.38.orig.tar.xz]