Commit Graph

53176 Commits

Author SHA1 Message Date
Ekaterine Papava
2a49c52c9e Update Georgian translation 2023-10-01 11:32:25 +00:00
Jonas Ådahl
89137211a9 Merge branch 'gtk-3-24' into 'gtk-3-24'
GtkTooltip: prevent tooltips from appearing offscreen in edge cases (fixes #2784)

See merge request GNOME/gtk!2649
2023-09-30 15:04:30 +00:00
Kristjan SCHMIDT
d8e44dcabc Update Esperanto translation 2023-09-29 18:39:46 +00:00
Benjamin Otte
a54f50ef20 Merge branch 'gles-swapped-colors' into 'gtk-3-24'
OpenGL/ES: Fix 'R' and 'B' bits inverted on all platforms

See merge request GNOME/gtk!6440
2023-09-28 17:11:05 +00:00
Balló György
261780ac51 OpenGL/ES: Fix 'R' and 'B' bits inverted on all platforms
The color channels are swapped on Linux too, not only on Windows. It can be
reproduced by running the "OpenGL Area" example from gtk3-demo with
GDK_GL=gles, or play a video in totem with GDK_GL=gles.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3032
2023-09-28 18:49:51 +02:00
Kristjan SCHMIDT
796bbee163 Update Esperanto translation 2023-09-27 20:56:31 +00:00
Kristjan SCHMIDT
9e45d0cef6 Update Esperanto translation 2023-09-25 21:22:21 +00:00
Kristjan SCHMIDT
2b6721517c Update Esperanto translation 2023-09-25 19:27:33 +00:00
Kristjan SCHMIDT
3e8c9ebebb Update Esperanto translation 2023-09-25 16:31:27 +00:00
Daniel Mustieles
17eaebebd0 Update Spanish translation 2023-09-21 09:46:22 +00:00
Daniel Mustieles
4376de2bd2 Update Spanish translation 2023-09-21 09:44:42 +00:00
Ekaterine Papava
2e678a9616 Update Georgian translation 2023-09-20 19:51:06 +00:00
Ekaterine Papava
1be882a76f Update Georgian translation 2023-09-20 19:32:25 +00:00
Boyuan Yang
236a6c79ac Update Chinese (China) translation 2023-09-19 01:32:22 +00:00
Matthias Clasen
87c88720be Merge branch 'useless-dpi-settings-notification' into 'gtk-3-24'
gdk/wayland: Don't notify of settings changes on startup.

See merge request GNOME/gtk!6375
2023-09-13 21:31:13 +00:00
Ask Hjorth Larsen
8a479df04e Updated Danish translation 2023-09-11 21:12:37 +02:00
Changwoo Ryu
ecf3ac115d Update Korean translation 2023-09-05 17:27:16 +00:00
Emilio Cobos Álvarez
0bf7d9ce39
gdk/wayland: Don't notify of settings changes on startup.
I was profiling Firefox startup on Wayland, and I realized that we were
doing too much work because we get extra settings changed events, posted
from here:

    #0  gdk_event_copy (event=0x7ffe9c4a7fd0) at ../gtk/gdk/gdkevents.c:659
    #1  0x00007f8b8a5060c6 in gdk_display_put_event (event=0x7ffe9c4a7fd0, display=0x7f8b8d551a00) at ../gtk/gdk/gdkdisplay.c:503
    #2  gdk_display_put_event (display=0x7f8b8d551a00, event=0x7ffe9c4a7fd0) at ../gtk/gdk/gdkdisplay.c:497
    #3  0x00007f8b8a5456e6 in notify_setting (setting=0x7f8b8a59b6d6 "gtk-xft-dpi", screen=0x7f8b8d517700) at ../gtk/gdk/wayland/gdkscreen-wayland.c:237
    #4  update_xft_settings (screen=0x7f8b8d517700) at ../gtk/gdk/wayland/gdkscreen-wayland.c:513
    #5  0x00007f8b8a53ef6d in init_settings (screen=0x7f8b8d517700) at ../gtk/gdk/wayland/gdkscreen-wayland.c:842
    #6  _gdk_wayland_screen_new (display=0x7f8b8d551a00) at ../gtk/gdk/wayland/gdkscreen-wayland.c:1367
    #7  _gdk_wayland_display_open (display_name=<optimized out>) at ../gtk/gdk/wayland/gdkdisplay-wayland.c:618
    #8  0x00007f8b8a507bc7 in gdk_display_manager_open_display (manager=<optimized out>, name=0x0) at ../gtk/gdk/gdkdisplaymanager.c:462
    #9  0x00007f8b82bda2f8 in XREMain::XRE_mainStartup(bool*) (this=this@entry=0x7ffe9c4a8398, aExitFlag=aExitFlag@entry=0x7ffe9c4a830f) at /home/emilio/src/moz/gecko-6/toolkit/xre/nsAppRunner.cpp:4760
    #10 0x00007f8b82be1742 in XREMain::XRE_main(int, char**, mozilla::BootstrapConfig const&) (this=this@entry=0x7ffe9c4a8398, argc=argc@entry=4, argv=argv@entry=0x7ffe9c4a9698, aConfig=...) at /home/emilio/src/moz/gecko-6/toolkit/xre/nsAppRunner.cpp:5874
    #11 0x00007f8b82be1c2c in XRE_main(int, char**, mozilla::BootstrapConfig const&) (argc=4, argv=0x7ffe9c4a9698, aConfig=...) at /home/emilio/src/moz/gecko-6/toolkit/xre/nsAppRunner.cpp:5942
    #12 0x000055631ef3b3e9 in do_main(int, char**, char**) (argc=4, argv=0x7ffe9c4a9698, envp=<optimized out>) at /home/emilio/src/moz/gecko-6/browser/app/nsBrowserApp.cpp:227
    #13 main(int, char**, char**) (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at /home/emilio/src/moz/gecko-6/browser/app/nsBrowserApp.cpp:445

We shouldn't post events for a screen we're just creating, because it
can make apps do too much work during startup. X11 had code for this.
2023-09-04 17:40:13 +02:00
Ekaterine Papava
f5d5f167ea Update Georgian translation 2023-09-04 13:37:56 +00:00
Amn Alam
292893f9d7 Update Punjabi translation 2023-09-02 03:09:28 +00:00
John Ralls
4560664fff [gdk-quartz] Set POPUP_MENU type hint for GDK_WINDOW_TEMP.
GDK_WINDOW_TEMP is set only for GTK_WINDOW_POPUP. If the type_hint
is left at the default GDK_WINDOW_TYPE_HINT_NORMAL the Quartz WM
will fullscreen it, which isn't desirable for popup menus or other
popups.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/5716
2023-08-28 20:23:13 -07:00
Emmanuele Bassi
022c36a137 Fix _gtk_get_slowdown()
We need to pass void as the argument type.
2023-08-28 16:46:43 -04:00
Danial Behzadi
f14e945342 Update fa.po 2023-08-25 22:48:56 +00:00
Ekaterine Papava
ca4a076e57 Update Georgian translation 2023-08-24 23:47:03 +00:00
John Ralls
46b24bb1c3 Merge Jiří Techet's 'include_fix' into gtk-3-24. 2023-08-20 09:56:25 -07:00
Jiří Techet
3e6b832283 quartz: fix compilation problem introduced by !5648
Including plain "gdkquartz.h" ends with compilation error:

```
../gtk/gtkfilechoosernativequartz.c:43:10: fatal error: 'gdkquartz.h' file not found
#include "gdkquartz.h"
         ^~~~~~~~~~~~~
1 error generated.

```
2023-08-20 10:59:28 +02:00
Baurzhan Muftakhidinov
6b29a201da Update Kazakh translation 2023-08-19 06:54:41 +00:00
Ekaterine Papava
b05ade591b Update Georgian translation 2023-08-12 10:50:40 +00:00
Sabri Ünal
d1ead5b443 Update Turkish translation 2023-08-08 10:44:05 +00:00
Sabri Ünal
2d7ff5b79c Update Turkish translation 2023-08-08 10:43:55 +00:00
Florentina Musat
8233d9254d Update Romanian translation 2023-08-05 15:49:32 +00:00
Martin
863b399899 Update Slovenian translation 2023-07-28 15:57:04 +00:00
Matthias Clasen
6fd564d126 Merge branch 'michaelweghorn/gtk-3-24_a11y_fix_cell_position' into 'gtk-3-24'
a11y atspi: Fix reporting table cell pos at index (0,0)

See merge request GNOME/gtk!6173
2023-07-28 07:16:05 +00:00
Matthias Clasen
0f717ca423 Merge branch 'fix-issue-5775' into 'gtk-3-24'
GtkApplicationImplDBus: Cancel DBus method calls on shutdown

See merge request GNOME/gtk!6180
2023-07-22 23:47:36 +00:00
Matthias Clasen
34fc4d0a17 Merge branch 'set-transient-for-offscreen-windows' into 'gtk-3-24'
GdkWindow: Check for offscreen windows in set_transient_for ()

See merge request GNOME/gtk!6184
2023-07-22 23:43:37 +00:00
Efstathios Iosifidis
d23e5e8b11 Update Greek translation 2023-07-21 22:37:54 +00:00
Luca Bacci
7ca33ff994 GtkApplicationImplDBus: Cancel DBus method calls on shutdown
We do that for method calls where a non-NULL GAsyncReadyCallback
is passed.

Fixes #5775
2023-07-21 14:04:25 +02:00
Daniel Mustieles
c0a09448da Update Spanish translation 2023-07-19 12:38:16 +00:00
Danial Behzadi
e5732e7569 Update fa.po 2023-07-17 16:27:49 +00:00
Luca Bacci
272b6b4feb GtkMenu: Take offscreen windows in account for positioning 2023-07-13 16:31:58 +02:00
Luca Bacci
3e3266dce4 GdkWindow: Check for offscreen windows in set_transient_for ()
Fixes https://gitlab.gnome.org/GNOME/gimp/-/issues/6711
2023-07-13 16:24:42 +02:00
Michael Weghorn
8951777518 a11y atspi: Fix reporting table cell pos at index (0,0)
Table (cell) row and column indices both start at 0, so
an index of 0 is valid.

Adapt the check accordingly and check for non-negative
indices instead of positive ones.

(`gtk_cell_accessible_parent_get_cell_position` sets -1
in the fallback case, so that's still handled as it used
to be.)

This fixes reporting the position of the table cell at
index (0,0) via AT-SPI.

Fixes: #5161
2023-07-07 15:55:36 +02:00
Carlos Garnacho
fc32ff89c5 Merge branch 'wip/carlosg/switch-stylus-buttons-3-24' into 'gtk-3-24'
[3.24] gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click

See merge request GNOME/gtk!6169
2023-07-06 11:11:32 +00:00
Carlos Garnacho
e205bdaa89 gdk/wayland: Switch behavior of BTN_STYLUS/STYLUS2 as middle/right click
This mapping of stylus evdev input event codes into GDK button numbers
makes gdk/wayland inconsistent with gdk/x11, so depending on the backend
the same button middle-click pastes or right-click pops up menus.

Make the wayland backend consistent with X11, so that a GNOME wayland
session gets these buttons consistently mapped across all kinds of
clients.

(cherry-picked from commit e28ff79bec53ecd56885390ba4a66019cde598c6)
2023-07-06 12:39:09 +02:00
John Ralls
e1f3ce5cce Merge Antoine Martin's MR 5648 into gtk-3-24. 2023-07-03 15:23:01 -07:00
totaam
1e1e1a1b8b make gdkquartz-cocoa-access.h usable again
There is no need to include gdkquartz.h there,
which was making it impossible to include this header file
without also adding gdk/ as an include directory when compiling.
This patch moves the include to the only location where it is actually needed.
2023-07-03 15:19:39 -07:00
Benjamin Otte
43a99b1c8e Merge branch 'wip/otte/for-gtk-3-24' into 'gtk-3-24'
Check for GLsync before using it

See merge request GNOME/gtk!6162
2023-07-01 21:32:04 +00:00
Benjamin Otte
cf7decae1a gdkgl: Check for GLsync before using it
Copy what we do in GTK4: Check for GL >= 3.2 or GLES >= 3.0 or the
GL_ARB_sync extension.
Then store that info for a (private) gdk_gl_context_has_sync()
function.
And then check that function before using GLsync objects as introduced
by commit 9811485990.

Fixes #5749
2023-07-01 22:58:28 +02:00
Bruce Cowan
f94f94af51 Update British English translation 2023-06-30 18:40:07 +00:00
Chun-wei Fan
ce20f3c6e4 Merge branch 'fix-issue-5877' into 'gtk-3-24'
GdkWin32: Use scaled coordinates for move_resize_drag()

See merge request GNOME/gtk!6132
2023-06-30 04:06:58 +00:00