gtk4.git
3 years agoMerge branch 'check-half-float' into 'main'
Matthias Clasen [Fri, 6 May 2022 18:02:05 +0000 (18:02 +0000)]
Merge branch 'check-half-float' into 'main'

gdk: Check OES_vertex_half_float GLES extension

See merge request GNOME/gtk!4689

3 years agoMerge branch 'list-item-factory-notify-by-pspec' into 'main'
Benjamin Otte [Fri, 6 May 2022 16:11:21 +0000 (16:11 +0000)]
Merge branch 'list-item-factory-notify-by-pspec' into 'main'

list-item: Use notify_by_pspec instead of by name

See merge request GNOME/gtk!4697

3 years agoMerge branch 'builder-treestore-data' into 'main'
Matthias Clasen [Fri, 6 May 2022 15:22:41 +0000 (15:22 +0000)]
Merge branch 'builder-treestore-data' into 'main'

Add buildable data support to GtkTreeStore

See merge request GNOME/gtk!4695

3 years agogsk: Check for half float support
Matthias Clasen [Thu, 5 May 2022 17:09:26 +0000 (13:09 -0400)]
gsk: Check for half float support

The GL renderer currently relies on half float support
in vertex buffers, so check that we have it.

Related: #4894

3 years agolist-item: Use notify_by_pspec instead of by name
Ivan Molodetskikh [Fri, 6 May 2022 15:05:03 +0000 (18:05 +0300)]
list-item: Use notify_by_pspec instead of by name

This is a hot path when scrolling a ColumnView, and
g_param_spec_pool_lookup () was taking a measurable part in this hot
path. Instead, notify using pspecs to avoid the name lookup.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334

3 years agoMerge branch 'gdk-win32-rework-scroll-input-handling' into 'main'
Luca Bacci [Fri, 6 May 2022 14:58:32 +0000 (14:58 +0000)]
Merge branch 'gdk-win32-rework-scroll-input-handling' into 'main'

GdkWin32: Rework scroll input handling

See merge request GNOME/gtk!4633

3 years agoMerge branch 'list-item-factory-no-freeze-thaw' into 'main'
Benjamin Otte [Fri, 6 May 2022 14:52:21 +0000 (14:52 +0000)]
Merge branch 'list-item-factory-no-freeze-thaw' into 'main'

listitemfactory: Track notify manually instead of freeze/thaw

See merge request GNOME/gtk!4696

3 years agolistitemfactory: Track notify manually instead of freeze/thaw
Ivan Molodetskikh [Fri, 6 May 2022 14:21:00 +0000 (17:21 +0300)]
listitemfactory: Track notify manually instead of freeze/thaw

freeze/thaw_notify () showed up on the perf trace for rapid ColumnView
scrolling. Track the three properties manually to make it a little
faster.

Related: https://gitlab.gnome.org/GNOME/gtk/-/issues/3334

3 years agoMerge branch 'unclipped-screenshots' into 'main'
Matthias Clasen [Fri, 6 May 2022 13:49:14 +0000 (13:49 +0000)]
Merge branch 'unclipped-screenshots' into 'main'

builder-tool: Include shadows in screenshots

See merge request GNOME/gtk!4692

3 years agotestsuite: test new treestore builder functionality
Matthias Clasen [Fri, 6 May 2022 13:09:33 +0000 (09:09 -0400)]
testsuite: test new treestore builder functionality

Verify that we can nest rows.

3 years agotreestore: support nested data in builder
Matthias Clasen [Fri, 6 May 2022 13:10:29 +0000 (09:10 -0400)]
treestore: support nested data in builder

This allows <row> elements to be nested.
Note that the child rows must come after
the data for the row itself.

3 years agobuilder: Allow checking for multiple parents
Matthias Clasen [Fri, 6 May 2022 13:23:31 +0000 (09:23 -0400)]
builder: Allow checking for multiple parents

3 years agotestsuite: Copy liststore builer tests for trees
Matthias Clasen [Fri, 6 May 2022 13:01:25 +0000 (09:01 -0400)]
testsuite: Copy liststore builer tests for trees

This adds tests for data, but not nesting yet.

3 years agotreestore: Copy liststore buildable implementation
Matthias Clasen [Fri, 6 May 2022 11:48:28 +0000 (07:48 -0400)]
treestore: Copy liststore buildable implementation

This add support for data, but does not allow
nesting yet.

3 years agotreestore: Cosmetics
Matthias Clasen [Fri, 6 May 2022 11:31:29 +0000 (07:31 -0400)]
treestore: Cosmetics

Some renaming in the buildable code to make it more
similar to the liststore implementation.

3 years agoMerge branch 'otte-main-patch-11831' into 'main'
Benjamin Otte [Fri, 6 May 2022 13:03:47 +0000 (13:03 +0000)]
Merge branch 'otte-main-patch-11831' into 'main'

Don't invalidate parent if it didn't change

See merge request GNOME/gtk!4693

3 years agoGdkWin32: Send smooth scroll events
Luca Bacci [Tue, 12 Apr 2022 09:00:03 +0000 (11:00 +0200)]
GdkWin32: Send smooth scroll events

Bring back smooth scroll events as the issues mentioned
in [1] do not occur anymore. Also rework code style and
comments.

References:

  [1] GTK4: Scrolling hides mouse on windows
      https://gitlab.gnome.org/GNOME/gtk/-/issues/3581

  [2] Why are mouse wheel messages delivered to the focus window
      instead of the window under the mouse?
      https://devblogs.microsoft.com/oldnewthing/20160420-00/?p=93325

3 years agoDon't invalidate parent if it didn't change
Benjamin Otte [Fri, 6 May 2022 11:50:55 +0000 (11:50 +0000)]
Don't invalidate parent if it didn't change

This looks like a leftover excess invalidation from when the surrounding
code was refactored to not just be called on parent changes but also
when repositioning inside the same parent in commit
507016cafc407b2c47aea3fd1483df75e9757f29

Ivan Molodetskikh found this problem in
https://gitlab.gnome.org/GNOME/gtk/-/issues/3334#note_1445873 which
contains a longer analysis of this problem and the performance
reductions it causes.

Related: #3334

3 years agoMerge branch 'editable-label-fixes' into 'main'
Matthias Clasen [Thu, 5 May 2022 23:38:23 +0000 (23:38 +0000)]
Merge branch 'editable-label-fixes' into 'main'

theme: Fix editable label selection

See merge request GNOME/gtk!4690

3 years agobuilder-tool: Include shadows in screenshots
Matthias Clasen [Thu, 5 May 2022 21:16:40 +0000 (17:16 -0400)]
builder-tool: Include shadows in screenshots

Remove the clipping to the widget area that
GtkWidgetPaintable imposes, so we can see shadows
and other out-of-bounds rendering. This is particularly
useful for toplevel windows with client-side decorations.

3 years agoeditablelabel: Make :editing writable
Matthias Clasen [Thu, 5 May 2022 16:43:23 +0000 (12:43 -0400)]
editablelabel: Make :editing writable

This does not hurt, and lets us start editing from
a ui file, which is useful for documentation screenshots.

3 years agogdk: Check OES_vertex_half_float GLES extension
Matthias Clasen [Thu, 5 May 2022 17:08:32 +0000 (13:08 -0400)]
gdk: Check OES_vertex_half_float GLES extension

This will be checked in the GL renderer.

3 years agotheme: Fix editable label selection
Matthias Clasen [Thu, 5 May 2022 16:31:51 +0000 (12:31 -0400)]
theme: Fix editable label selection

When the editable label is in editing mode,
selections should appear the same as in other
entries.

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Wed, 4 May 2022 12:28:32 +0000 (12:28 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

docs: Fix a spinbutton example

See merge request GNOME/gtk!4686

3 years agodocs: Fix a spinbutton example
Matthias Clasen [Wed, 4 May 2022 11:41:48 +0000 (07:41 -0400)]
docs: Fix a spinbutton example

We need to use editable api for editable functionality.

3 years agoMerge branch 'checkbutton-label' into 'main'
Benjamin Otte [Tue, 3 May 2022 22:05:47 +0000 (22:05 +0000)]
Merge branch 'checkbutton-label' into 'main'

Expose GtkCheckButton label child for manipulation

Closes #4698

See merge request GNOME/gtk!4489

3 years agoMerge branch 'wrap-mode-invalid-cast' into 'main'
Matthias Clasen [Tue, 3 May 2022 17:46:51 +0000 (17:46 +0000)]
Merge branch 'wrap-mode-invalid-cast' into 'main'

Don't cast GtkWrapMode to the incompatible enum PangoWrapMode

Closes #4869

See merge request GNOME/gtk!4671

3 years agoMerge branch 'wip/exalm/eye-icons' into 'main'
Matthias Clasen [Tue, 3 May 2022 17:37:54 +0000 (17:37 +0000)]
Merge branch 'wip/exalm/eye-icons' into 'main'

icons: Use the proper eye icons

See merge request GNOME/gtk!4663

3 years agoMerge branch 'wip/carlosg/ignore-null-preedit' into 'main'
Matthias Clasen [Tue, 3 May 2022 17:37:36 +0000 (17:37 +0000)]
Merge branch 'wip/carlosg/ignore-null-preedit' into 'main'

imcontextwayland: Ignore preedit updates from NULL to NULL

See merge request GNOME/gtk!4667

3 years agoMerge branch 'ebassi/issue-4883' into 'main'
Matthias Clasen [Tue, 3 May 2022 16:37:27 +0000 (16:37 +0000)]
Merge branch 'ebassi/issue-4883' into 'main'

Keep FileChooserNative alive while a portal is running

Closes #4883

See merge request GNOME/gtk!4675

3 years agoExpose GtkCheckButton label as a child for manipulation
Pablo Correa Gómez [Fri, 25 Mar 2022 13:34:04 +0000 (14:34 +0100)]
Expose GtkCheckButton label as a child for manipulation

This allows consumers greater control over the label without the need
to expose each of the label properties as part of GtkCheckButton interface.
Specifically, motivation for this commit is to be able to wrap the label.

Closes #4698

3 years agoMerge branch 'wip/another-randr-error-trap-4' into 'main'
Matthias Clasen [Tue, 3 May 2022 00:44:05 +0000 (00:44 +0000)]
Merge branch 'wip/another-randr-error-trap-4' into 'main'

x11: Trap errors happening when getting output properties

See merge request GNOME/gtk!4681

3 years agoMerge branch 'fix-introspection-tests-win' into 'main'
Luca Bacci [Mon, 2 May 2022 19:00:38 +0000 (19:00 +0000)]
Merge branch 'fix-introspection-tests-win' into 'main'

testsuite: Fix introspection test on Windows

See merge request GNOME/gtk!4664

3 years agoMerge branch 'fix-list-model-checks-null-vs-empty' into 'main'
Luca Bacci [Mon, 2 May 2022 18:53:27 +0000 (18:53 +0000)]
Merge branch 'fix-list-model-checks-null-vs-empty' into 'main'

GtkFileChooserWidget: fixes for NULL vs empty GListModel

Closes #4851 and #4858

See merge request GNOME/gtk!4678

3 years agox11: Trap errors happening when getting output properties
Jonas Ådahl [Mon, 2 May 2022 15:28:36 +0000 (17:28 +0200)]
x11: Trap errors happening when getting output properties

This is to avoid getting X11 errors (thus aborting/exiting with a
failure) during rapid hotplugs, which may happen during e.g. CI testing.

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 2 May 2022 09:14:32 +0000 (09:14 +0000)]
Update Ukrainian translation

3 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 2 May 2022 09:11:07 +0000 (09:11 +0000)]
Update Ukrainian translation

3 years agoMerge branch 'fix-large-compose-file' into 'main'
Matthias Clasen [Mon, 2 May 2022 08:26:38 +0000 (08:26 +0000)]
Merge branch 'fix-large-compose-file' into 'main'

composetable: Add a missing NULL check

Closes #4873

See merge request GNOME/gtk!4679

3 years agoReject compose tables that are too large
Matthias Clasen [Mon, 2 May 2022 08:03:45 +0000 (16:03 +0800)]
Reject compose tables that are too large

The fixed-size format we use currently can only handle up
to 32768 bytes of string data. If a compose file contains
more, reject it with a warning.

Fixes: #4873
3 years agocomposetable: Add a missing NULL check
Matthias Clasen [Mon, 2 May 2022 07:39:03 +0000 (15:39 +0800)]
composetable: Add a missing NULL check

gtk_compose_table_parse can return NULL. Handle it.

3 years agoGtkFileChooserWidget: return empty GListModel in get_files () instead of NULL
Luca Bacci [Sun, 1 May 2022 14:41:10 +0000 (16:41 +0200)]
GtkFileChooserWidget: return empty GListModel in get_files () instead of NULL

3 years agoGtkFileChooserWidget: check for empty instead of NULL GListModel
Luca Bacci [Sun, 1 May 2022 14:31:47 +0000 (16:31 +0200)]
GtkFileChooserWidget: check for empty instead of NULL GListModel

While porting GtkFileChooserWidget from GList to GListModel we did not
change some checks for NULL to checks for empty list.

Fixes #4851, #4858

3 years agoKeep FileChooserNative alive while a portal is running
Emmanuele Bassi [Fri, 29 Apr 2022 14:18:02 +0000 (15:18 +0100)]
Keep FileChooserNative alive while a portal is running

Even if the FileChooserNative instance drops out on us while we're still
waiting for the portal to answer, we should keep the data and pointers
alive until the sequence of asynchronous operations is running. The code
already tries to do that, by acquiring a strong reference to the
GtkFileChooserNative instance, but it's also freeing data as soon as the
dialog is hidden, while asynchronous callbacks that will look at the
fields on that data are still in flight.

To avoid that, we defer freeing the data until the asynchronous
callbacks are invoked, and we keep a reference on the dialog while we're
emitting signals on it.

Fixes: #4883
3 years agoMake the wrap_mode test unix-only
Federico Mena Quintero [Thu, 28 Apr 2022 14:46:20 +0000 (09:46 -0500)]
Make the wrap_mode test unix-only

The relevant accessibility code is not built on Windows.

3 years agoMerge branch 'wip/sophie-h/fix-4020' into 'main'
Emmanuele Bassi [Wed, 27 Apr 2022 13:46:14 +0000 (13:46 +0000)]
Merge branch 'wip/sophie-h/fix-4020' into 'main'

filechooser: Small fix for select folder mode

Closes #4020

See merge request GNOME/gtk!4650

3 years agotextbuffer: Test the serialization of the wrap-mode attribute
Federico Mena Quintero [Tue, 26 Apr 2022 19:41:34 +0000 (14:41 -0500)]
textbuffer: Test the serialization of the wrap-mode attribute

3 years agoPut the text buffer tests in the internal_tests suite
Federico Mena Quintero [Tue, 26 Apr 2022 19:01:08 +0000 (14:01 -0500)]
Put the text buffer tests in the internal_tests suite

We'll start testing the internal gtk_text_buffer_get_run_attributes()
soon.

3 years agoMerge branch 'wip/otte/for-main' into 'main'
Benjamin Otte [Tue, 26 Apr 2022 18:58:08 +0000 (18:58 +0000)]
Merge branch 'wip/otte/for-main' into 'main'

roaring: Remove extra careful code

Closes #4252 and #4517

See merge request GNOME/gtk!4669

3 years agoDon't cast GtkWrapMode to the incompatible enum PangoWrapMode
Federico Mena Quintero [Tue, 26 Apr 2022 18:43:19 +0000 (13:43 -0500)]
Don't cast GtkWrapMode to the incompatible enum PangoWrapMode

The enum values are not compatible, and moreover, there is an extra
GTK_WRAP_NONE that PangoWrapMode doesn't have - thus,
pango_wrap_mode_to_string() will assert.

As far as I can tell, Orca does not read the wrap-mode key in the
dictionary for text attributes, anyway.

Fixes: #4869
3 years agoboxlayout: Do not infloop
Benjamin Otte [Tue, 26 Apr 2022 17:51:16 +0000 (19:51 +0200)]
boxlayout: Do not infloop

if the loop for determining max width grows too big, print an error and
abort assuming that a satisfactory value was reached.

This will cause wrong layout and might cause widgets to overlap, but it
will not infloop.

It actually works around and doesn't really fix the primary cause of the
following bugs, but good enough to close them:

Fixes: #4252
Fixes: #4517
3 years agoffmpeg: Hey, this variable is const now!
Benjamin Otte [Tue, 26 Apr 2022 17:39:20 +0000 (19:39 +0200)]
ffmpeg: Hey, this variable is const now!

3 years agoroaring: Remove extra careful code
Benjamin Otte [Tue, 26 Apr 2022 17:38:36 +0000 (19:38 +0200)]
roaring: Remove extra careful code

because gcc knows it's too careful

3 years agoMerge branch 'annotation-fix' into 'main'
Emmanuele Bassi [Tue, 26 Apr 2022 13:08:00 +0000 (13:08 +0000)]
Merge branch 'annotation-fix' into 'main'

gtk/popovermenu: Fix transfer annotation of new_from_model_full()

See merge request GNOME/gtk!4668

3 years agogtk/popovermenu: Fix transfer annotation of new_from_model_full()
Florian Müllner [Tue, 26 Apr 2022 12:25:15 +0000 (14:25 +0200)]
gtk/popovermenu: Fix transfer annotation of new_from_model_full()

The function doesn't return a full reference, but a floating widget
like comparable constructor functions.

3 years agoimcontextwayland: Ignore preedit updates from NULL to NULL
Carlos Garnacho [Tue, 26 Apr 2022 10:23:09 +0000 (12:23 +0200)]
imcontextwayland: Ignore preedit updates from NULL to NULL

If we get consecutive preedit string updates that announce a NULL
string, we still do end up issuing ::preedit-changed with those.
Ignore changes from NULL to NULL, it is the other combinations which
must issue this signal.

3 years agoIntrospection test: Reverse os.add_dll_directory() order
Chun-wei Fan [Tue, 26 Apr 2022 03:19:16 +0000 (11:19 +0800)]
Introspection test: Reverse os.add_dll_directory() order

It looks like os.add_dll_directory() works in a LIFO order, so we call
os.add_dll_directory() from the end of the list of directories in %PATH%
so that the directories are searched in the correct order.

3 years agotestsuite: Fix introspection test on Windows
Chun-wei Fan [Mon, 25 Apr 2022 07:28:44 +0000 (15:28 +0800)]
testsuite: Fix introspection test on Windows

...when we are using Python 3.8.x or later.  Python 3.8.x or later on Windows
require one to call os.add_dll_directory() on every directory that contains
dependent non-system DLLs of a module that are not bundled/installed with the
module.

Since we are very likely running programs that rely on dependent items in
%PATH%, make things easier for people by calling os.add_dll_directory() on
all the valid paths in %PATH% in api.py, so that the test will run
successfully on Windows with Python 3.8.x or later.

3 years agoUpdate Georgian translation
Zurab Kargareteli [Sat, 23 Apr 2022 17:05:50 +0000 (17:05 +0000)]
Update Georgian translation

3 years agoicons: Use the proper eye icons
Alexander Mikhaylenko [Fri, 22 Apr 2022 12:21:02 +0000 (16:21 +0400)]
icons: Use the proper eye icons

adwaita-icon-theme has more appropriate icons for showing/hiding text now.
use those, and in the process fix the fact GtkPasswordEntry has been using
them the other way around.

3 years agoUpdate Brazilian Portuguese translation
Rafael Fontenelle [Thu, 21 Apr 2022 01:34:01 +0000 (01:34 +0000)]
Update Brazilian Portuguese translation

3 years agoMerge branch 'vertical-spin-selection-fix' into 'main'
Matthias Clasen [Wed, 20 Apr 2022 03:35:44 +0000 (03:35 +0000)]
Merge branch 'vertical-spin-selection-fix' into 'main'

theme: Fix vertical spin button selection

Closes #4788

See merge request GNOME/gtk!4659

3 years agotheme: Fix vertical spin button selection
Matthias Clasen [Wed, 20 Apr 2022 03:14:37 +0000 (23:14 -0400)]
theme: Fix vertical spin button selection

The selection should be black-on-blue as it is
everywhere else now. This was just a leftover.

Fixes: #4788
3 years agoMerge branch 'ebassi/issue-4825' into 'main'
Emmanuele Bassi [Tue, 19 Apr 2022 21:04:25 +0000 (21:04 +0000)]
Merge branch 'ebassi/issue-4825' into 'main'

Fix crash when running GTK4 apps under Orca

Closes #4825

See merge request GNOME/gtk!4657

3 years agoa11y: Defer object registration after root registration
Emmanuele Bassi [Tue, 19 Apr 2022 15:12:08 +0000 (16:12 +0100)]
a11y: Defer object registration after root registration

The root accessible object is registered asynchronously, as it needs to
call a method on the AT-SPI registry daemon. This means we need to defer
registering the GtkAtSpiContext on the accessibility bus and in the
cache until after the registration is complete.

Fixes: #4825
3 years agoQuench the anger of GCC
Emmanuele Bassi [Tue, 19 Apr 2022 14:33:21 +0000 (15:33 +0100)]
Quench the anger of GCC

Direct access of the fields of the union trips compiler warnings with
GCC 12, such as:

  ../gtk/gtkimagedefinition.c:135:13: error: array subscript
  ‘GtkImageDefinition {aka union _GtkImageDefinition}[0]’ is partly
  outside array bounds of ‘GtkImageDefinitionEmpty[1]’ {aka
  ‘struct _GtkImageDefinitionEmpty[1]’} [-Werror=array-bounds]

3 years agoMerge branch 'file-filter-fix' into 'main'
Matthias Clasen [Tue, 19 Apr 2022 03:51:16 +0000 (03:51 +0000)]
Merge branch 'file-filter-fix' into 'main'

Fix file filter buildable support

Closes #4787

See merge request GNOME/gtk!4652

3 years agoFix file filter buildable support
Matthias Clasen [Tue, 19 Apr 2022 03:03:15 +0000 (23:03 -0400)]
Fix file filter buildable support

File filters creates from ui files had some
extraneous gunk in them. Fix that. Test included.

Fixes: #4787
3 years agofilechooser: Small fix for select folder mode
Sophie Herold [Mon, 18 Apr 2022 22:55:05 +0000 (00:55 +0200)]
filechooser: Small fix for select folder mode

When changing folders, we were making the select
button insensitive when there is no folder selected.
However, the select button should be usable to
select the current folder.

Fixes #4020

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Mon, 18 Apr 2022 15:36:45 +0000 (15:36 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

gtk-builder-tool: Error out if screenshooting fails

See merge request GNOME/gtk!4649

3 years agogtk-builder-tool: Error out if screenshooting fails
Matthias Clasen [Mon, 18 Apr 2022 15:16:05 +0000 (11:16 -0400)]
gtk-builder-tool: Error out if screenshooting fails

If we don't produce a texture for whatever reason,
apologize and fail.

3 years agoMerge branch 'badcel/fix-typo' into 'main'
Timm Bäder [Mon, 18 Apr 2022 09:27:05 +0000 (09:27 +0000)]
Merge branch 'badcel/fix-typo' into 'main'

docs: Fix typo in description of GtkExpression

See merge request GNOME/gtk!4647

3 years agodocs: Fix typo in description of GtkExpression
Marcel Tiede [Mon, 18 Apr 2022 06:20:19 +0000 (06:20 +0000)]
docs: Fix typo in description of GtkExpression

3 years agoMerge branch 'screenshot-command' into 'main'
Matthias Clasen [Sun, 17 Apr 2022 17:40:46 +0000 (17:40 +0000)]
Merge branch 'screenshot-command' into 'main'

gtk-builder-tool: Add a screenshot command

See merge request GNOME/gtk!4645

3 years agogtk-builder-tool: Add a screenshot command
Matthias Clasen [Sun, 17 Apr 2022 04:26:25 +0000 (00:26 -0400)]
gtk-builder-tool: Add a screenshot command

This is an obvious variation of the preview
command. It can save a .ui file as either
.png or .node.

3 years agogtk-builder-tool: Reshuffle --help
Matthias Clasen [Sun, 17 Apr 2022 15:59:06 +0000 (11:59 -0400)]
gtk-builder-tool: Reshuffle --help

Use GOptionContext better.

3 years agoMerge branch 'wip/exalm/scrolled-window' into 'main'
Matthias Clasen [Sun, 17 Apr 2022 16:07:59 +0000 (16:07 +0000)]
Merge branch 'wip/exalm/scrolled-window' into 'main'

scrolledwindow: Pick up gtk-overlay-scrolling changes on the fly

See merge request GNOME/gtk!4642

3 years agogtk-builder-tool: Small reshuffle
Matthias Clasen [Sun, 17 Apr 2022 15:19:07 +0000 (11:19 -0400)]
gtk-builder-tool: Small reshuffle

Move the display check into the preview command.

3 years agoMerge branch 'filechooser-entry-popup' into 'main'
Matthias Clasen [Sun, 17 Apr 2022 03:51:32 +0000 (03:51 +0000)]
Merge branch 'filechooser-entry-popup' into 'main'

filechooser: Prevent random completion popups

See merge request GNOME/gtk!4643

3 years agoMerge branch 'filechooser-save-sensitive' into 'main'
Matthias Clasen [Sun, 17 Apr 2022 03:31:39 +0000 (03:31 +0000)]
Merge branch 'filechooser-save-sensitive' into 'main'

filechooser: Small fix for save mode

Closes #4851

See merge request GNOME/gtk!4644

3 years agofilechooser: Prevent random completion popups
Matthias Clasen [Sun, 17 Apr 2022 03:29:04 +0000 (23:29 -0400)]
filechooser: Prevent random completion popups

It is very irritating when the entry completion popup
appears not in response to user input in the entry.
In particular, when that happens right as the dialog
is shown.

To prevent that, temporarily disable completion
when setting the entry text programmatically.

3 years agofilechooser: Small fix for save mode
Matthias Clasen [Sun, 17 Apr 2022 02:00:22 +0000 (22:00 -0400)]
filechooser: Small fix for save mode

When changing folders, we were making the select
button insensitive when there's no files around.
That doesn't make sense in save mode when we don't
want to select a file but create one.

Fixes: #4851
3 years agoscrolledwindow: Pick up gtk-overlay-scrolling changes on the fly
Alexander Mikhaylenko [Sat, 16 Apr 2022 12:56:17 +0000 (16:56 +0400)]
scrolledwindow: Pick up gtk-overlay-scrolling changes on the fly

3 years agoscrolledwindow: Fix :kinetic-scrolling setter
Alexander Mikhaylenko [Sat, 16 Apr 2022 12:30:07 +0000 (16:30 +0400)]
scrolledwindow: Fix :kinetic-scrolling setter

3 years agoMerge branch 'wip/exalm/tooltip' into 'main'
Matthias Clasen [Sat, 16 Apr 2022 00:07:21 +0000 (00:07 +0000)]
Merge branch 'wip/exalm/tooltip' into 'main'

tooltipwindow: Don't restrict minimum tooltip label length

Closes #3741

See merge request GNOME/gtk!4640

3 years agotooltipwindow: Don't restrict minimum tooltip label length
Alexander Mikhaylenko [Fri, 15 Apr 2022 23:48:21 +0000 (03:48 +0400)]
tooltipwindow: Don't restrict minimum tooltip label length

We only care about wrapping at that length, we still want short tooltips
for short labels.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3741

3 years agotooltipwindow: Remove a duplicate gtk_widget_class_set_css_name() call
Alexander Mikhaylenko [Fri, 15 Apr 2022 23:28:22 +0000 (03:28 +0400)]
tooltipwindow: Remove a duplicate gtk_widget_class_set_css_name() call

3 years agoMerge branch 'ebassi/for-main' into 'main'
Matthias Clasen [Fri, 15 Apr 2022 00:09:42 +0000 (00:09 +0000)]
Merge branch 'ebassi/for-main' into 'main'

docs: Fix the GtkPaned style

See merge request GNOME/gtk!4637

3 years agoMark nullable arguments in GtkPaned
Emmanuele Bassi [Thu, 14 Apr 2022 21:44:17 +0000 (22:44 +0100)]
Mark nullable arguments in GtkPaned

The set_start_child() and set_end_child() methods take NULL for the
child argument, as a way to remove the child from the paned widget.

3 years agodocs: Fix the GtkPaned style
Emmanuele Bassi [Thu, 14 Apr 2022 21:43:40 +0000 (22:43 +0100)]
docs: Fix the GtkPaned style

Use proper links to properties and methods, and drop gtk-doc'isms.

3 years agoMerge branch 'fix_tooltip' into 'main'
Matthias Clasen [Thu, 14 Apr 2022 18:00:43 +0000 (18:00 +0000)]
Merge branch 'fix_tooltip' into 'main'

label: Maintain value for `has-tooltip` for labels with links

See merge request GNOME/gtk!4635

3 years agoMerge branch 'fix_link_tabs' into 'main'
Matthias Clasen [Thu, 14 Apr 2022 11:36:19 +0000 (11:36 +0000)]
Merge branch 'fix_link_tabs' into 'main'

label: Move focus out of widget after last link

Closes #4681

See merge request GNOME/gtk!4636

3 years agolabel: Move focus out of widget after last link
Julian Sparber [Thu, 14 Apr 2022 10:14:17 +0000 (12:14 +0200)]
label: Move focus out of widget after last link

This allows the user to navigate via tab the links in a label and exits
the widget after the last link, when moving forward, and first link,
when moving backward.

This also ensures that ellipsised links arn't focused.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4681
3 years agolabel: Maintain value for `has-tooltip` for labels with links
Julian Sparber [Wed, 13 Apr 2022 16:56:29 +0000 (18:56 +0200)]
label: Maintain value for `has-tooltip` for labels with links

The `has-tooltip` property gets set to `false` for label with links if no
link is selected. This makes sure to only change the property to `true`
but never to `false`.

3 years agoMerge branch 'clarify-scrollable-docs' into 'main'
Benjamin Otte [Tue, 12 Apr 2022 23:48:55 +0000 (23:48 +0000)]
Merge branch 'clarify-scrollable-docs' into 'main'

scrollable: Clarify when to set adjustment props

See merge request GNOME/gtk!4632

3 years agoscrollable: Clarify when to set adjustment props
Ivan Molodetskikh [Mon, 11 Apr 2022 07:31:52 +0000 (10:31 +0300)]
scrollable: Clarify when to set adjustment props

Instead of populating the properties right away (when the widget might
not have been allocated yet, and hence cannot know the right values),
the widget should queue an allocation, where it will populate the
values.

3 years agoMerge branch 'gles-win32' into 'main'
Benjamin Otte [Fri, 8 Apr 2022 22:00:33 +0000 (22:00 +0000)]
Merge branch 'gles-win32' into 'main'

Inspector: Fix running on Windows with GLES (was: fix running GL demos with GLES on Windows)

See merge request GNOME/gtk!4595

3 years agoMerge branch 'matthiasc/for-main' into 'main'
Matthias Clasen [Fri, 8 Apr 2022 16:14:43 +0000 (16:14 +0000)]
Merge branch 'matthiasc/for-main' into 'main'

gsk/gl: Typo fix

See merge request GNOME/gtk!4628

3 years agogsk/gl: Typo fix
Matthias Clasen [Fri, 8 Apr 2022 15:18:15 +0000 (11:18 -0400)]
gsk/gl: Typo fix

3 years agoMerge branch 'gdk-win32-fix-mouse-move-crossing-events' into 'main'
Luca Bacci [Fri, 8 Apr 2022 08:31:14 +0000 (08:31 +0000)]
Merge branch 'gdk-win32-fix-mouse-move-crossing-events' into 'main'

GdkWin32: Mouse events fixes

Closes #4722 and #4813

See merge request GNOME/gtk!4620

3 years agoMerge branch 'nonoverlapping-containers' into 'main'
Matthias Clasen [Thu, 7 Apr 2022 14:32:53 +0000 (14:32 +0000)]
Merge branch 'nonoverlapping-containers' into 'main'

gsk/gl: Avoid offscreening in more cases

See merge request GNOME/gtk!4619