Matthias Clasen
c8bdb4c7fb
Merge branch 'fontchooser-cleanups' into 'main'
...
fontchooser: Stop using pangofc api
See merge request GNOME/gtk!4306
2021-12-31 04:30:04 +00:00
Matthias Clasen
80328e8a4f
fontchooser: Stop using pangofc api
...
Pango now has backend-independent api for all
we need, so we can drop all the ifdefs.
2021-12-30 22:52:52 -05:00
Emmanuele Bassi
1138e3770b
Merge branch 'bilelmoussaoui/g-i' into 'main'
...
g-i: add missing nullable annotation
See merge request GNOME/gtk!4304
2021-12-30 17:12:59 +00:00
Bilal Elmoussaoui
ec58013b22
g-i: add missing nullable annotation
...
the constructor takes a nullable expression parameter, so should the getter be
2021-12-30 16:52:53 +00:00
Matthias Clasen
70cb61fb71
4.6.0
2021-12-30 10:31:52 -05:00
Yuri Chornoivan
8e6a0ec23d
Update Ukrainian translation
2021-12-29 22:17:32 +00:00
Matthias Clasen
e2ab334636
Merge branch 'doc-window' into 'main'
...
Document built-in actions on GtkWindow
See merge request GNOME/gtk!4297
2021-12-29 17:23:16 +00:00
Matthias Clasen
dd0effe957
Merge branch 'wip/chergert/4575-fix-texthistory-selection' into 'main'
...
testsuite: ignore texthistory selection on delete/backspace
Closes #4575
See merge request GNOME/gtk!4287
2021-12-29 14:58:53 +00:00
Hofer-Julian
ac210c1765
docs: Add missing star to block comment
2021-12-29 15:46:59 +01:00
Hofer-Julian
c58e48e648
doc: Fix docs of window.minimize
2021-12-29 15:45:44 +01:00
Hofer-Julian
acdadab617
docs: Document built-in actions on GtkWindow
2021-12-29 15:45:43 +01:00
Matthias Clasen
aa19194f7b
Merge branch 'wip/exalm/inspector' into 'main'
...
inspector: Register extension on startup
See merge request GNOME/gtk!4296
2021-12-29 14:38:28 +00:00
Matthias Clasen
9319a6e39b
Merge branch 'matthiasc/for-main' into 'main'
...
tests: Make fontchooser test build on macOS
See merge request GNOME/gtk!4300
2021-12-29 14:34:26 +00:00
Matthias Clasen
b41206abab
tests: Make fontchooser test build on macOS
...
Not sure what changed here, but we want to
be able to build this without fontconfig too.
2021-12-29 09:15:26 -05:00
Matthias Clasen
07c3dc6b6f
Merge branch 'nullable' into 'main'
...
popover: Add missing nullable annotation
Closes #4556
See merge request GNOME/gtk!4295
2021-12-29 00:28:09 +00:00
Matthias Clasen
fa71a2a993
Merge branch 'wip/baedert/for-master' into 'main'
...
application demo: Resolve a keyboard shortcut conflict
See merge request GNOME/gtk!4290
2021-12-29 00:24:46 +00:00
Alexander Mikhaylenko
b997d1e892
inspector: Register extension on startup
2021-12-29 04:42:51 +05:00
Alexander Mikhaylenko
4b71fba540
Revert "inspector: Export gtk_inspector_init"
...
This reverts commit 3f5107cea5
.
2021-12-29 04:12:16 +05:00
Ian Douglas Scott
48d39c0a57
popover: Add missing nullable annotation
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4556 .
Looks like the other `Popover` methods are have correct nullable
annotations.
2021-12-28 09:43:06 -08:00
Hugo Carvalho
0aad053507
Update Portuguese translation
2021-12-27 22:53:20 +00:00
Matthias Clasen
6ed14b2a5f
Merge branch 'm-shinder-master-patch-90567' into 'main'
...
gdk_content_provider_get_value() argument should have 'out' direction
See merge request GNOME/gtk!4283
2021-12-27 15:08:48 +00:00
Matthias Clasen
c7df5ef957
Merge branch 'get-key-capture-widget-nullable' into 'main'
...
GtkSearchBar - Mark get_key_capture_widget() return value as nullable
See merge request GNOME/gtk!4286
2021-12-27 15:06:56 +00:00
Yuri Chornoivan
a9013febcf
Update Ukrainian translation
2021-12-27 14:08:03 +00:00
Benjamin Otte
815c430ba1
Merge branch 'wip/otte/for-main' into 'main'
...
inspector: Add dnd inspection support
See merge request GNOME/gtk!4289
2021-12-27 13:54:27 +00:00
Timm Bäder
e94d5bf006
applicationwindow: Don't pass for_size < -1 to measure()
...
If the application window is measured with for_size -1 horizontally,
this code clearly passes something lower to the parent class measure()
implementation. Only subtract the menubar_height if we're passed a
for_size > -1.
2021-12-27 12:15:02 +01:00
Timm Bäder
a00480f4a1
application demo: Resolve a keyboard shortcut conflict
...
There were two menu entries side-by-side with the same keyboard shortcut
2021-12-27 10:02:03 +01:00
Benjamin Otte
6da952100c
inspector: Add dnd inspection support
...
This has lots of issues:
* It randomly crashes when data is loading while the dnd goes away.
* The data gets randomly reset at the wrong time
* Can't scroll the window on Wayland
* ...
But it's better than nothing, so better get it committed.
2021-12-27 05:59:16 +01:00
Benjamin Otte
df8588e9b7
Merge branch 'wip/otte/for-main' into 'main'
...
widget: Don't queue an allocate on a nonexisting parent
See merge request GNOME/gtk!4288
2021-12-26 23:20:34 +00:00
Benjamin Otte
fce9b35e4d
css: Don't crash on invalid rotate3d()
2021-12-26 22:58:09 +01:00
m-shinder
6fd4421add
Merge branch 'main' into 'm-shinder-master-patch-90567'
...
# Conflicts:
# NEWS
2021-12-26 21:20:33 +00:00
Benjamin Otte
7149bfd100
widget: Don't queue an allocate on a nonexisting parent
...
No test, no idea how to trigger this reliably.
2021-12-26 22:17:54 +01:00
Christian Hergert
344ad0355e
textview: scroll insert onscreen after undo/redo
...
After performing an action such as undo/redo, we need to actually scroll
to the position where the operation occurred.
I do note that the scroll here seems to often get invalidated if it is
pages away, and we never make the full scroll. But I've seen this all over
the place elsewhere too and that needs to be handled, most likely, as a
more comprehensive fix for scrolling during line validation.
Related #4575
2021-12-26 12:56:42 -08:00
Christian Hergert
e7871fbc43
texthistory: always track selection bounds
...
It's cheap to store the selection position, so always set it even if we
are in a user section. Otherwise, we risk not having the right position
when starting a delete action within a begin_user_action(),
end_user_action() pair.
Related #4575
2021-12-26 12:47:45 -08:00
Christian Hergert
99d8dd751e
testsuite: add failing test for delete selection
...
This adds a test to expose the failure of #4575 which results in the
selection being incorrect when performing a delete as we are likely
already in a begin_user_action()/end_user_action() pair.
Related #4575
2021-12-26 12:46:16 -08:00
Christian Hergert
22b1abb36d
testsuite: ignore texthistory selection on delete/backspace
...
We don't need to apply these here, as it will clear the selection which is
needed for the undo. Otherwise we won't be able to test that we end up at
the right selection afterwards.
2021-12-26 12:43:22 -08:00
Sebastian Dröge
aa289d1023
GtkSearchBar - Mark get_key_capture_widget() return value as nullable
...
The setter allows setting NULL so this can clearly also return NULL
under normal circumstances.
Same for the corresponding API in GtkSearchEntry.
2021-12-26 11:06:34 +02:00
Emmanuele Bassi
ef51e02767
Merge branch 'ebassi/build-fixes' into 'main'
...
build: Replace source_root()
See merge request GNOME/gtk!4281
2021-12-25 17:26:06 +00:00
Benjamin Otte
7118127139
Merge branch 'wip/otte/gles' into 'main'
...
Fix GLES
Closes #4571
See merge request GNOME/gtk!4285
2021-12-25 15:34:01 +00:00
Benjamin Otte
2ce2afa036
gles: Be picky abpout glGetFramebufferAttachmentParameter()
...
This function does not at all work like in OpenGL - if it works at all.
So make it behave accordingly.
Fixes #4571
2021-12-25 15:07:44 +01:00
Benjamin Otte
5803dd765d
gles: glGetTexLevelParameter() isn't supported
2021-12-25 15:07:44 +01:00
Benjamin Otte
6a310b5069
gles: GLES 2 doesn't have glDrawBuffers()
...
So don't call it.
2021-12-25 15:07:44 +01:00
Benjamin Otte
2caab68be9
gl: Change gdk_gl_context_check_version()
...
Instead of just passing major/minor, pass them twice, once for GL and
once for GLES. This way, we don't need to check for GL and GLES
separately.
If something is supported unconditionally, passing 0/0 works fine.
That said, I'd like to group the arguments somehow, because otherwise
it's just a confusing list of numbers - but I have no idea how to do
that.
2021-12-25 15:07:44 +01:00
Benjamin Otte
4e2dbc1258
glcontext: Use different log levels for GL debug
...
We want critical GL debug messages to be critical, so that the testsuite
sudokus itself when they appear.
This is relevant in particular for GLES warnings in the GLES runner,
because its warnings can cause crashes on GL drivers less forgiving than
Mesa.
Related: #4571
2021-12-25 15:07:44 +01:00
Emmanuele Bassi
40eca1a68e
Apply 1 suggestion(s) to 1 file(s)
2021-12-25 13:29:07 +00:00
m-shinder
98f937ba15
Fix: Set direction for value
parameter
2021-12-25 10:04:43 +00:00
Emmanuele Bassi
a70988ecd5
build: Remove deprecated get_pkgconfig_variable()
...
Replace it with `get_variable(pkgconfig:...)`.
2021-12-24 15:55:26 +00:00
Emmanuele Bassi
6f2ff620bd
build: Replace deprecated 'gui_app'
...
Use `win_subsystem: 'windows'` instead.
2021-12-24 15:51:11 +00:00
Emmanuele Bassi
bd772610b1
build: Replace source_root()
...
Use project_source_root(), which replaces the deprecated source_root().
2021-12-24 15:48:06 +00:00
Matthias Clasen
de42b5bfae
sizerequest: Remove critical warning for now
...
At last as long as widgets like GtkFlowBox and
GtkGrid still trigger this, it is not a great
idea to have this warning in a stable release.
So remove it for 4.6
2021-12-23 16:59:26 -05:00
Benjamin Otte
fcdd5173bd
Merge branch 'wip/otte/for-main' into 'main'
...
gl: Clear current when destroying current's surface
Closes #4554
See merge request GNOME/gtk!4279
2021-12-22 19:45:53 +00:00