summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* build: During distcheck, try to confirm that a Meson build can workwip/smcv/distcheck-mesonSimon McVittie2022-11-242-1/+16
| | | | | | This would have reproduced the distcheck issue fixed in b2ad8d2a. Signed-off-by: Simon McVittie <smcv@debian.org>
* Merge branch 'gtk-issue-4456' into 'gtk-3-24'Emmanuele Bassi2022-11-231-1/+1
|\ | | | | | | | | Flush drawable surface when getting a pixbuf See merge request GNOME/gtk!5244
| * Flush drawable surface when getting a pixbufThomas Zajic2022-11-231-1/+1
|/ | | | | | | When getting the drawable surface to get its pixels we should be flushing the Cairo state, not mark it dirty. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4456
* Dist gdk/wayland/cursor/meson.buildkeypad-accelsMatthias Clasen2022-11-231-1/+2
| | | | | This file was missing from the 3.24.35 tarball. Oops.
* 3.24.353.24.35Matthias Clasen2022-11-223-4/+57
|
* Merge branch 'ebassi/app-default-flags' into 'gtk-3-24'Matthias Clasen2022-11-228-21/+17
|\ | | | | | | | | Do not use new G_APPLICATION_DEFAULT_FLAGS enum value See merge request GNOME/gtk!5245
| * Do not use new G_APPLICATION_DEFAULT_FLAGS enum valueEmmanuele Bassi2022-11-228-21/+17
|/ | | | | | | | | The merge request !5235 switched tests and examples from G_APPLICATION_FLAGS_NONE, which has been deprecated in GLib 2.74, to G_APPLICATION_DEFAULT_FLAGS. Sadly, it was done unconditionally, which means we'd have to bump the required version of GLib. To avoid that, let's just use the numeric value of the enum member.
* Update Serbian translationМирослав Николић2022-11-201-4501/+5097
|
* Update Serbian translationМирослав Николић2022-11-201-9320/+4730
|
* Update German translationChristian Kirbach2022-11-201-48/+58
|
* Merge branch 'replace-deprecations' into 'gtk-3-24'Matthias Clasen2022-11-198-8/+8
|\ | | | | | | | | examples, tests: Replace deprecations See merge request GNOME/gtk!5235
| * examples, tests: Replace deprecationsAkbarkhon Variskhanov2022-11-198-8/+8
| | | | | | | | | | ‘G_APPLICATION_FLAGS_NONE’ is deprecated: Use 'G_APPLICATION_DEFAULT_FLAGS' instead.
* | Update Swedish translationAnders Jonsson2022-11-191-174/+109
|/
* Merge branch 'wip/smcv/3-24-autotools' into 'gtk-3-24'Simon McVittie2022-11-181-0/+1
|\ | | | | | | | | [3.24] build: Define USE_XDG_ACTIVATION conditional when Wayland is disabled See merge request GNOME/gtk!5226
| * build: Define USE_XDG_ACTIVATION conditional when Wayland is disabledSimon McVittie2022-11-181-0/+1
|/ | | | | | | | This fixes Autotools builds that disable Wayland, such as non-Linux operating systems and the minimal "udeb" (micro-.deb) package used in Debian's installer. Signed-off-by: Simon McVittie <smcv@debian.org>
* Merge branch 'libwayland-cursor-in-tree-gtk-3-24' into 'gtk-3-24'Matthias Clasen2022-11-1815-77/+1451
|\ | | | | | | | | Make wayland load cursors on demand See merge request GNOME/gtk!5192
| * Make wayland load cursors on demandLuca Bacci2022-11-0415-61/+1446
| | | | | | | | | | Add and use a modified libwayland-cursor in-tree, just as done in the main branch for GTK4
| * Revert "wayland/cursor: Sanity check cursor image size"Luca Bacci2022-11-041-16/+5
| | | | | | | | This reverts commit da4066774b926880631af099469d308714b5606c.
* | Update Turkish translationEmin Tufan Çetin2022-11-151-21/+21
| |
* | Update Turkish translationEmin Tufan Çetin2022-11-151-38/+47
| |
* | Merge branch 'gtk-3-gles' into 'gtk-3-24'Michael Catanzaro2022-11-102-5/+10
|\ \ | | | | | | | | | | | | gdk_wayland_display_init_gl: use GLES API if required See merge request GNOME/gtk!5062
| * | gdk_wayland_display_init_gl: use GLES API if requiredDominique Martinet2022-09-282-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gdk_wayland_gl_context_realize properly checks for GLES and uses eglBindAPI with the proper API, but before that init is always called with regular GL interface which is not implemented for many embedded devices. This was fixed in GTK 4 with commit 482845b02705 ("wayland: Remove initial GL API bind"), but that commit cannot easily be applied because the current version queries some GL properties during init so we would need to backport more for it to be applicable. This patch takes the minimal approach of initializing GLES context, allowing the gtk3 demo OpenGL test (and real applications) to work when GDK_GL=gles is set. Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3028
* | | Update Norwegian Bokmål translationKjartan Maraas2022-11-041-45/+54
| |/ |/|
* | Update Indonesian translationKukuh Syafaat2022-11-031-43/+52
| |
* | Update Dutch translationNathan Follens2022-11-011-43/+53
| |
* | Update Russian translationAleksandr Melman2022-10-311-47/+56
| |
* | Update Abkhazian translationNart Tlisha2022-10-311-3072/+69
| |
* | Update Polish translationPiotr Drąg2022-10-301-41/+50
| |
* | Update Hungarian translationBalázs Úr2022-10-301-44/+51
| |
* | Update Portuguese translationHugo Carvalho2022-10-291-45/+55
| |
* | Update Ukrainian translationYuri Chornoivan2022-10-291-48/+59
| |
* | Update Slovenian translationMartin2022-10-281-43/+52
| |
* | Merge branch 'keypad-accels' into 'gtk-3-24'Matthias Clasen2022-10-282-2/+15
|\ \ | | | | | | | | | | | | Differentiate keypad keysyms in accelerators See merge request GNOME/gtk!5176
| * | Differentiate keypad keysyms in acceleratorsMatthias Clasen2022-10-272-2/+15
| | | | | | | | | | | | | | | | | | | | | When displaying accelerators, differentiate keypad symbols with a 'KP' prefix. Fixing a 17 year old bug. Backport of c58d9446f40b36136f25baf.
* | | Merge branch 'wip/carlosg/xdg-activation-3-24' into 'gtk-3-24'Matthias Clasen2022-10-2611-13/+195
|\ \ \ | | | | | | | | | | | | | | | | gdk/wayland: Support the xdg-activation wayland protocol (3.24) See merge request GNOME/gtk!3489
| * | | gdk/wayland: Enable xdg-activation only if wayland-protocols >= 1.21Joan Bruguera2022-10-259-9/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This way we can keep the same wayland-protocols requirement, so the latest GTK3 still builds on distributions shipping older versions of wayland-protocols, such as Debian Bullseye. Should fix CI builds as well.
| * | | gdk/wayland: Check the GdkSurface wl_surface before using it for activationCarlos Garnacho2022-10-251-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Double check the GdkSurface has a wl_surface before using it as the activation token source, since we cannot use NULL surfaces here. Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1862 Backport-of: 4b41d4f78ce71b60f0d51837cd1b6a1b346d679d Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
| * | | gdk/wayland: Dispatch GdkAppLaunchContext activation token in its own queueCarlos Garnacho2022-10-251-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a separate queue to dispatch the token object exclusively, just like we do on the GdkSurface activation paths. Backport-of: fb68600d88d4d334f7da7d079b106a1ef14503a6 Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
| * | | wayland: Use xdg-activation for non-startup initiated focus requestsCarlos Garnacho2022-10-251-21/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we have all the plumbing in place so that GTK consumes the startup notification ID when focusing a window through the xdg-activation protocol. This however misses the case that a window might be requested to be focused with no startup ID (i.e. via interaction with the application, not through GApplication or other application launching logic). In this case, we let the application create a token that will be consumed by itself. The serial used is that from the last interaction, so the compositor will still be able to do focus prevention logic if it applies. Since we already do have a last serial at hand, prefer xdg-activation all the way over the now stale gtk-shell focusing support. The timestamp argument becomes unused, but that is a weak argument to prefer the private protocol over the standard one. The gtk-shell protocol support is so far left for interaction with older Mutter. Backport-of: 4dcacff3120d5c1cef888061dbc42f5fbe093a58 Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
| * | | wayland: Keep startup_notification_id around long enoughGuido Günther2022-10-252-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using xdg_activation we need to keep the id around until we send the first activate to signal succesful startup. Backport-of: 999509be619bfa0f50a549489b5ab5c890b574fa Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
| * | | wayland: xdg-activation: Don't assume there's a focus surfaceGuido Günther2022-10-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tools like gtk4-launch can't set surface on the activation token so don't require it. If the compositor requires it we can't do anything about it anyway. This avoids a critical: (gtk4-launch:23497): Gdk-CRITICAL **: 17:07:24.704: gdk_wayland_surface_get_wl_surface: assertion 'GDK_IS_WAYLAND_SURFACE (surface)' failed Fixes: be4216e051 ("gdk/wayland: Support the xdg-activation wayland protocol") Signed-off-by: Guido Günther <agx@sigxcpu.org> Backport-of: 4d741bac98f906796d61eebfb4f74f5b1cecb2b6 Signed-off-by: Joan Bruguera <joanbrugueram@gmail.com>
| * | | gdk/wayland: Support the xdg-activation wayland protocolCarlos Garnacho2022-10-258-6/+87
| | | | | | | | | | | | | | | | | | | | This protocol implements the IPC necessary to focus application windows across launcher/launchee. Add support for it.
* | | | Merge branch 'tooltips-x11-scale-cursor-size' into 'gtk-3-24'Jonas Ådahl2022-10-261-0/+13
|\ \ \ \ | |/ / / |/| | | | | | | | | | | GtkTooltip: Scale the cursor size on X11 See merge request GNOME/gtk!5173
| * | | GtkTooltip: Scale the cursor size on X11Luca Bacci2022-10-261-0/+13
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GtkSettings/X11 takes the values as provided by XSettings. Unlike other backends, the values of XSettings are in physical size (that's because X11 doesn't support mixed-DPI setups anyway). Take that in account when retrieving the cursor size in gtk_tooltip_position (). Note that this discrepancy between the X11 and other backends has been fixed in GTK4. Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5223
* | | Merge branch 'gtk-cursor-wayland-hotspot' into 'gtk-3-24'Matthias Clasen2022-10-211-0/+2
|\ \ \ | | | | | | | | | | | | | | | | [gtk3] [wayland] Fix hotspot positioning with scaled surface. See merge request GNOME/gtk!5159
| * | | [gtk3] [wayland] Fix hotspot positioning with scaled surface.Emilio Cobos Álvarez2022-10-211-0/+2
|/ / / | | | | | | | | | Fixes !5278 to behave the same way as X11.
* | | Update Bulgarian translationAlexander Shopov2022-10-071-1015/+2733
| | |
* | | Merge branch 'wl-ime-lockscreen-fixes' into 'gtk-3-24'Carlos Garnacho2022-10-063-49/+87
|\ \ \ | | | | | | | | | | | | | | | | gtk3: Backport of !4962. !5050, !5012: gtkimcontextwayland: Refactor handling of client updates See merge request GNOME/gtk!5091
| * | | gtkimcontextwayland: Shuffle full resets after IM changesCarlos Garnacho2022-10-063-17/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Doing reset() on the text widgets after commit and delete_surrounding is still too eager for some IMs (e.g. those that expect being able to commit text while keeping a preedit buffer shown). However, reset() is more of a "synchronize state" action on Wayland, and it is still desirable to do that after changes that do come from the IM (e.g. requesting the new surrounding text and cursor/anchor positions). Notably here, the text_input protocol may still come up with a preedit string after this state synchronization happens. Shuffle the code so that the text widgets do not reset() the IM context after text is deleted or committed, but the Wayland IM does apply its practical effects after these actions happen. This keeps the Wayland IM fully up-to-date wrt text widget state, while not altering the ::commit and ::delete-surrounding-text behavior for other IM context implementations.
| * | | gtktextview: Also reset IM context after IM surrounding text deletionCarlos Garnacho2022-10-061-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the IM commands the GtkText to delete text, the cursor position would change, and so would the surrounding text. Reset the IM context so that these updates are properly picked up by the IM. Fixes backspace key behavior in the GNOME Shell OSK, since that relies on the surrounding text being properly updated for the next iteration.