Timm Bäder [Sun, 24 May 2020 06:31:55 +0000 (08:31 +0200)]
gl renderer: Refactor render_clipped_child
Timm Bäder [Sun, 24 May 2020 06:31:40 +0000 (08:31 +0200)]
gl renderer: Cache whether clips is rectilinear
Timm Bäder [Sat, 23 May 2020 04:37:18 +0000 (06:37 +0200)]
applicationwindow: Simplify measure implementation
We already chain up first thing in this function, so no need to do it
again.
Timm Bäder [Sat, 23 May 2020 04:35:50 +0000 (06:35 +0200)]
window: Remove private _get_shadow_width()
Unused now.
Timm Bäder [Sat, 23 May 2020 04:35:27 +0000 (06:35 +0200)]
applicationwindow: Stop querying shadow width
don't need to do this anymore.
Piotr Drąg [Sun, 24 May 2020 13:07:03 +0000 (15:07 +0200)]
Update Polish translation
Florentina Mușat [Sun, 24 May 2020 10:48:29 +0000 (10:48 +0000)]
Update Romanian translation
Florentina Mușat [Sun, 24 May 2020 10:37:15 +0000 (10:37 +0000)]
Update Romanian translation
Emin Tufan Çetin [Sat, 23 May 2020 08:50:36 +0000 (08:50 +0000)]
Update Turkish translation
Matthias Clasen [Sat, 23 May 2020 00:05:16 +0000 (00:05 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
gtk-demo: Fix the dnd demo drop highlight
See merge request GNOME/gtk!1958
Matthias Clasen [Fri, 22 May 2020 23:46:56 +0000 (23:46 +0000)]
Merge branch 'no-app-menu' into 'master'
Drop the app menu
Closes #2731
See merge request GNOME/gtk!1951
Matthias Clasen [Fri, 22 May 2020 22:52:56 +0000 (18:52 -0400)]
gtk-demo: Fix the dnd demo drop highlight
We want the drop highlight to be around the label,
not around the item containing it, so move the drop
target gesture to the right widget.
Matthias Clasen [Fri, 22 May 2020 22:46:51 +0000 (18:46 -0400)]
docs: Mention app menus in the migration guide
Matthias Clasen [Fri, 22 May 2020 22:19:59 +0000 (22:19 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!1957
Matthias Clasen [Fri, 22 May 2020 21:37:40 +0000 (21:37 +0000)]
Merge branch 'BUG_filechooserbutton_remote_GTK4' into 'master'
FileChooserButton: query 'display name' also for unbookmarked files
Closes #1966
See merge request GNOME/gtk!1725
Matthias Clasen [Fri, 22 May 2020 21:06:30 +0000 (17:06 -0400)]
gtkapplication: Drop app menu support
Drop apis and code related to appmenus from
both GtkApplication and GtkApplicationWindow.
We still keep the menubar support, since it
is needed for system integration on OS X.
Fixes: #2731
Matthias Clasen [Fri, 22 May 2020 21:05:10 +0000 (17:05 -0400)]
print-editor: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:52:31 +0000 (16:52 -0400)]
inspector: Drop app-menu support
Don't add app menu to the object tree anymore;
this property is going away.
Matthias Clasen [Fri, 22 May 2020 20:36:20 +0000 (16:36 -0400)]
examples: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 20:19:49 +0000 (16:19 -0400)]
gtk-demo: Stop using appmenu apis
The appmenu-related GtkApplication apis are going away.
Matthias Clasen [Fri, 22 May 2020 21:19:35 +0000 (17:19 -0400)]
fixed: Change coordinate apis to doubles
We are using floating point for coordinates
everywhere now, so be consistent here.
This commit also changes the implementation of
gtk_fixed_get_child_position to work with
non-translation child transforms.
Matthias Clasen [Fri, 22 May 2020 19:53:18 +0000 (15:53 -0400)]
testsuite: Re-add the sizegroups-evolution reftest
It doesn't seem to cause problems in ci anymore.
Matthias Clasen [Fri, 22 May 2020 20:59:44 +0000 (20:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
text: Avoid clash of preedit and placeholder
See merge request GNOME/gtk!1955
Matthias Clasen [Fri, 22 May 2020 19:38:02 +0000 (15:38 -0400)]
gtk-demo: Improve rotation in the dnd demo
Make the drag icon preserve the rotation, and improve
placement for the editor and for dnd to take the offset
into account.
Timm Bäder [Fri, 22 May 2020 17:50:29 +0000 (19:50 +0200)]
gl renderer: don't pretend all transform nodes support being transformed
It doesn't work in the general case. The transform handling could use a
general overhaul though.
Fixes #2773
Timm Bäder [Fri, 22 May 2020 17:37:15 +0000 (19:37 +0200)]
gl renderer: Fix some off-by-one and rounding errors in the shadow code
Take 24
Fixes #2759
Matthias Clasen [Fri, 22 May 2020 18:06:00 +0000 (14:06 -0400)]
gtk-demo: Improve editing in the dnd demo
Add a scale for the angle, make the edits apply immediately,
and keep the item visible.
Matthias Clasen [Fri, 22 May 2020 17:25:17 +0000 (13:25 -0400)]
gtk-demo: Improve drag icon handling in dnd example
Make the opacity change only apply to the 'ghost' of
the item, not the drag icon.
Matthias Clasen [Fri, 22 May 2020 17:17:59 +0000 (13:17 -0400)]
gtk-demo: Fix entry position in dnd demo
gtk_fixed_get_child_position does not work if children
have transforms that are not just 2D translations.
Use gtk_widget_translate_coordinates instead.
Matthias Clasen [Fri, 22 May 2020 16:35:18 +0000 (12:35 -0400)]
gtk-demo: Reorganize the dnd demo
Introduce a CanvasItem widget to make things a
bit less ad hoc.
Matthias Clasen [Fri, 22 May 2020 16:25:23 +0000 (12:25 -0400)]
main: Keep the target widget alive
We are passing the event to the tooltip handle_event
function at the very end. Unfortunately, the target_widget
may have already died at that point. We prevent that
by taking a ref during propagage_event, but the tooltip
code was outside of that. Keep a ref until the very
end ot prevent crashes.
Matthias Clasen [Fri, 22 May 2020 14:50:09 +0000 (10:50 -0400)]
gtk-demo: Use proper drag icons in the dnd demo
Use a widget paintable to make the drag icon appear
in two places at once.
Matthias Clasen [Fri, 22 May 2020 14:49:12 +0000 (10:49 -0400)]
dragsource: Actually use the paintable
We were just ignoring a paintable provided by
gtk_drag_source_set_icon().
Matthias Clasen [Fri, 22 May 2020 14:48:49 +0000 (10:48 -0400)]
colorswatch: Remove a redundant include
Matthias Clasen [Fri, 22 May 2020 03:11:47 +0000 (23:11 -0400)]
reftests: Fix the background-origin test
This was broken when I accidentally removed
one of the buttons.
Matthias Clasen [Fri, 22 May 2020 02:42:53 +0000 (22:42 -0400)]
text: Avoid clash of preedit and placeholder
Take preedit into account when determining the
visibility of placeholder text.
Matthias Clasen [Fri, 22 May 2020 14:20:35 +0000 (14:20 +0000)]
Merge branch 'fix-printbackend' into 'master'
Build media backends with common_cflags and export the symbol
Closes #2771
See merge request GNOME/gtk!1956
Qiu Wenbo [Fri, 22 May 2020 08:45:44 +0000 (16:45 +0800)]
Build media backends with common_cflags and export the symbol
Fixes: #2771
Yuri Chornoivan [Fri, 22 May 2020 05:47:20 +0000 (05:47 +0000)]
Update Ukrainian translation
Matthias Clasen [Fri, 22 May 2020 01:59:34 +0000 (01:59 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #227, #328, and #1010
See merge request GNOME/gtk!1954
Ondrej Holy [Fri, 22 May 2020 01:14:47 +0000 (21:14 -0400)]
trash-monitor: Rate limit updates
Trash monitor queries info from gvfsd-trash after each file monitor
change which can be problematic when too many changes happen in
a short time. Let's rate limit the number of queries...
Fixes: #1010
Matthias Clasen [Fri, 22 May 2020 00:37:54 +0000 (20:37 -0400)]
range: Treat lower and upper limit the same
When clamping values to be within the range of
the adjustment, treat the lower and upper limit
the same.
Fixes: #328
Matthias Clasen [Thu, 21 May 2020 23:04:27 +0000 (19:04 -0400)]
windowhandle: Drop Move and Resize from the fallback menu
The expected behavior is that we trigger a keyboard-driven
interactive move or resize operation. But that doesn't work
with common compositors like mutter or weston, so lets not
expose non-working menuitems.
Matthias Clasen [Thu, 21 May 2020 22:59:58 +0000 (18:59 -0400)]
tooltip: Avoid criticals
It is possible that the target widget is already
unparented at the time that we call the tooltips
handle_event function. Quietly return in that case,
no need to emit a critical.
Matthias Clasen [Thu, 21 May 2020 22:15:14 +0000 (18:15 -0400)]
accelgroup: Use Unicode in string literals
Its 2020, non-ASCII characters are not taboo anymore.
Matthias Clasen [Thu, 21 May 2020 22:05:43 +0000 (18:05 -0400)]
Differentiate keypad keysyms in accelerators
When displaying accelerators, differentiate keypad
symbols with a 'KP' prefix. Fixing a 17 year old bug.
Update expected output in accelerator tests.
Fixes: #227
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.