summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* macos: do not crash in mojavemacos-mojaveIgnacio Casal Quinteiro2020-12-311-0/+4
| | | | | The localizedName property is not available in Mojave so just ifdef in that case the code out.
* Merge branch 'revert-224c2674' into 'master'Matthias Clasen2020-12-302-4/+1
|\ | | | | | | | | Revert "Merge branch 'gtk_egl_wayland' into 'master'" See merge request GNOME/gtk!3018
| * Revert "Merge branch 'gtk_egl_wayland' into 'master'"Matthias Clasen2020-12-302-4/+1
|/ | | This reverts merge request !3011
* Merge branch 'gtk_egl_wayland' into 'master'Matthias Clasen2020-12-302-1/+4
|\ | | | | | | | | Expose gdk_wayland_surface_get_wl_egl_window() See merge request GNOME/gtk!3011
| * gdk/wayland/surface: Expose gdk_wayland_surface_get_wl_egl_window()Vivek Kasireddy2020-12-282-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Merge branch 'mcatanzaro/#3509' into 'master'Matthias Clasen2020-12-292-3/+6
|\ \ | | | | | | | | | | | | | | | | | | message dialog: use title style only if there is secondary text Closes #3509 See merge request GNOME/gtk!3015
| * | message dialog: use title style only if there is secondary textMichael Catanzaro2020-12-292-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 1e3ec7c1f993ec8cab4c6608b968e78f9028d662. 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
* | | Merge branch 'fix-menu-alignment' into 'master'Matthias Clasen2020-12-291-0/+1
|\ \ \ | | | | | | | | | | | | | | | | Fix menu item alignment with submenus See merge request GNOME/gtk!3016
| * | | Fix menu item alignment with submenusMatthias Clasen2020-12-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'xndcn/fix-shader' into 'master'Timm Bäder2020-12-294-5/+9
|\ \ \ \ | |/ / / |/| | | | | | | | | | | gl: Fix implicit leaking of shader object See merge request GNOME/gtk!3013
| * | | gl: Fix implicit leaking of shader objectxndcn2020-12-294-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'ebassi/issue-3522' into 'master'Matthias Clasen2020-12-291-1/+1
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | Fix the Vulkan header check for VK_RESULT_RANGE_SIZE Closes #3522 See merge request GNOME/gtk!3009
| * | | Fix the Vulkan header check for VK_RESULT_RANGE_SIZEebassi/issue-3522Emmanuele Bassi2020-12-281-1/+1
| | |/ | |/| | | | | | | | | | | | | | | | The VK_RESULT_RANGE_SIZE enumeration value was removed in 1.2.140, not 1.2.142. Fixes: #3522
* | | Merge branch 'wip/chergert/volatile-fixes' into 'master'Timm Bäder2020-12-2911-15/+15
|\ \ \ | |/ / |/| | | | | | | | types: fix various use of volatile in type registration See merge request GNOME/gtk!2865
| * | types: fix various use of volatile in type registrationwip/chergert/volatile-fixesChristian Hergert2020-11-1811-15/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The use of volatile was incorrect in GLib and has been that way for a long time. Recently however that has changed, and this makes GTK follow suit to avoid using volatile in the type registration. See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719 Combined with the above merge request for GLib, this fixes a large number of compilation warnings when using Clang.
* | | Merge branch 'gtkmediafile-pixel-aspect-ratio' into 'master'Benjamin Otte2020-12-284-11/+28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gtkmediafile: Consider pixel-aspect-ratio for rendering video with the correct aspect ratio Closes #3516 See merge request GNOME/gtk!3007
| * | | gtkmediafile: Consider pixel-aspect-ratio for rendering video with the ↵Sebastian Dröge2020-12-274-11/+28
| | | | | | | | | | | | | | | | | | | | | | | | correct aspect ratio Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3516
* | | | Update Basque translationAsier Sarasua Garmendia2020-12-271-699/+1463
| | | |
* | | | Merge branch 'wip/jtojnar/trivial-fix-pc-vulcan' into 'master'Matthias Clasen2020-12-271-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | build: Fix vulkan reference in pc file Closes #3517 See merge request GNOME/gtk!3006
| * | | | build: Fix vulkan reference in pc filewip/jtojnar/trivial-fix-pc-vulcanJan Tojnar2020-12-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A mistake in string concatenation caused the vulcan dependency to be omitted. Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3517
* | | | | Update Galician translationFran Dieguez2020-12-271-1297/+1315
| | | | |
* | | | | Update Galician translationFran Dieguez2020-12-271-764/+1602
| |/ / / |/| | |
* | | | Merge branch 'gtkgstsink-unmap-only-when-done' into 'master'Benjamin Otte2020-12-271-3/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notify See merge request GNOME/gtk!3003
| * | | | gtkmediafile: Only unmap the GstVideoFrame in the GBytes destroy notifySebastian Dröge2020-12-261-3/+9
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The memory pointed to by GstVideoFrame::plane_data becomes invalid after unmapping causing the GBytes to point at some random memory if the unmapping is not deferred until its destroy notify. When the GStreamer buffer is backed by normal system memory this is not a problem but if it is backed by e.g. an OpenGL texture, dmabuf or some other hardware-specific memory this will otherwise cause interesting problems.
* | | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-12-274-6/+26
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Matthiasc/for master See merge request GNOME/gtk!3004
| * | | | colorbutton: Correct the css docsMatthias Clasen2020-12-231-2/+9
| | | | | | | | | | | | | | | | | | | | Mention the wrapper colorbutton node.
| * | | | fontbutton: Correct the css docsMatthias Clasen2020-12-231-1/+8
| | | | | | | | | | | | | | | | | | | | Mention the wrapper fontbutton node.
| * | | | menubutton: Correct the css docsMatthias Clasen2020-12-231-2/+8
| | | | | | | | | | | | | | | | | | | | We are using menubutton instead of button.popup now.
| * | | | modelbutton: Center titlesMatthias Clasen2020-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The centering of titles was broken in b5b81dea7f2eff28. Make it mostly work again by adding an empty end indicator. Related: #3405
* | | | | Merge branch 'gtkclip' into 'master'Matthias Clasen2020-12-272-2/+0
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | gtk: remove GtkClipboard leftovers See merge request GNOME/gtk!2991
| * | | | | gtk: remove GtkClipboard leftoversMarc-André Lureau2020-12-222-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* | | | | | Merge branch 'wip/carlosg/for-master' into 'master'Matthias Clasen2020-12-271-3/+10
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | gtk/gesturestylus: Convert motion history from surface coordinates Closes #3491 See merge request GNOME/gtk!2999
| * | | | | gtk/gesturestylus: Convert motion history from surface coordinateswip/carlosg/for-masterCarlos Garnacho2020-12-241-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Motion history coordinates are based on GdkSurface coordinates. Transform the coordinates from the GtkNative they are received on, accounting for the possible transforms (e.g. due to window borders and shadows). Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3491
* | | | | | Merge branch 'unused-static-inline' into 'master'Benjamin Otte2020-12-251-180/+0
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | Remove unused static inline function See merge request GNOME/gtk!3002
| * | | | | Remove unused static inline functionEmmanuel Gil Peyrot2020-12-251-180/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | This was causing a warning on AArch64 since __LITTLE_ENDIAN__ and __BIG_ENDIAN__ weren’t set, but the functions were actually completely unused.
* | | | | Merge branch 'gles-gears' into 'master'Benjamin Otte2020-12-255-7/+7
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Fix gtk4-demo’s gears demo on OpenGL ES See merge request GNOME/gtk!3000
| * | | | Fix some of gtk4-demo’s transitions example on OpenGL ESEmmanuel Gil Peyrot2020-12-254-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Same issue as the previous commit, int+float is error, and pow() only works on floats.
| * | | | Fix gtk4-demo’s gears demo on OpenGL ESEmmanuel Gil Peyrot2020-12-251-3/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here is a command to reproduce this testcase: GDK_DEBUG=gl-gles gtk4-demo --run gears Without this patch, Mesa throws this compile error: 0:130(13): error: no matching function for call to `mod(error, float)'; candidates are: This is caused by `u_rotation - 90` being of type error since `u_rotation` is a float and it’s illegal to subtract it with an integer.
* | | | Merge branch 'wip/otte/for-master' into 'master'Matthias Clasen2020-12-2419-198/+95
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Wip/otte/for master See merge request GNOME/gtk!2997
| * | | | gdkarray: Add a "stolen" boolean to splice()Benjamin Otte2020-12-248-12/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If set to TRUE, does not call the free func for the removed items. This can be used to move items between arrays without having to do the refcounting dance.
| * | | | listview: Use the correct scroll policyBenjamin Otte2020-12-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the horizontal policy for horizontal decisions, not the vertical one. This broke in 0011ce949c3580e02c4b2c3d83584a6c6e82090c.
| * | | | docs: Put render nodes in their own sectionsBenjamin Otte2020-12-241-3/+24
| | | | |
| * | | | roundedbox: Remove unused APIBenjamin Otte2020-12-242-158/+0
| | | | |
| * | | | picture: Fix copy/paste error in docsBenjamin Otte2020-12-241-1/+1
| | | | |
| * | | | video: When autoplaying, start playing once the video is preparedBenjamin Otte2020-12-241-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | This fixe video sources with longer loading times not automatically playing.
| * | | | gtk-demo: Don't put the search bar in the scroll areaBenjamin Otte2020-12-241-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. That's a bad idea UI wise as you can't see the search after you scrolled. 2. That's a bad idea code-wise because Listviews need to be put into a ScrolledWindow or they won't scroll.
| * | | | rendernode: Bail if matrix is invalidBenjamin Otte2020-12-244-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Invalid matrices are okay in GSK (and GL), but not in Cairo. Testcase included.
* | | | | Update Punjabi translationA S Alam2020-12-231-3052/+4763
| | | | |
* | | | | Update Persian translationDanial Behzadi2020-12-231-777/+1437
| |_|/ / |/| | |
* | | | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2020-12-231-0/+2
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | window: Release application in destroy See merge request GNOME/gtk!2994