Danial Behzadi [Mon, 6 Sep 2021 13:18:07 +0000 (13:18 +0000)]
Update Persian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:43:29 +0000 (18:43 +0000)]
Update Romanian translation
Daniel Șerbănescu [Sun, 5 Sep 2021 18:34:20 +0000 (18:34 +0000)]
Update Romanian translation
Anders Jonsson [Sun, 5 Sep 2021 14:11:36 +0000 (14:11 +0000)]
Update Swedish translation
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:54:26 +0000 (20:54 +0000)]
Update Basque translation
Asier Sarasua Garmendia [Sat, 4 Sep 2021 20:50:17 +0000 (20:50 +0000)]
Update Basque translation
Changwoo Ryu [Sat, 4 Sep 2021 14:55:06 +0000 (14:55 +0000)]
Update Korean translation
Changwoo Ryu [Sat, 4 Sep 2021 08:59:22 +0000 (08:59 +0000)]
Update Korean translation
Anders Jonsson [Fri, 3 Sep 2021 22:59:22 +0000 (22:59 +0000)]
Update Swedish translation
Matthias Clasen [Fri, 3 Sep 2021 00:55:54 +0000 (00:55 +0000)]
Merge branch 'backports-for-4-4' into 'gtk-4-4'
windowhandle: Quiet a compiler warning
See merge request GNOME/gtk!3915
Matthias Clasen [Thu, 2 Sep 2021 23:02:54 +0000 (19:02 -0400)]
Fix build against pango main
Handle (and ignore) new Pango attributes.
Xavier Claessens [Wed, 1 Sep 2021 12:08:43 +0000 (08:08 -0400)]
media: Check for gstreamer verion instead of using cc.links()
This fix error when gstgl_dep comes from a subproject because in that
case it cannot be used in compiler checks.
Matthias Clasen [Tue, 31 Aug 2021 12:41:45 +0000 (08:41 -0400)]
editable: Clarify the docs
Make it clear that your class must have all the editable properties
already before you call the (confusingly named) function
gtk_editable_install_properties.
Matthias Clasen [Mon, 30 Aug 2021 15:01:55 +0000 (11:01 -0400)]
gdk: Make GDK_DEBUG=default-settings unconditional
Our tests use this settings, so we should respect it
in non-debug builds as well.
Simon McVittie [Mon, 30 Aug 2021 09:54:43 +0000 (10:54 +0100)]
compose: Update sequences from libX11 1.7.2
This adds support for sequences like <Compose>,G,u -> capital G with
breve. Previously, only a capital U was accepted for E, G, I and O
(but a lower-case u was accepted for A and U for some reason).
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:48:49 +0000 (10:48 +0100)]
compose: Document how to get compose-parse input from libX11 source
Signed-off-by: Simon McVittie <smcv@debian.org>
Simon McVittie [Mon, 30 Aug 2021 09:13:33 +0000 (10:13 +0100)]
compose: Generate endian-dependent compact Compose data
The GtkComposeTable cache is always in big-endian format and is
byteswapped on load for the more common little-endian CPUs, but
init_builtin_table() in GtkIMContextSimple can't byteswap the built-in
data without copying it, which is undesirable. Pregenerate both big-
and little-endian compose data, and compile the correct flavour into
each build of GTK. This fixes failure of the composetable test when
building for a big-endian architecture such as s390x and (traditional,
big-endian) powerpc.
Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217
Signed-off-by: Simon McVittie <smcv@debian.org>
Benjamin Otte [Mon, 23 Aug 2021 05:06:25 +0000 (07:06 +0200)]
stylecontext: Remove unneeded headers
Benjamin Otte [Mon, 23 Aug 2021 03:55:56 +0000 (05:55 +0200)]
fontbutton: Destroy dialog in unrealize()
This way, we can be sure it's always using the right display.
We can also be sure that it doesn't leak.
Benjamin Otte [Mon, 23 Aug 2021 03:55:32 +0000 (05:55 +0200)]
fontbutton: Make sure the window is on the same display
We don't want the font buttons created by the inspector to run on the
default display.
Benjamin Otte [Sun, 29 Aug 2021 00:47:34 +0000 (02:47 +0200)]
build: Check that introspection is enabled for docs build
Benjamin Otte [Sun, 29 Aug 2021 02:27:58 +0000 (04:27 +0200)]
docs: Fix vfunc references
vfunc references should just use the object name, not the
class/interface/iface name.
Matthias Clasen [Sat, 28 Aug 2021 19:42:30 +0000 (15:42 -0400)]
ngl: Avoid a coordinate overflow
This was showing up as big text selections going
missing sporadically.
Fixes: #4214
Ian Douglas Scott [Sat, 28 Aug 2021 00:57:01 +0000 (17:57 -0700)]
x11: Fix handling of `RRScreenChangeNotify`/`RRNotify` events
It seems these are sent with `xwindow` set to the root window, so this
was failing to find a surface and get the screen from that.
I'm not sure if there's a reason not to get the screen this way
elsewhere in the function, but it seems this should be correct.
This fixes the behavior of `gdk_x11_display_get_monitors()`, which
wasn't correctly changing when monitors were added or removed. For
instance, this python code was always showing the same number of
monitors when one was turned off and on, but updates correctly with this
change applied:
```python
import gi
gi.require_version("GLib", "2.0")
gi.require_version("Gdk", "4.0")
gi.require_version("Gtk", "4.0")
from gi.repository import GLib, Gdk, Gtk
def f():
print(len(Gdk.Display.get_default().get_monitors()))
return True
GLib.timeout_add_seconds(1, f)
GLib.MainLoop().run()
```
Florian Müllner [Fri, 27 Aug 2021 22:10:00 +0000 (00:10 +0200)]
window: Prefer menu bars when handling F10
Focusing the first widget in the titlebar is a good fallback,
but a "real" menubar or :primary menu button should take
precedence.
Matthias Clasen [Fri, 27 Aug 2021 00:21:23 +0000 (20:21 -0400)]
textview: Apply font features from css
We were forgetting to propagate these values from
CSS to the default attributes. Share the code for
getting these values out of a GtkCssStyle.
Matthias Clasen [Thu, 26 Aug 2021 22:45:38 +0000 (18:45 -0400)]
textview: Apply line decoration from css
We were forgetting to propagate these values from
CSS to the default attributes.
Matthias Clasen [Thu, 26 Aug 2021 19:01:23 +0000 (15:01 -0400)]
textview: Don't forget to collect css letterspacing
There are more properties missing, this is just the start.
Fixes: #4207
Matthias Clasen [Sun, 22 Aug 2021 18:17:36 +0000 (14:17 -0400)]
windowhandle: Quiet a compiler warning
gesture was left uninitialized in the default case.
Jiri Grönroos [Thu, 2 Sep 2021 16:06:39 +0000 (16:06 +0000)]
Update Finnish translation
Aurimas Černius [Thu, 2 Sep 2021 10:49:47 +0000 (13:49 +0300)]
Updated Lithuanian translation
Danial Behzadi [Wed, 1 Sep 2021 09:43:59 +0000 (09:43 +0000)]
Update Persian translation
Daniel Mustieles [Wed, 1 Sep 2021 09:02:05 +0000 (11:02 +0200)]
Updated Spanish translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 17:11:04 +0000 (17:11 +0000)]
Update Kazakh translation
Baurzhan Muftakhidinov [Sun, 29 Aug 2021 14:42:01 +0000 (14:42 +0000)]
Update Kazakh translation
Enrico Nicoletto [Sat, 28 Aug 2021 01:00:26 +0000 (01:00 +0000)]
Update Brazilian Portuguese translation
Enrico Nicoletto [Sat, 28 Aug 2021 00:44:25 +0000 (00:44 +0000)]
Update Brazilian Portuguese translation
Andika Triwidada [Thu, 26 Aug 2021 14:45:38 +0000 (14:45 +0000)]
Update Indonesian translation
Andika Triwidada [Thu, 26 Aug 2021 14:40:03 +0000 (14:40 +0000)]
Update Indonesian translation
Hugo Carvalho [Thu, 26 Aug 2021 14:29:50 +0000 (14:29 +0000)]
Update Portuguese translation
Hugo Carvalho [Thu, 26 Aug 2021 14:12:47 +0000 (14:12 +0000)]
Update Portuguese translation
Andika Triwidada [Thu, 26 Aug 2021 13:38:46 +0000 (13:38 +0000)]
Update Indonesian translation
Marek Černocký [Thu, 26 Aug 2021 12:48:55 +0000 (14:48 +0200)]
Updated Czech translation
Marek Černocký [Thu, 26 Aug 2021 12:35:37 +0000 (14:35 +0200)]
Updated Czech translation
Jordi Mas [Thu, 26 Aug 2021 11:10:32 +0000 (13:10 +0200)]
Update Catalan translation
Jordi Mas [Wed, 25 Aug 2021 13:17:27 +0000 (15:17 +0200)]
Update Catalan translation
Emmanuele Bassi [Wed, 25 Aug 2021 16:22:28 +0000 (16:22 +0000)]
Merge branch '4195-backport-gtk-4-4' into 'gtk-4-4'
gdkmacoseventsource: Include "gdk-private.h" (Backport to gtk-4-4)
See merge request GNOME/gtk!3884
Daniel Mustieles [Wed, 25 Aug 2021 15:36:56 +0000 (17:36 +0200)]
Updated Spanish translation
Daniel Mustieles [Wed, 25 Aug 2021 15:36:49 +0000 (17:36 +0200)]
Updated Spanish translation
Peter Bloomfield [Tue, 24 Aug 2021 20:55:52 +0000 (16:55 -0400)]
gdkmacoseventsource: Include "gdk-private.h"
_gdk_macos_event_source_new() calls g_source_set_static_name(), which
for GLib versions before 2.69.1 is a macro defined in gdk-private.h.
Fixes #4195
Fran Dieguez [Wed, 25 Aug 2021 07:26:42 +0000 (07:26 +0000)]
Update Galician translation
Fran Dieguez [Wed, 25 Aug 2021 06:12:31 +0000 (06:12 +0000)]
Update Galician translation
Yuri Chornoivan [Tue, 24 Aug 2021 17:28:48 +0000 (17:28 +0000)]
Update Ukrainian translation
Matthias Clasen [Sun, 22 Aug 2021 15:22:14 +0000 (15:22 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Handle new pango attribute type
See merge request GNOME/gtk!3866
Matthias Clasen [Sat, 21 Aug 2021 00:12:04 +0000 (20:12 -0400)]
Handle new pango attribute type
Update all the places where we switch over
PangoAttrType to handle PANGO_ATTR_TEXT_TRANSFORM,
and do nothing for now - text-transform support
will land in 4.6.
Matthias Clasen [Fri, 20 Aug 2021 17:38:10 +0000 (13:38 -0400)]
4.4.0
Matthias Clasen [Fri, 20 Aug 2021 18:41:05 +0000 (14:41 -0400)]
Fix imcontext tests
We should force our internal im context for these
tests, so we don't depend on the environment.
Matthias Clasen [Fri, 20 Aug 2021 14:21:39 +0000 (14:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
NEWS: Updates
See merge request GNOME/gtk!3861
Matthias Clasen [Fri, 20 Aug 2021 13:24:04 +0000 (09:24 -0400)]
NEWS: Updates
Matthias Clasen [Fri, 20 Aug 2021 13:50:51 +0000 (13:50 +0000)]
Merge branch 'cut-shortcut-activation-short' into 'master'
shortcutcontroller: Only do round-robin for mnemonics
Closes #4130
See merge request GNOME/gtk!3824
Matthias Clasen [Tue, 3 Aug 2021 20:23:16 +0000 (16:23 -0400)]
shortcutcontroller: Only do round-robin for mnemonics
Don't do round-robin activation unless we are looking
for mnemonics, where this is an expected feature.
Fixes: #4130
Matthias Clasen [Fri, 20 Aug 2021 13:22:01 +0000 (13:22 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gdk: Add a missing annotation
Closes #4097
See merge request GNOME/gtk!3860
Emmanuele Bassi [Fri, 20 Aug 2021 13:18:37 +0000 (13:18 +0000)]
Merge branch 'master' into 'master'
a11y: Send correct object reference for the root accessible
See merge request GNOME/gtk!3800
Matthias Clasen [Fri, 20 Aug 2021 12:57:27 +0000 (08:57 -0400)]
gdk: Add a missing annotation
Mark an array as zero-terminated.
Fixes: #4097
Matthias Clasen [Fri, 20 Aug 2021 11:31:16 +0000 (11:31 +0000)]
Merge branch 'add-support-for-windows-pointer-input-stack-gtk4' into 'master'
Add support for Windows Pointer Input Stack
Closes #262, #3162, #729, and #537
See merge request GNOME/gtk!3684
Matthias Clasen [Fri, 20 Aug 2021 06:18:07 +0000 (06:18 +0000)]
Merge branch 'block-cursor-fixes' into 'master'
textview: Don't eat block cursors
See merge request GNOME/gtk!3857
Matthias Clasen [Fri, 20 Aug 2021 05:55:50 +0000 (01:55 -0400)]
textview: Don't eat block cursors
We need to render even an empty paragraph when
it has a block cursor at the end. This fixes block
cursors not showing up in empty lines.
Matthias Clasen [Thu, 19 Aug 2021 21:19:40 +0000 (21:19 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
window: Make resizeability changes work
See merge request GNOME/gtk!3856
Matthias Clasen [Thu, 19 Aug 2021 20:03:58 +0000 (16:03 -0400)]
window: Make resizeability changes work
We were forgetting to update the toplevel
properties here.
Luca Bacci [Thu, 19 Aug 2021 14:29:45 +0000 (16:29 +0200)]
Move the _gdk_win32_pointer_input_api global variable into GdkWin32Display
Matthias Clasen [Fri, 16 Jul 2021 12:27:54 +0000 (08:27 -0400)]
windows: Update the docs for env vars
We've replaced some env vars with a new one.
Update the docs to match.
Luca Bacci [Mon, 16 Aug 2021 12:57:49 +0000 (14:57 +0200)]
Fix typo
Luca Bacci [Mon, 16 Aug 2021 12:56:49 +0000 (14:56 +0200)]
Disable visual feedback for pen ad touch
Luca Bacci [Mon, 16 Aug 2021 12:53:35 +0000 (14:53 +0200)]
Filter out spurious mouse messages while handling pen or touch input
Luca Bacci [Mon, 16 Aug 2021 12:39:25 +0000 (14:39 +0200)]
Add _gdk_win32_get_cursor_pos utility
Luca Bacci [Fri, 9 Jul 2021 13:17:17 +0000 (15:17 +0200)]
Handle WinPointer input
Luca Bacci [Fri, 2 Jul 2021 09:13:06 +0000 (11:13 +0200)]
Initialize WinPointer and enumerate devices
Luca Bacci [Fri, 2 Jul 2021 08:53:16 +0000 (10:53 +0200)]
Add new GdkDeviceWinpointer type
Luca Bacci [Wed, 18 Aug 2021 10:34:24 +0000 (12:34 +0200)]
Add winpointer.h header file for type declarations
Luca Bacci [Fri, 18 Jun 2021 11:47:40 +0000 (13:47 +0200)]
Add entry for WinPointer in GdkWin32TabletInputAPI enum
Luca Bacci [Fri, 18 Jun 2021 09:59:38 +0000 (11:59 +0200)]
Make room for other API's than Wintab
Luca Bacci [Fri, 18 Jun 2021 09:43:53 +0000 (11:43 +0200)]
Remove _gdk_input_ignore_wintab variable
Also remove unused variable _gdk_max_colors
Luca Bacci [Fri, 18 Jun 2021 09:36:08 +0000 (11:36 +0200)]
Rename some Wintab-related functions
Luca Bacci [Mon, 5 Jul 2021 14:13:59 +0000 (16:13 +0200)]
Set active physical device when using the mouse
Luca Bacci [Fri, 2 Jul 2021 08:17:13 +0000 (10:17 +0200)]
Move use of _gdk_win32_get_next_tick from synthesize_crossing_events to its callers
Luca Bacci [Fri, 2 Jul 2021 08:15:52 +0000 (10:15 +0200)]
Add a physical_device argument to send_crossing_event et al
Luca Bacci [Tue, 29 Jun 2021 12:27:13 +0000 (14:27 +0200)]
Raise _WIN32_WINNT macro to target Windows 7 API
Matthias Clasen [Thu, 19 Aug 2021 05:47:43 +0000 (01:47 -0400)]
Updates
Matthias Clasen [Thu, 19 Aug 2021 04:51:11 +0000 (04:51 +0000)]
Merge branch 'better-word-selection' into 'master'
textview: Improve word selection
Closes #4177
See merge request GNOME/gtk!3855
Matthias Clasen [Thu, 19 Aug 2021 04:33:03 +0000 (00:33 -0400)]
textview: Improve word selection
Avoid selecting a whole extra paragraph when a select-by-words
selection is extended beyond the end of the previous paragraph.
Fixes: #4177
Matthias Clasen [Thu, 19 Aug 2021 02:49:23 +0000 (02:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Cosmetics
See merge request GNOME/gtk!3854
Matthias Clasen [Thu, 19 Aug 2021 02:33:23 +0000 (22:33 -0400)]
Cosmetics
Benjamin Otte [Thu, 19 Aug 2021 01:42:26 +0000 (01:42 +0000)]
Merge branch 'wip/otte/for-master' into 'master'
demo: Add a dnd special-case for textures
See merge request GNOME/gtk!3853
Benjamin Otte [Thu, 19 Aug 2021 01:14:59 +0000 (03:14 +0200)]
gtk-demo: Make clipboard demo paste from clipboard
The old code was just pasting local clipboard data that we put there
ourselves and was causing criticals on remote clipboard data. Now the
code does the proper async paste.
Benjamin Otte [Thu, 19 Aug 2021 01:14:24 +0000 (03:14 +0200)]
contentprovider: Switch wrong order in type check
We can provide textures as a paintable - we can't provide paintables as
textures.
Benjamin Otte [Thu, 19 Aug 2021 00:15:59 +0000 (02:15 +0200)]
demo: Add a dnd special-case for textures
If the DND/clipboard machinery knows a texture is a texture, it will try
to serialize it. Paintables can't be serialized, so it wouldn't try.
Matthias Clasen [Wed, 18 Aug 2021 22:05:07 +0000 (22:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
infobar: Update buildable docs
Closes #4164
See merge request GNOME/gtk!3852
Matthias Clasen [Wed, 18 Aug 2021 21:42:54 +0000 (17:42 -0400)]
infobar: Update buildable docs
Document the current state of GtkBuilder support in
GtkInfoBar, not what we had in GTK3.
Fixes: #4164
Matthias Clasen [Wed, 18 Aug 2021 21:10:30 +0000 (21:10 +0000)]
Merge branch 'seat-v7' into 'master'
gdk/wayland: add support for wl_seat version 7
See merge request GNOME/gtk!3842
Matthias Clasen [Wed, 18 Aug 2021 18:24:37 +0000 (18:24 +0000)]
Merge branch 'fix/wm_class2' into 'master'
x11: ensure WM class is not null even if display is initialized early
See merge request GNOME/gtk!3808