Matthias Clasen [Thu, 21 May 2020 21:31:17 +0000 (21:31 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1953
Matthias Clasen [Thu, 21 May 2020 20:24:56 +0000 (16:24 -0400)]
gtk-demo: Fix breakage in a css demo
This is fallout from container api changes. We
were treating a GtkOverlay like a GtkBox, which
it isn't.
Matthias Clasen [Thu, 21 May 2020 20:24:20 +0000 (16:24 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the css blendmodes demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 20:23:42 +0000 (16:23 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the revealers demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 19:41:00 +0000 (15:41 -0400)]
gtk-demo: Plug another leak
We were leaking the builder in the cursors demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Matthias Clasen [Thu, 21 May 2020 19:39:46 +0000 (15:39 -0400)]
gtk-demo: Plug a leak
We were leaking the builder in the builder demo,
by creating a ref cycle. This was showing up as
the list entry not going back to upright after
closing the window.
Timm Bäder [Wed, 20 May 2020 06:01:48 +0000 (08:01 +0200)]
gl renderer: Fix blurred outset shadow slicing
Take 23.
Fixes #2759
Matthias Clasen [Wed, 20 May 2020 20:57:34 +0000 (20:57 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1950
Matthias Clasen [Wed, 20 May 2020 20:13:30 +0000 (20:13 +0000)]
Merge branch 'wip/exalm/window-polish' into 'master'
window: Fix tiled style class names
See merge request GNOME/gtk!1949
Matthias Clasen [Wed, 20 May 2020 19:07:58 +0000 (15:07 -0400)]
mediastream: Volume is a double
Another obvious copy-paste error in the property
declarations of GtkMediaStream. Volume should be
a double, with range [0, 1], not a boolean.
Matthias Clasen [Wed, 20 May 2020 19:05:13 +0000 (15:05 -0400)]
mediastream: Some properties were meant to be readonly
These properties aren't covered by set_property(), and
it doesn't make sense to do so. They were just declared
as read-write by mistake.
Matthias Clasen [Wed, 20 May 2020 19:04:44 +0000 (15:04 -0400)]
mediacontrols: Make volume control react to has-audio
Matthias Clasen [Wed, 20 May 2020 18:01:07 +0000 (18:01 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gdk: Short-circuit some surface setters
See merge request GNOME/gtk!1947
Alexander Mikhaylenko [Wed, 20 May 2020 17:10:32 +0000 (22:10 +0500)]
window: Fix tiled style class names
This should fix the round corners on tiled windows.
Timm Bäder [Wed, 20 May 2020 17:06:37 +0000 (17:06 +0000)]
Merge branch 'wip/baedert/single-node-window' into 'master'
single node GtkWindow
See merge request GNOME/gtk!1863
Timm Bäder [Wed, 20 May 2020 08:58:06 +0000 (10:58 +0200)]
window: Use GtkNative's check_resize everywhere
Timm Bäder [Wed, 20 May 2020 08:11:37 +0000 (10:11 +0200)]
window: Create default titlebar directly in realize
Instead of having two functions that are only called from one place but
look like they can be called from anywhere.
Timm Bäder [Wed, 20 May 2020 07:36:21 +0000 (09:36 +0200)]
update documentation for new style classes and node names
Timm Bäder [Wed, 20 May 2020 07:33:07 +0000 (09:33 +0200)]
Adwaita: style updates for new window node hierarchy
Timm Bäder [Wed, 20 May 2020 07:32:44 +0000 (09:32 +0200)]
window: Fix the surface coordinates everywhere
Timm Bäder [Wed, 20 May 2020 07:32:18 +0000 (09:32 +0200)]
window: Inline gtk_window_configure() into only caller
And remove the prototype from gtkwindowprivate.h
Timm Bäder [Wed, 20 May 2020 07:31:17 +0000 (09:31 +0200)]
window: Rewrite edge region detection
Timm Bäder [Wed, 20 May 2020 07:30:01 +0000 (09:30 +0200)]
window: Fix computing the opaque region
We need to look at the surface transform here as well now.
Timm Bäder [Wed, 20 May 2020 07:28:27 +0000 (09:28 +0200)]
window: Avoid using GtkStyleContext in subtract_decoration_corners
We can do this by just using the GtkCssStyle these days.
Timm Bäder [Wed, 20 May 2020 07:27:37 +0000 (09:27 +0200)]
window: Fix get_surface_transform()
Look at the shadow here.
Timm Bäder [Wed, 20 May 2020 07:24:00 +0000 (09:24 +0200)]
window: Set overflow to HIDDEN
It really doesn't make sense for the general window to allow drawing
outside of it.
Timm Bäder [Wed, 20 May 2020 07:22:41 +0000 (09:22 +0200)]
inspector: Fix overlay coordinates
Get the native transform only once, for all overlays. Unfortunately we
have to undo this for the updates overlay since that one gets values
in surface coordinates.
Timm Bäder [Wed, 20 May 2020 07:10:14 +0000 (09:10 +0200)]
inspector: Don't offset layout overlay too much
We already do this earlier.
Timm Bäder [Wed, 20 May 2020 07:09:34 +0000 (09:09 +0200)]
Window: Remove extra_input_region API
This is unused.
Timm Bäder [Wed, 20 May 2020 07:07:24 +0000 (09:07 +0200)]
Call all window subclasses "window"
And add style classes to differentiate them
Timm Bäder [Wed, 20 May 2020 06:37:21 +0000 (08:37 +0200)]
testsuite: Remove window decoration nodes from reference results
Timm Bäder [Sat, 2 May 2020 08:25:12 +0000 (10:25 +0200)]
window: Remove decoration node
Timm Bäder [Sat, 2 May 2020 06:45:19 +0000 (08:45 +0200)]
window: Don't care about shadow in measure()
Timm Bäder [Sat, 2 May 2020 06:41:20 +0000 (08:41 +0200)]
window: Don't care about shadow in size_allocate()
Timm Bäder [Sat, 2 May 2020 06:40:27 +0000 (08:40 +0200)]
window: Remove custom snapshot() implementation
Timm Bäder [Sat, 2 May 2020 05:50:30 +0000 (07:50 +0200)]
widget: Remove GtkWindow special case in create_render_node()
Matthias Clasen [Wed, 20 May 2020 14:55:27 +0000 (10:55 -0400)]
gdk: Short-circuit some surface setters
Don't call into the backends when the input region
or shadow width don't actually change. This avoid
distracting calls in debug logs, and just generally
is the right thing to do.
Timm Bäder [Wed, 20 May 2020 13:50:17 +0000 (15:50 +0200)]
gdkdisplay-wayland: only remove one monitor
Ids here are unique, so break out of the loop once we found the monitor
with the given ID.
Emmanuele Bassi [Wed, 20 May 2020 11:57:00 +0000 (11:57 +0000)]
Merge branch 'wip/ricotz/annotations' into 'master'
gdk: Preserve typed event parameter of GdkSurface:event signal for gir
See merge request GNOME/gtk!1946
Daniel Mustieles [Wed, 20 May 2020 10:08:17 +0000 (12:08 +0200)]
Updated Spanish translation
Timm Bäder [Wed, 20 May 2020 08:27:00 +0000 (10:27 +0200)]
gtk4-demo: Fix css_basics demo
Timm Bäder [Wed, 20 May 2020 08:24:22 +0000 (10:24 +0200)]
gtk4-demo: Fix sliding puzzle demo
Rico Tzschichholz [Wed, 20 May 2020 06:43:46 +0000 (08:43 +0200)]
gdk: Preserve typed event parameter of GdkSurface:event signal for gir
In conjunction to https://gitlab.gnome.org/GNOME/gtk/merge_requests/1936
Christian Hergert [Tue, 19 May 2020 22:59:41 +0000 (22:59 +0000)]
Merge branch 'wip/chergert/remove-get_toplevel' into 'master'
device: remove get_toplevel from surface_at_position vfunc
Closes #2765
See merge request GNOME/gtk!1941
Matthias Clasen [Tue, 19 May 2020 22:40:57 +0000 (22:40 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
See merge request GNOME/gtk!1935
Matthias Clasen [Tue, 19 May 2020 22:37:34 +0000 (22:37 +0000)]
Merge branch 'wip/carlosg/tracker3' into 'master'
Move to tracker3 search engine
See merge request GNOME/gtk!1944
Christian Hergert [Tue, 19 May 2020 19:00:32 +0000 (12:00 -0700)]
device: remove get_toplevel from surface_at_position vfunc
This is not used anymore now that surfaces are always toplevel in the
semantics of GdkWindow where child windows were available. We can drop
that and simplify the vfunc just a bit more.
Fixes #2765
Carlos Garnacho [Tue, 19 May 2020 12:22:51 +0000 (14:22 +0200)]
gtksearchengine: Drop tracker 2.x search engine
This is being superseded by 3.x
Carlos Garnacho [Tue, 19 May 2020 11:55:41 +0000 (13:55 +0200)]
gtksearchenginetracker3: Pre-fill GFileInfo from query
Provide the minimal info necessary. Improves apparent responsiveness
(since we don't visibly clear and repopulate the list) and saves doing
file stat/reads on every file in the result set.
Carlos Garnacho [Sat, 16 May 2020 22:04:56 +0000 (00:04 +0200)]
gtksearchengine: Add tracker3 search engine
Make this dependency optional at build time, and prefer it over
the old tracker <= 2.x implementation.
Carlos Garnacho [Sat, 16 May 2020 22:04:15 +0000 (00:04 +0200)]
gtksearchengine: Add autoptr handler for this type
So subclasses can just use G_DECLARE_*_TYPE.
Carlos Garnacho [Sat, 16 May 2020 22:00:22 +0000 (00:00 +0200)]
gtksearchengine: Add "got_results" argument to ::finished
The filechooser tries to figure out whether it got results by poking
the model, but all files might go through the async GFileInfo querying
state.
Make all search engines (and the composite one) just notify about this
fact, so the file chooser can behave appropriately without waiting for
the async operations to finish.
Matthias Clasen [Tue, 19 May 2020 19:59:46 +0000 (19:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Refresh the build and backend sections
See merge request GNOME/gtk!1942
Matthias Clasen [Tue, 19 May 2020 19:19:53 +0000 (15:19 -0400)]
docs: Refresh the build and backend sections
Remove some outdated information from the sections
about building and about particular backends.
Matthias Clasen [Tue, 19 May 2020 14:06:25 +0000 (14:06 +0000)]
Merge branch 'x11-shortcuts-inhibit-fix' into 'master'
x11: update inhibit shortcuts on grab broken
See merge request GNOME/gtk!1590
Olivier Fourdan [Tue, 31 Mar 2020 12:38:08 +0000 (14:38 +0200)]
x11: update inhibit shortcuts on grab broken
On X11, shortcuts inhibition is emulated using a grab on the keyboard.
So if another widget ungrabs the keyboard behind our back (for example
when a popup window is dismissed) that effectively disables the effects
of the shortcut inhibition on the surface and we need to update the
shortcut inhibition status accordingly.
Check for "grab-broken" events on the surface and clear existing
shortcuts inhibition for the matching seat, so that the client can be
notified and may decide to re-enable shortcut inhibition if desired.
Emmanuele Bassi [Tue, 19 May 2020 12:14:17 +0000 (12:14 +0000)]
Merge branch 'ebassi/surface-event' into 'master'
Use the right types for the GdkSurface::event arguments
See merge request GNOME/gtk!1936
Emmanuele Bassi [Tue, 19 May 2020 11:18:24 +0000 (12:18 +0100)]
Use the right types for the GdkSurface::event arguments
We pass the GdkEvent as a pointer, because the autogenerated marshallers
don't know how to handle GTypeInstance-derived classes.
Since the GValue box that we use in the marshaller passes the GdkEvent
instance as is, we also need to acquire a reference before invoking the
closure, and release it afterwards, to ensure that the GdkEvent instance
survices the invocation.
Timm Bäder [Mon, 18 May 2020 17:39:59 +0000 (19:39 +0200)]
treeview: Remove `animate` parameters
Nothing ever reads them.
Timm Bäder [Mon, 18 May 2020 17:39:32 +0000 (19:39 +0200)]
text: Assert that we have ranges before using them
We never hit this code path otherwise but let's make sure.
Timm Bäder [Mon, 18 May 2020 17:39:15 +0000 (19:39 +0200)]
unsetvalue: Add G_GNUC_NORETURN annotation
Timm Bäder [Mon, 18 May 2020 16:55:26 +0000 (18:55 +0200)]
testgtk: Add G_GNUC_NORETURN to usage()
Timm Bäder [Mon, 18 May 2020 12:02:32 +0000 (14:02 +0200)]
builder-tool Make preview closeable
Timm Bäder [Mon, 18 May 2020 11:41:19 +0000 (13:41 +0200)]
Build print backends with common_cflags
Timm Bäder [Mon, 18 May 2020 11:41:04 +0000 (13:41 +0200)]
build: Pass common_cflags to focus-chain test
Timm Bäder [Mon, 18 May 2020 11:37:23 +0000 (13:37 +0200)]
bloatpad: Pass common_cflags to the build
Timm Bäder [Mon, 18 May 2020 10:34:51 +0000 (12:34 +0200)]
tetsuite/a11y: Pass common_cflags to build
Timm Bäder [Mon, 18 May 2020 10:09:38 +0000 (12:09 +0200)]
reftests: Pass common_cflags
Timm Bäder [Mon, 18 May 2020 10:04:15 +0000 (12:04 +0200)]
tools: Pass common_cflags to executables
Timm Bäder [Mon, 18 May 2020 09:44:38 +0000 (11:44 +0200)]
Pass common_cflags to testuite/gsk executables
Timm Bäder [Mon, 18 May 2020 09:38:02 +0000 (11:38 +0200)]
Pass common_cflags to print backends
Matthias Clasen [Tue, 19 May 2020 02:47:03 +0000 (02:47 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #2739 and #2760
See merge request GNOME/gtk!1934
Matthias Clasen [Tue, 19 May 2020 01:49:34 +0000 (21:49 -0400)]
testsuite: Remove obsolete test from list
The test was removed in
97d0e8c6e07c08ae, but I neglected
to remove the test files from meson.build.
Fixes: #2760
Matthias Clasen [Mon, 18 May 2020 22:21:39 +0000 (18:21 -0400)]
gsk: Document blend modes
Add some information about blend modes, mostly taken
from the css compositing spec.
Fixes: #2739
Matthias Clasen [Mon, 18 May 2020 19:45:57 +0000 (15:45 -0400)]
3.98.4
Matthias Clasen [Mon, 18 May 2020 20:37:18 +0000 (16:37 -0400)]
testsuite: Remove GDK_DEBUG=misc
This snuck in by accident in recent ci setup
changes, and breaks the test runs by adding
stray output.
Matthias Clasen [Mon, 18 May 2020 16:46:12 +0000 (16:46 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
colorscale: Bring back the right-click on slider
See merge request GNOME/gtk!1933
Matthias Clasen [Mon, 18 May 2020 15:31:42 +0000 (11:31 -0400)]
colorscale: Bring back the right-click on slider
This was lost when we converted the color editor to actions.
Emmanuele Bassi [Mon, 18 May 2020 15:10:38 +0000 (15:10 +0000)]
Merge branch 'ebassi/ci-fix' into 'master'
docs: Fix the argument name to match
See merge request GNOME/gtk!1930
Jakub Steiner [Mon, 18 May 2020 14:04:19 +0000 (14:04 +0000)]
Merge branch 'theme-aligned-combo-labels' into 'master'
Adwaita: Align combo menu labels with the combo button label
See merge request GNOME/gtk!1928
Yuri Chornoivan [Mon, 18 May 2020 14:03:41 +0000 (14:03 +0000)]
Update Ukrainian translation
Emmanuele Bassi [Mon, 18 May 2020 13:55:25 +0000 (14:55 +0100)]
docs: Fix the argument name to match
Both gtk-doc and g-i require the name of the argument of a function to
match in the declaration, definition, and gtk-doc stanza.
Jakub Steiner [Mon, 18 May 2020 13:12:15 +0000 (13:12 +0000)]
Merge branch 'theme-checkbutton-padding' into 'master'
Adwaita: Tweak padding in checkbutton & radiobutton
Closes #2697
See merge request GNOME/gtk!1927
nana-4 [Mon, 18 May 2020 12:52:00 +0000 (21:52 +0900)]
Adwaita: Align combo menu labels with the combo button label
Apply the same left and right padding to the combo menu items as the
combo button.
nana-4 [Mon, 18 May 2020 11:00:11 +0000 (20:00 +0900)]
Adwaita: Tweak padding in checkbutton & radiobutton
Since we can now use border-spacing in checkbutton and radiobutton,
we don't need the margin in check and radio for spacing anymore.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2697
Timm Bäder [Mon, 18 May 2020 08:17:03 +0000 (10:17 +0200)]
bloatpad: Avoid a few theoretical compiler warnings
Timm Bäder [Mon, 18 May 2020 07:41:47 +0000 (09:41 +0200)]
Add G_GNUC_NORETURN to functions that never return
Timm Bäder [Mon, 18 May 2020 07:39:40 +0000 (09:39 +0200)]
examples: Add common_cflags to executables
Daniel Mustieles [Mon, 18 May 2020 08:15:03 +0000 (10:15 +0200)]
Updated Spanish translation
Matthias Clasen [Mon, 18 May 2020 04:26:01 +0000 (04:26 +0000)]
Merge branch 'shape-apis' into 'master'
Shape apis
See merge request GNOME/gtk!1925
Chun-wei Fan [Mon, 18 May 2020 03:35:52 +0000 (11:35 +0800)]
print-editor demo: Fix linking on Visual Studio
We need to pass in '/entry:mainCRTStartup' as we did for the other demo
programs that have 'gui_app: true' in their Meson build settings.
Matthias Clasen [Mon, 18 May 2020 02:05:24 +0000 (22:05 -0400)]
gdk: Simplify gdk_display_supports_input_shapes
Make this a display property, and do away with
the vfunc in favor of a private setter, to match
how we handle other display characteristics.
Matthias Clasen [Mon, 18 May 2020 01:52:15 +0000 (21:52 -0400)]
gdk: Drop gdk_display_supports_shapes
The apis to set shapes on surfaces are gone,
so there is no point in providing this information
on GdkDisplay.
Matthias Clasen [Mon, 18 May 2020 01:47:22 +0000 (21:47 -0400)]
x11: Avoid some frontend api use
We can just use our backend information directly.
Matthias Clasen [Mon, 18 May 2020 01:46:54 +0000 (21:46 -0400)]
docs: Tweak docs for gdk_surface_set_input_region
Matthias Clasen [Mon, 18 May 2020 00:08:44 +0000 (00:08 +0000)]
Merge branch 'coordinate-api' into 'master'
Coordinate api
See merge request GNOME/gtk!1924
Matthias Clasen [Sun, 17 May 2020 21:49:02 +0000 (17:49 -0400)]
gdk: Make gdk_drag_begin take doubles
This is a better fit to the way we treat coordinates
everywhere else.
Matthias Clasen [Sun, 17 May 2020 21:08:01 +0000 (17:08 -0400)]
Change coordinate translation apis to take doubles
Change gtk_widget_translate_coordinates and
gtk_native_get_surface_transform to operate
on doubles. Update all callers.
Matthias Clasen [Sun, 17 May 2020 20:01:08 +0000 (16:01 -0400)]
native: Make gtk_native_get_surface_transform public
This api is needed to translate between surface
and widget coordinates.
Matthias Clasen [Sun, 17 May 2020 19:15:46 +0000 (19:15 +0000)]
Merge branch 'toplevel-move-resize' into 'master'
Toplevel move resize
See merge request GNOME/gtk!1923