gtk+3.0.git
7 years agoimwayland: destroy objects only if it matches our manager object
Lionel Landwerlin [Tue, 27 Mar 2018 18:42:43 +0000 (19:42 +0100)]
imwayland: destroy objects only if it matches our manager object

Should fix one of the crash from #129.

Bug: https://gitlab.gnome.org/GNOME/gtk/issues/129
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894388
Forwarded: https://gitlab.gnome.org/GNOME/gtk/merge_requests/89
Applied-upstream: no

Gbp-Pq: Name 0016-imwayland-destroy-objects-only-if-it-matches-our-man.patch

7 years agom4macros: Fix underquoting in AC_PATH_TOOL
Simon McVittie [Mon, 26 Mar 2018 07:56:56 +0000 (08:56 +0100)]
m4macros: Fix underquoting in AC_PATH_TOOL

While these lines are being changed anyway, they might as well be
more correct.

Signed-off-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/gtk/issues/133
Applied-upstream: 3.22.30, commit:323d86b6e4bb19f252328a78e93fda03e1d9c0df

Gbp-Pq: Name 0015-m4macros-Fix-underquoting-in-AC_PATH_TOOL.patch

7 years agoAM_PATH_GTK_3_0: Use AC_PATH_TOOL to find pkg-config
Helmut Grohne [Mon, 26 Mar 2018 04:28:44 +0000 (06:28 +0200)]
AM_PATH_GTK_3_0: Use AC_PATH_TOOL to find pkg-config

AM_PATH_GTK_3_0 uses AC_PATH_PROG for finding pkg-config. Unfortunately,
that will find the build architecture pkg-config which in turn will miss
the host architecture gtk+3.0. What must be used here is the host
architecture pkg-config and that is found with AC_PATH_TOOL.

Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894069
Reviewed-by: Simon McVittie <smcv@debian.org>
Bug: https://gitlab.gnome.org/GNOME/gtk/issues/133
Applied-upstream: 3.22.30, commit:3a7fbb3b30f6ed8f65f9f5862c2fd30035a1a1ed

Gbp-Pq: Name 0014-AM_PATH_GTK_3_0-Use-AC_PATH_TOOL-to-find-pkg-config.patch

7 years agowayland: Drop cairo surfaces when withdrawing
Olivier Fourdan [Tue, 30 Jan 2018 12:57:35 +0000 (13:57 +0100)]
wayland: Drop cairo surfaces when withdrawing

If a window is unmapped by the client while gdk is processing updates,
(for example Firefox un-mapping its window on Expose events), the
windowing backend resources might be lost (for example with Wayland)
which can cause a crash in end_paint().

Make sure we drop the cairo surfaces as well when hiding the surface,
that will avoid the crash in gdk_window_impl_wayland_end_paint() when
trying to attach the staging cairo surface to a released wl_surface,
these will be recreated when needed when the surface becomes visible
again and there is no need to keep such buffers around for a surface
which is not visible anyway.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=793062
Origin: upstream, 3.22.30, commit:3bd7b379c8d2c7e57ce22501420791c4bfcf24ca

Gbp-Pq: Name 0013-wayland-Drop-cairo-surfaces-when-withdrawing.patch

7 years agowidget: Only print allocation warnings with --enable-debug
Timm Bäder [Sat, 17 Mar 2018 12:14:25 +0000 (13:14 +0100)]
widget: Only print allocation warnings with --enable-debug

i.e. if G_ENABLE_CONSISTENCY_CHECKS is defined. This makes sense,
considering that this warning is about consistency of internal widget
state.

Origin: upstream, 3.22.30, commit:eb01ba8573bec47e02c8fc4eaf10e2f7cff522dd

Gbp-Pq: Name 0012-widget-Only-print-allocation-warnings-with-enable-de.patch

7 years agogtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in...
Christoph Reiter [Mon, 19 Mar 2018 17:21:25 +0000 (18:21 +0100)]
gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in more places

When the widget gets finalized it clears the widgetnode and gtk_css_widget_node_get_widget
returns NULL. Guard against gtk_css_widget_node_get_widget() returning NULL like in other
places.

See https://gitlab.gnome.org/GNOME/pygobject/issues/28#note_82862

Origin: upstream, 3.22.30, commit:d65a4c2e0abeefb1e61e32a2da2c1e1ba9987817

Gbp-Pq: Name 0011-gtkstylecontext-guard-against-gtk_css_widget_node_ge.patch

7 years agoimwayland: Avoid TOGGLE_INPUT_PANEL requests if there's no focus
Carlos Garnacho [Tue, 20 Mar 2018 14:17:31 +0000 (15:17 +0100)]
imwayland: Avoid TOGGLE_INPUT_PANEL requests if there's no focus

Fixes two things: 1) As GTK+ can be coerced into using the wayland IM
module despite the compositor not implementing the interface, all paths
not checking for global state before sending requests are prone to
crashes, this one fell hit this pitfall.

And 2) ensures the tap gesture only triggers TOGGLE_INPUT_PANEL if the
widget IM is focused. This is a possibility on eg. WebKit pages, where
its IM is only focused as long as a form element in the page is focused.
Tapping elsewhere shouldn't toggle the OSK.

Origin: upstream, 3.22.30, commit:4f78abddfc8a815a7e02f5347d5326412190f66f
Bug: https://gitlab.gnome.org/GNOME/gtk/issues/114
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893696

Gbp-Pq: Name 0010-imwayland-Avoid-TOGGLE_INPUT_PANEL-requests-if-there.patch

7 years agogtkimmodule: make match_backend() query the wayland registry
Peter Bloomfield [Mon, 12 Mar 2018 21:46:57 +0000 (17:46 -0400)]
gtkimmodule: make match_backend() query the wayland registry

Wnen _gtk_im_module_get_default_context_id calls
match_backend (context_id) and the default GdkDisplay
is wayland, match_backend() should return TRUE only if
gdk_wayland_display_query_registry (display, "gtk_text_input_manager")
returns TRUE.

Origin: upstream, 3.22.30, commit:6e2d14037cea356638a9bea7b611cbe23bc90b47
Bug: https://gitlab.gnome.org/GNOME/gtk/issues/114
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893696

Gbp-Pq: Name 0009-gtkimmodule-make-match_backend-query-the-wayland-reg.patch

7 years agogdk/x11: Check if we have access to GL before using GLX API
Emmanuele Bassi [Fri, 20 Jan 2017 18:07:01 +0000 (18:07 +0000)]
gdk/x11: Check if we have access to GL before using GLX API

If the platform does not have access to libGL then any call to GL and
GLX API through libepoxy will fail with an assertion. Until such time
that libepoxy exposes API for us to use, we can simply dlopen libGL
ourselves and do a symbol check.

[smcv: fix typo]

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=775279
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=847366
Applied-upstream: no, GTK+ 4 added a dependency on newer libepoxy instead

Gbp-Pq: Name gdk-x11-Check-if-we-have-access-to-GL-before-using-G.patch

7 years agoMark known failing tests as non-fatal
Michael Biebl [Sun, 1 May 2016 23:18:04 +0000 (01:18 +0200)]
Mark known failing tests as non-fatal

Forwarded: no

Gbp-Pq: Name reftest-known-fail.patch

7 years agodisable a11y test accessibility-dump
Andreas Henriksson [Wed, 23 Mar 2016 13:10:27 +0000 (14:10 +0100)]
disable a11y test accessibility-dump

Temporarily disable this test until someone figures out how
to make it run with GTK_CSD=1 properly so it gives output
matching the expected test data in all cases, not just
for installed-tests.

Forwarded: no

Gbp-Pq: Name no-accessibility-dump.patch

7 years agoDon't list images from unknown directories in icon cache
Loic Minier [Sun, 21 Oct 2007 20:05:42 +0000 (22:05 +0200)]
Don't list images from unknown directories in icon cache

After GTK+ 2.12.0, gtk-update-icon-cache fails if there is a PNG file
placed directly in /usr/share/icons/hicolor (not in a correct
subdirectory like 48x48/apps).

TODO: This is believed to have been fixed differently upstream, so maybe
this change is no longer necessary:
"I believe a slightly different fix that I did some time ago fixes this
too." --Matthias Clasen, 2008-02-16 04:43:10 UTC

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=451634
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=444285
Forwarded: yes
Applied-upstream: no

Gbp-Pq: Name 060_ignore-random-icons.patch

7 years agoDisable VIQR IM for vi locale
Ubuntu Core Developers [Wed, 4 Mar 2009 00:58:20 +0000 (21:58 -0300)]
Disable VIQR IM for vi locale

[TODO: why? The Debian changelog just says "imported from Ubuntu"]

Forwarded: no

Gbp-Pq: Name 022_disable-viqr-im-for-vi-locale.patch

7 years agoConsistently treat gdkenumtypes.[hc] as source files
Martin Pitt [Thu, 8 Sep 2011 07:14:02 +0000 (09:14 +0200)]
Consistently treat gdkenumtypes.[hc] as source files

Always generate gdk/gdkenumtypes.c in the source tree, and fix path in the
introspection sources. With this, gdkenumtypes.c is correctly included with
separate build trees, too. This fixes missing GTypes in the .gir when using a
separate build tree.

Also remove the gdk/stamp-gdkenumtypes.h target. It was forcing the
regeneration of gdk/gdkenumtypes.h even if it was already present and current
in the source tree.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=647729
Bug-Ubuntu: https://launchpad.net/bugs/769256
Forwarded: yes

Gbp-Pq: Name 018_gdkenumtypes.c_location.patch

7 years agoDo not allow devices in an offscreen hierarchy to take grabs.
Robert Carr [Tue, 29 Nov 2011 23:25:29 +0000 (00:25 +0100)]
Do not allow devices in an offscreen hierarchy to take grabs.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=658563
Bug-Ubuntu: https://launchpad.net/bugs/804009
Forwarded: yes

Gbp-Pq: Name 017_no_offscreen_device_grabbing.patch

7 years agoDon't let offscreen widget do grabbing
Cody Russell [Tue, 29 Nov 2011 23:25:29 +0000 (00:25 +0100)]
Don't let offscreen widget do grabbing

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=607668
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=658563
Bug-Ubuntu: https://bugs.launchpad.net/bugs/512427
Forwarded: yes

Gbp-Pq: Name 016_no_offscreen_widgets_grabbing.patch

7 years agogtk+3.0 (3.22.29-3) unstable; urgency=medium
Simon McVittie [Tue, 3 Apr 2018 07:41:09 +0000 (08:41 +0100)]
gtk+3.0 (3.22.29-3) unstable; urgency=medium

  * Team upload
  * Allow stderr in autopkgtests. They produce harmless diagnostics.
  * d/p/0013-wayland-Drop-cairo-surfaces-when-withdrawing.patch:
    Add patch from upstream fixing a Wayland client crash if it unmaps
    a window while gdk is processing updates
  * d/p/0014-AM_PATH_GTK_3_0-Use-AC_PATH_TOOL-to-find-pkg-config.patch,
    d/p/0015-m4macros-Fix-underquoting-in-AC_PATH_TOOL.patch:
    Use AC_PATH_TOOL to find pkg-config in the deprecated AM_PATH_GTK_3_0
    macro (Closes: #894069)
  * d/p/0016-imwayland-destroy-objects-only-if-it-matches-our-man.patch:
    Add patch proposed upstream to fix crashes on screen blank in some
    dual-monitor configurations (Closes: #894388)

[dgit import unpatched gtk+3.0 3.22.29-3]

7 years agoImport gtk+3.0_3.22.29-3.debian.tar.xz
Simon McVittie [Tue, 3 Apr 2018 07:41:09 +0000 (08:41 +0100)]
Import gtk+3.0_3.22.29-3.debian.tar.xz

[dgit import tarball gtk+3.0 3.22.29-3 gtk+3.0_3.22.29-3.debian.tar.xz]

7 years agoImport gtk+3.0_3.22.29.orig.tar.xz
Jeremy Bicha [Thu, 15 Mar 2018 11:42:30 +0000 (11:42 +0000)]
Import gtk+3.0_3.22.29.orig.tar.xz

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