Commit Graph

61326 Commits

Author SHA1 Message Date
Matthias Clasen
c82877d777 surface: Implement GdkToplevel
This is not quite right, and only temporary, since
it makes GDK_IS_TOPLEVEL (surface) true for every surface.

Eventually, the implementation will be moved to the
backends.
2020-02-29 13:33:43 -05:00
Matthias Clasen
3546efdf0f Introduce GdkToplevel
This is a new interface for toplevel surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
c9e39f6a82 Introduce GdkToplevelLayout
This will be used in a new GdkTopleve interface in
the near future.
2020-02-29 13:33:43 -05:00
Matthias Clasen
ab3f08bad9 x11: Stop using gdk_surface_maximize
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
33b0413cee x11: Stop using gdk_surface_set_geometry_hints
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
da6498b2e8 wayland: Stop using gdk_surface_set_geometry_hints
Just use the backend function directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
a353254ad4 inspector: Stop raising and lowering windows
We should always be composited, so this should not
matter in practice.
2020-02-29 13:33:43 -05:00
Matthias Clasen
77f891037e x11: Stop using gdk_surface_raise
Avoid a vfunc roundtrip and just use the backend
implementation directly.
2020-02-29 13:33:43 -05:00
Matthias Clasen
090ce0ad3b broadway: Stop using gdk_surface_raise
We don't implement this anyway. Add a shortcut
to the backend function in case we ever do.
2020-02-29 13:33:43 -05:00
Matthias Clasen
903840e507 x11: Stop abusing type hints for dnd
Nothing in GDK depends on this being set, so just
don't do it.
2020-02-29 13:33:43 -05:00
Matthias Clasen
97f8e9fea0 wayland: Stop abusing type hints
Instead of misusing window type hints, introduce
a private flag for drag surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
85bd0d601d surface: Drop redundant popup api
Now that we have the GdkPopup interface,
these functions are no longer needed.
2020-02-29 13:33:43 -05:00
Matthias Clasen
fef15aec4e tooltip: Use GdkPopup 2020-02-29 13:33:43 -05:00
Matthias Clasen
bb74a85e1b popover: Use GdkPopup 2020-02-29 13:33:43 -05:00
Matthias Clasen
fb34e9146a surface: Implement GdkPopup
This is not quite right, and only temporary, since
it makes GDK_IS_POPUP (surface) true for every surface.

Eventually, the implementation will be moved to the
backends.
2020-02-29 13:33:43 -05:00
Matthias Clasen
25d19298c9 Introduce GdkPopup
This is a new interface for popup surfaces.
2020-02-29 13:33:43 -05:00
Matthias Clasen
726a3abc14 Move GdkSurface autocleanup declaration
We need this available after including gdksurface.h.
2020-02-29 13:33:43 -05:00
Matthias Clasen
0b73150a5b wayland: Stop calling frontend surface api
This is an unnecessary vfunc roundtrip, and the
frontend api is going away shortly.
2020-02-29 11:37:00 -05:00
Matthias Clasen
bc6d403a9a Simplify surface move/drag api
Drop the with_device variants, and always pass a device.
2020-02-29 11:37:00 -05:00
Matthias Clasen
1d39481c1c Drop gtk_window_begin_move/resize_drag
These are just simple wrappers around GdkSurface
api, and we don't need them.
2020-02-29 11:37:00 -05:00
Matthias Clasen
d60097f8fe Merge branch 'matthiasc/for-master' into 'master'
inspector: Fix the "Software GL" switch

See merge request GNOME/gtk!1491
2020-02-28 20:35:11 +00:00
Matthias Clasen
8f87555176 inspector: Fix the "Software GL" switch
This was crashing.
2020-02-28 14:42:19 -05:00
Piotr Drąg
cf2bcef814 Update POTFILES.in and POTFILES.skip 2020-02-27 22:05:24 +01:00
Matthias Clasen
29d033a8b3 Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master

See merge request GNOME/gtk!1488
2020-02-27 20:29:04 +00:00
Matthias Clasen
cf873f3426 Remove a stray g_object_unref
Events are no longer objects, so this does not do
any good. Use gdk_event_unref instead.
2020-02-27 14:31:19 -05:00
Matthias Clasen
527a8048b6 Avoid a crash in css font features values 2020-02-27 14:30:58 -05:00
Nathan Follens
0c1f93cd7c Update Dutch translation 2020-02-27 11:05:23 +00:00
Timm Bäder
d86832ad5a Merge branch 'patch-1' into 'master'
Fix a typo in gtkplacessidebar.c

See merge request GNOME/gtk!1486
2020-02-27 10:41:44 +00:00
Krzesimir Nowak
8df045537e Fix a typo in gtkplacessidebar.c
Some mistyped vim command got into the code in commit 60d2813247.
2020-02-27 10:02:56 +00:00
Matthias Clasen
73d40c2e6e Merge branch 'matthiasc/for-master' into 'master'
Fix a leftover occurrence of ::expand

See merge request GNOME/gtk!1485
2020-02-27 01:12:23 +00:00
Matthias Clasen
90376d6d6e Fix a leftover occurrence of ::expand 2020-02-26 19:31:25 -05:00
Danial Behzadi
6a359c54fb Update Persian translation 2020-02-26 23:23:04 +00:00
Matthias Clasen
17b7aabfc1 Merge branch 'matthiasc/for-master' into 'master'
gesture: Actually track targets

See merge request GNOME/gtk!1484
2020-02-26 22:34:45 +00:00
Matthias Clasen
dcbecdac31 gesture: Actually track targets
Due to a mismerge, this wasn't actually working,
and was causing criticals from gtk_widget_has_grab
when dragging windows.
2020-02-26 17:06:15 -05:00
Matthias Clasen
fa75d7f480 builder-tool: Fix a thinko
We can't rely on the pspec for a removed property.
This code worked until I actually removed the properties.

Update the tests to reflect this.
2020-02-26 10:01:38 -05:00
Matthias Clasen
5430c80361 Merge branch 'expand-margin-cleanup' into 'master'
expand and margin cleanup

See merge request GNOME/gtk!1479
2020-02-26 14:27:47 +00:00
Matthias Clasen
37a2cae10e Small fixups
Trying to get the ci style test to pass.
2020-02-26 08:13:45 -05:00
Emmanuele Bassi
815e18e069 Merge branch 'docs-fixes' into 'master'
Various documentation fixes

See merge request GNOME/gtk!1481
2020-02-26 11:19:09 +00:00
Emmanuele Bassi
c79acb418f Merge branch 'remove-show-hidden' into 'master'
Remove last instances of GtkFileChooser:show-hidden

See merge request GNOME/gtk!1480
2020-02-26 10:41:50 +00:00
Emmanuele Bassi
303e20226c Add missing ownership transfer annotations 2020-02-26 10:29:59 +00:00
Emmanuele Bassi
3c2312a2dd Fix gtk-doc stanza for private symbol 2020-02-26 10:25:46 +00:00
Emmanuele Bassi
7eb7ee33ff Add missing documentation to GdkDevice 2020-02-26 10:23:15 +00:00
Emmanuele Bassi
d4dcb43aa9 Add missing ownership transfer annotations 2020-02-26 10:23:01 +00:00
Emmanuele Bassi
a1bbd25e12 Fix introspection annotation syntax 2020-02-26 10:19:10 +00:00
Emmanuele Bassi
c8f4f903c6 Remove last instances of GtkFileChooser:show-hidden
The file chooser widget is still setting the show-hidden property, even
though it was removed.
2020-02-26 10:15:16 +00:00
Matthias Clasen
b5bacb3be6 Drop the margin property
Replace it with margin-start, -end, -top, -bottom throughout.
2020-02-25 20:59:04 -05:00
Matthias Clasen
a9c05193a7 Drop the expand property
The hexpand and vexpand properties are sufficient.
2020-02-25 18:29:15 -05:00
Matthias Clasen
2d4e1e248d update testsuite
Update the expected results of the tools tests that are
affected by the new property handling for expand and margin.
2020-02-25 18:28:55 -05:00
Matthias Clasen
77ce55b9ac builder-tool: replace some properties
Replace expand by hexpand and vexpand and
margin by margin-left, -right, -top, -bottom.
2020-02-25 17:50:57 -05:00
Emmanuele Bassi
06ff60aa35 Merge branch 'ci-docs' into 'master'
Restructure CI jobs

See merge request GNOME/gtk!1476
2020-02-25 19:47:57 +00:00