Matthias Clasen
93d795e7c0
printing: Remove cairo header checks
...
cc.has_header doesn't work with subprojects, and all this
check does is to make the build fail, so we can just...
let the build fail instead.
2021-01-03 21:34:04 -05:00
Matthias Clasen
d55f938f7c
printing: cairo-pdf is needed
...
The print backends need cairos pdf support, which is
contingent on zlib, so enable that when using cairo
as a subproject, as we do in ci for MacOS.
2021-01-03 21:34:04 -05:00
Matthias Clasen
45bb4dc80c
ci: Add a macos build
...
Most of this is cribbed from glib.
We don't use COMMON_MESON_FLAGS here, since disabling
-Werror one subproject at a time is too painful for
all the promoted sub-sub-projects. This needs a better
solution in meson.
Since this is a full rebuild of the entire stack, limit
this to master and merge requests.
2021-01-03 21:34:04 -05:00
Philipp Kiemle
51a6b29e01
Update German translation
2021-01-03 13:41:25 +00:00
Philipp Kiemle
e3835476ba
Update German translation
2021-01-03 13:40:13 +00:00
Matthias Clasen
38166a67c7
NEWS: Updates
2021-01-02 20:17:19 -05:00
Matthias Clasen
01b94db73d
Merge branch 'matthiasc/for-master' into 'master'
...
video: Tweak the docs
See merge request GNOME/gtk!3026
2021-01-02 19:04:26 +00:00
Matthias Clasen
c804645382
video: Tweak the docs
...
Point out the limitations and use cases of GtkVideo
and mention that GtkPicture can display video just fine.
2021-01-02 12:21:03 -05:00
Matthias Clasen
384081ce0a
Merge branch 'matthiasc/for-master' into 'master'
...
video: Pause on unset too
See merge request GNOME/gtk!3025
2021-01-02 15:49:46 +00:00
Florentina Mușat
afccb86f7e
Update Romanian translation
2021-01-02 11:21:43 +00:00
Matthias Clasen
0ba5631100
video: Pause on unset too
...
When new media stream is set on the GtkVideo
widget and we're autoplaying, pause the old one.
Otherwise, the music keeps playing unexpectedly.
2021-01-02 01:33:48 -05:00
Matthias Clasen
c72589f0ee
Merge branch 'wip/chergert/fix-macos-compute-size' into 'master'
...
macos: fix compute_size and request_layout
Closes #3532
See merge request GNOME/gtk!3023
2021-01-01 23:33:01 +00:00
Matthias Clasen
f2e5775380
Merge branch 'matthiasc/for-master' into 'master'
...
Matthiasc/for master
Closes #3506 and #3530
See merge request GNOME/gtk!3024
2021-01-01 22:48:11 +00:00
Benjamin Otte
a7164208d3
Merge branch 'video-stop' into 'master'
...
video: Stop playing when appropriate
See merge request GNOME/gtk!3022
2021-01-01 21:54:22 +00:00
Matthias Clasen
20f3d1608d
video: Be consistent about play/pause
...
Always check that the stream is prepared, and the
widget is mapped, before calling gtk_media_stream_play().
2021-01-01 16:25:54 -05:00
Christian Hergert
9320148d71
macos: implement compute_size and request_layout
...
These functions were not implemented when the sizing changes
landed before GTK 4 was released. This fixes an issue with non-
resizeable windows not reacting to layout changes.
Fixes #3532
2021-01-01 13:17:47 -08:00
Christian Hergert
ad617a0e06
macos: avoid setHasShadow unless shadow changes
2021-01-01 13:17:47 -08:00
Christian Hergert
62af8365f6
macos: fix toplevel present function prototype
...
No need to return anything here.
2021-01-01 13:17:47 -08:00
Matthias Clasen
29afe5a688
video: Stop playing when appropriate
...
When the widget gets unrealized or hidden, pause
the mediastream. Otherwise, audio might keep playing
unexpectedly.
2021-01-01 15:17:59 -05:00
Matthias Clasen
2d3885a44a
center layout: Fix handling of expanding center child
...
We were not taking spacing into account when adjusting
the size of an expanding center child, causing it to slip
under the end child at times.
Fixes : #3506
2021-01-01 11:02:57 -05:00
Matthias Clasen
75a297632e
Merge branch 'wip/chergert/fix-macos-window-check' into 'master'
...
macos: ensure GdkMacosWindow in surface discovery
Closes #3533
See merge request GNOME/gtk!3021
2021-01-01 15:39:08 +00:00
Matthias Clasen
572649740e
docs: Flesh out the gtk4-builder-tool man page
...
Add some details about the --3to4 conversion, and
set expectations.
2021-01-01 10:14:01 -05:00
Yuri Chornoivan
b5938faa06
Update Ukrainian translation
2021-01-01 14:50:35 +00:00
Matthias Clasen
a4baac7193
docs: Complete a sentence
...
Fixes : #3530
2021-01-01 09:40:40 -05:00
Matthias Clasen
bdde41e290
Merge branch 'encode-symbolic-debug' into 'master'
...
gtk4-encode-symbolic: Add debug output
See merge request GNOME/gtk!3017
2021-01-01 14:23:08 +00:00
Christian Hergert
d888402bf9
macos: ensure GdkMacosWindow in surface discovery
...
We want to ignore windows that are not related to those controlled
by the GDK backend.
Fixes #3533
2020-12-31 10:55:50 -08:00
Christian Hergert
378bd9fab2
Merge branch 'macos-mojave' into 'master'
...
macos: do not crash in mojave
See merge request GNOME/gtk!3020
2020-12-31 18:13:46 +00:00
Ignacio Casal Quinteiro
4ad5e77907
macos: do not crash in mojave
...
The localizedName property is not available in Mojave
so just ifdef in that case the code out.
2020-12-31 11:35:04 +01:00
Matthias Clasen
d5963ad109
Merge branch 'revert-224c2674' into 'master'
...
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
See merge request GNOME/gtk!3018
2020-12-30 03:34:51 +00:00
Matthias Clasen
b5fe434fea
Revert "Merge branch 'gtk_egl_wayland' into 'master'"
...
This reverts merge request !3011
2020-12-30 03:32:18 +00:00
Matthias Clasen
224c2674ab
Merge branch 'gtk_egl_wayland' into 'master'
...
Expose gdk_wayland_surface_get_wl_egl_window()
See merge request GNOME/gtk!3011
2020-12-30 03:32:05 +00:00
Matthias Clasen
878b34fae3
gtk4-encode-symbolic: Add debug output
...
Add a --debug option that makes this tool produce
some debug output that can be helpful in tracking
down why symbolic svgs are broken.
2020-12-29 21:30:52 -05:00
Matthias Clasen
5fe433418d
Merge branch 'mcatanzaro/#3509' into 'master'
...
message dialog: use title style only if there is secondary text
Closes #3509
See merge request GNOME/gtk!3015
2020-12-29 17:47:01 +00:00
Matthias Clasen
02ba9bc1da
Merge branch 'fix-menu-alignment' into 'master'
...
Fix menu item alignment with submenus
See merge request GNOME/gtk!3016
2020-12-29 17:41:49 +00:00
Michael Catanzaro
2336120010
message dialog: use title style only if there is secondary text
...
If there is no secondary text, then the primary text is just a message,
not a title, and should not use title style.
This partially reverts 1e3ec7c1f9
. The
message dialog nown looks like it used to in GTK 3. However, it's still
styled only using a style class rather than using pango markup, as in
GTK 3.
Fixes #3509
2020-12-29 11:15:14 -06:00
Matthias Clasen
0d54d73a51
Fix menu item alignment with submenus
...
We were not aligning model button labels with nesting
submenus with indicators in their containing menu.
This was visible in the application demo of gtk4-demo.
2020-12-29 12:10:35 -05:00
Timm Bäder
6c09832b9b
Merge branch 'xndcn/fix-shader' into 'master'
...
gl: Fix implicit leaking of shader object
See merge request GNOME/gtk!3013
2020-12-29 16:58:55 +00:00
Matthias Clasen
1758f88492
Merge branch 'ebassi/issue-3522' into 'master'
...
Fix the Vulkan header check for VK_RESULT_RANGE_SIZE
Closes #3522
See merge request GNOME/gtk!3009
2020-12-29 16:36:09 +00:00
xndcn
34ffdc6e3f
gl: Fix implicit leaking of shader object
...
According to OpenGL spec, a shader object will only be flagged
for deletion unless it has been detached; when a program object
is deleted, those shader objects attached to it will be detached
but not deleted unless they have already been flagged for deletion.
So we shall detach a shader object before it is deleted, and delete
it before the program object is deleted best.
2020-12-29 23:50:45 +08:00
Timm Bäder
108933b655
Merge branch 'wip/chergert/volatile-fixes' into 'master'
...
types: fix various use of volatile in type registration
See merge request GNOME/gtk!2865
2020-12-29 07:49:12 +00:00
Vivek Kasireddy
3344bcaf92
gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()
...
Some GTK based applications such as Qemu UI create and manage
EGLSurfaces associated with the relevant GdkSurfaces. In order to create
an EGLSurface, there needs to be a way to pass the native window
object to eglCreateWindowSurface(). While running in an X environment,
the native window object can be obtained by calling
gdk_x11_surface_get_xid(). Likewise, the native window object can be
obtained by calling gdk_wayland_surface_get_wl_egl_window() while
running in a Wayland environment. Therefore, this API needs to be
exposed to apps.
Signed-off-by: Vivek Kasireddy <vivek.kasireddy@intel.com>
2020-12-28 18:20:04 -08:00
Emmanuele Bassi
f22ec063a1
Fix the Vulkan header check for VK_RESULT_RANGE_SIZE
...
The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not
1.2.142.
Fixes : #3522
2020-12-28 18:41:18 +00:00
Benjamin Otte
0fcf01ddd5
Merge branch 'gtkmediafile-pixel-aspect-ratio' into 'master'
...
gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio
Closes #3516
See merge request GNOME/gtk!3007
2020-12-28 14:54:30 +00:00
Asier Sarasua Garmendia
1119a74ff0
Update Basque translation
2020-12-27 17:56:02 +00:00
Sebastian Dröge
18ea60e235
gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3516
2020-12-27 19:33:55 +02:00
Matthias Clasen
d752828977
Merge branch 'wip/jtojnar/trivial-fix-pc-vulcan' into 'master'
...
build: Fix vulkan reference in pc file
Closes #3517
See merge request GNOME/gtk!3006
2020-12-27 17:06:52 +00:00
Fran Dieguez
1034271d9a
Update Galician translation
2020-12-27 16:56:56 +00:00
Fran Dieguez
f013d3b5d6
Update Galician translation
2020-12-27 16:51:38 +00:00
Benjamin Otte
5f41d26abc
Merge branch 'gtkgstsink-unmap-only-when-done' into 'master'
...
gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify
See merge request GNOME/gtk!3003
2020-12-27 06:17:36 +00:00
Jan Tojnar
7d5826ccf7
build: Fix vulkan reference in pc file
...
A mistake in string concatenation caused the vulcan dependency to be omitted.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3517
2020-12-27 06:42:29 +01:00