Matthias Clasen
d3e6e303fc
Merge branch 'GtkCellLayoutWordingImprovement' into 'master'
...
Added information, that "attributes" refer to CellRenderer "properties".
See merge request GNOME/gtk!3602
2021-06-04 02:21:33 +00:00
DarkTrick
a0c23b1c3d
Added information, that "attributes" refer to CellRenderer "properties".
2021-06-04 02:21:31 +00:00
Matthias Clasen
6a509608f9
applicationwindow: Allocate tooltips
...
GtkApplicationWindows size_allocate does not chain
up if the menubar is visible; don't forget to allocate
the tooltip window in that case.
Fixes : #3997
2021-06-03 21:43:13 -04:00
Matthias Clasen
3ab97fac1f
Cosmetics: Eradicate gdouble
...
Remove 3 errant uses of gdouble.
2021-06-03 17:41:28 -04:00
Matthias Clasen
e8852c9a25
Merge branch 'primary-menu-button' into 'master'
...
menubutton: Enable F10 for primary menus
See merge request GNOME/gtk!3580
2021-06-03 19:37:23 +00:00
Emmanuele Bassi
a88b4f517e
docs: Fix link to the interactive debugging section
...
It's in the "running" document.
2021-06-03 09:31:13 +01:00
Matthias Clasen
a1789ee2b8
Merge branch 'wip/chergert/fix-use-after-free-switcher' into 'master'
...
stackswitcher: clear timer when widget id disposed
See merge request GNOME/gtk!3621
2021-06-02 20:21:57 +00:00
Matthias Clasen
ffb7df2cc4
Merge branch 'macos-menubar' into 'master'
...
macos: fix weird menubar rendering.
Closes #3967
See merge request GNOME/gtk!3607
2021-06-02 20:13:16 +00:00
Christian Hergert
c2ca246aee
stackswitcher: clear timer when widget id disposed
...
If the widget is disposed while the cursor has a drag timeout queued, it
can activate after finalization.
2021-06-02 10:20:32 -07:00
Matthias Clasen
7307c6fdfb
Merge branch 'entry-docs-typo' into 'master'
...
entry: Fix a typo in the docs
See merge request GNOME/gtk!3619
2021-06-02 11:15:10 +00:00
Matthias Clasen
039fc2e567
entry: Fix a typo in the docs
2021-06-02 06:47:27 -04:00
Matthias Clasen
1dcf9d5c95
Merge branch 'wip/exalm/treeview-click' into 'master'
...
treeview: Don't handle clicks on any child widgets
Closes #3996
See merge request GNOME/gtk!3618
2021-06-02 10:33:50 +00:00
Alexander Mikhaylenko
80497debbb
treeview: Don't handle clicks on any child widgets
...
We already skip them on the edited cell widget, but it's also a problem for
header buttons. Overall, there's no real reason to let it propagate here.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3996
2021-06-02 13:49:11 +05:00
Matthias Clasen
bffc6c5b9a
spinbutton: Avoid redundant storage
...
GtkBoxLayout stores the orientation; no need for
GtkSpinButton to duplicate that.
2021-06-01 17:37:07 -04:00
Matthias Clasen
95747b1a40
progressbar: Avoid redundant storage
...
GtkBoxLayout stores the orientation; no need for
GtkProgressBar to duplicate that.
2021-06-01 17:37:01 -04:00
Christian Hergert
c848a51395
stackswitcher: implement GtkOrientable
...
In GTK 3, GtkStackSwitcher implemented GtkOrientable via the parent GtkBox
type. In GTK 4, that was changed to inherit from GtkWidget and lost this
interface implementation.
This adds that back, along with a note in the documentation that the
interface was added in GTK 4.4.
Fixes #3988
2021-06-01 10:57:27 -07:00
Caolán McNamara
9c79b8b877
invalid cast from 'GtkButton' to 'GtkBox'
...
on adding a page to a GtkNotebook
(soffice): Gtk-CRITICAL **: gtk_box_remove: assertion 'GTK_IS_BOX (box)' failed
2021-06-01 14:56:53 +01:00
Matthias Clasen
c137f4017f
Merge branch 'screensaver-async-4' into 'master'
...
gtkapplication-dbus: Fetch inital screen saver state async
See merge request GNOME/gtk!3599
2021-06-01 11:14:38 +00:00
liferooter
44f07f7708
texthistory: fix has_actionable function
2021-06-01 11:04:55 +00:00
Matthias Clasen
d1a7a55d7e
box: Avoid redundant storage
...
GtkBoxLayout stores the orientation; no need for
GtkBox to duplicate that.
2021-05-31 18:38:52 -04:00
Zhi
75868dfee4
macos: fix weird menubar rendering.
...
As app menu has been deprecated, the function of app menu should be
merged into the menubar, which behaves like the original API of NSApp.
This also brings back the default app menu, which looks like native
macOS apps.
For future refactoring, please note that the menubar must contain at
least one menu before being set to NSApp to avoid weird menubar
rendering.
Fixes #3967 .
2021-05-30 21:59:57 +08:00
Matthias Clasen
9f93883dc9
text: Propagate xalign to the placeholder
...
This is what we were doing in GTK 3, and there's
no reason not to continue.
Fixes : #3979
2021-05-27 06:57:23 -04:00
Bilal Elmoussaoui
90a829f25a
docs: fix gtk grid formatting
2021-05-27 09:58:42 +00:00
Bilal Elmoussaoui
8ebdd256a5
docs: fix broken links
2021-05-27 00:18:23 +00:00
Matthias Clasen
ffbfafb189
textbuffer: Add some docs for undo
...
Mention what is undoable and what isn't.
2021-05-26 14:36:16 -04:00
Matthias Clasen
994a38c7ad
textbuffer: Improve the docs
...
Add getter/setter annotations.
2021-05-26 14:36:16 -04:00
Christian Hergert
6179886b14
textbuffer: ensure user actions are propagated to history
...
This was an oversight when porting the GtkTextHistory into GTK. We simply
need to bind the GtkTextBuffer action into the text history for grouping
to work correctly.
Fixes #3977
2021-05-26 10:11:33 -07:00
Guido Günther
3aa34c1211
gtkapplication-dbus: Fetch inital screen saver state async
...
Avoid a sync call that can make the application block for no good
reason.
Fixes 6bfe171058
2021-05-26 18:47:38 +02:00
Matthias Clasen
8f4b0cd30d
picture: Make setters actually take NULL
...
gtk_picture_set_file was claiming to be nullable,
but choked on NULL.
Fixes : #3974
2021-05-26 07:30:57 -04:00
Bilal Elmoussaoui
23ea33b656
gtk: drop unwanted char on Switch::state-set docs link
2021-05-25 20:29:46 +00:00
Matthias Clasen
ee80a22db4
Merge branch 'wip/exalm/checks' into 'master'
...
checkbutton: Sync the indicator state with the widget
See merge request GNOME/gtk!3568
2021-05-25 20:29:06 +00:00
Matthias Clasen
d32c343657
Merge branch 'fix.vs2013.link' into 'master'
...
gtk/meson.build: Fix linking on Visual Studio 2013
See merge request GNOME/gtk!3575
2021-05-25 20:27:54 +00:00
Emmanuele Bassi
e13da35d4d
Turn introspection scanner warnings into errors
...
We want to catch errors in our annotations or our API.
2021-05-25 19:16:37 +01:00
Emmanuele Bassi
f50450485c
docs: Add missing documentation on Windows
...
The gtk_print_run_page_setup_dialog() function, and its asynchronous
variant, are declared in the common gtkprintoperation.h header, but
implemented in different source files depending on the platform.
2021-05-25 19:16:37 +01:00
Matthias Clasen
8c441756df
imcontext: Ignore NoSymbol key events
...
These can happen with some XKB options.
Fixes : #3973
2021-05-25 13:20:12 -04:00
Emmanuele Bassi
7da2e86d4b
docs: Fix the PANGO_SCALE link
...
The fragment for constants is `const`.
2021-05-25 13:31:49 +01:00
Matthias Clasen
1f99723a9f
Merge branch 'fix-im-reset' into 'master'
...
imcontextsimple: Fix a possible problem
See merge request GNOME/gtk!3584
2021-05-25 12:09:38 +00:00
Matthias Clasen
4c2761302a
doc: Syntax fixes
...
No, we can't have links that say [constructor@...] or
[mehtod@...] or [methoc@...] or [methos@...] or [metohd@...].
And no, not [signals@...] either.
2021-05-25 07:33:55 -04:00
Bilal Elmoussaoui
4728d7b70b
gtk: fix gi-docgen link type
...
constructors are supposed to use "ctor" as a link type, not new
2021-05-25 09:25:32 +00:00
Matthias Clasen
d0ca4a1255
imcontextsimple: Fix a possible problem
...
We were forgetting to handle the compose sequence
case in reset().
2021-05-24 18:53:14 -04:00
Matthias Clasen
16623d4e71
quartz: Elide underscores again
...
We don't want a literal _File to show up in the
global menubar on OS X, so use the revivied
_gtk_elide_underscores.
Related: #3967
2021-05-24 17:39:05 -04:00
Matthias Clasen
dab7ceaa24
Bring back elide_underscores
...
This used to live in gtktoolbar.c, which is gone.
We still need it, so put it in gtkprivate.c.
2021-05-24 17:37:05 -04:00
Matthias Clasen
a74420bc1a
menubutton: Enable F10 for primary menus
...
Add a ::primary property to GtkMenuButton, which can
be set to make the menu activatable with F10, like
menubars.
2021-05-24 17:27:40 -04:00
Chun-wei Fan
943559da67
gtk/meson.build: Fix linking on Visual Studio 2013
...
Visual Studio 2013's linker does not suport `/WHOLEARCHIVE:`, so just
explicitly extract the objects from the static libraries that will
form the final GTK DLL.
2021-05-24 10:30:34 +08:00
Matthias Clasen
281bb5e2c4
treeviewcolumn: Use focusable when we mean it
...
The focusable property has taken over the role that
can-focus had in GTK 3.
2021-05-23 11:20:00 -04:00
Matthias Clasen
eb61f0fc63
treeexpander: Use focusable where we mean it
...
This does not fix keyboard activation for tree expanders,
but it is more correct than using can-focus.
2021-05-23 11:20:00 -04:00
Matthias Clasen
105b12f807
togglebutton: Fix mnemonic activation
...
We want to grab the focus when we're focusable, so
look at the focusable property.
2021-05-23 11:20:00 -04:00
Matthias Clasen
882893259d
floxbox: Fix focus navigation
...
We want to find focusable children, so we need to look at
the focusable property, not at can-focus. This is a change
from GTK 3, where can-focus was the correct property to
look at.
2021-05-23 11:20:00 -04:00
Matthias Clasen
052917a67d
label: Fix mnemonic activation
...
The intention of the code is to find a focusable ancestor,
so it needs to look at the focusable property, not at
can-focus. This is a change from GTK 3, where can-focus
was the correct property to look at.
Fixes : #3965
2021-05-23 11:19:40 -04:00
Matthias Clasen
be944053e0
docs: More syntax fixes
...
The syntax for interface links is [iface@...], not
[interface@...].
2021-05-22 21:21:10 -04:00
Matthias Clasen
8bcc6b1d96
docs: Fix up syntax
...
There's no [type_func@...[ syntax, it is all [func@...].
2021-05-22 20:56:14 -04:00
Matthias Clasen
40f292cb13
docs: Sync up debug flag information
2021-05-22 20:46:59 -04:00
Matthias Clasen
601a8de422
treemodel: Cosmetic docs changes
2021-05-22 20:46:59 -04:00
Matthias Clasen
fe564318b6
sortlistmodel: Cosmetic docs changes
2021-05-22 20:46:16 -04:00
Matthias Clasen
09244edc15
expression: Cosmetic docs changes
2021-05-22 17:28:10 -04:00
Matthias Clasen
f5f8f83e3e
textbuffer: Cosmetic docs changes
2021-05-22 17:25:27 -04:00
Matthias Clasen
74a39bbae0
textview: Cosmetic docs changes
2021-05-22 17:25:27 -04:00
Matthias Clasen
3ab34ffdc0
text: Cosmetic docs fixes
2021-05-22 17:25:26 -04:00
Matthias Clasen
13a93489b7
widget: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
b35e02db20
shortcutscontroller: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
2d12a7d9ee
directorylist: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
9a7e4f4304
eventcontroller: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
876104835e
sorter: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
786e28fec0
filter: Cosmetic docs changes
2021-05-22 17:25:26 -04:00
Matthias Clasen
91f7b9663f
gtk: Clean up docs syntax
...
Replace leftover gtk-doc syntax (#Type) with backquotes.
2021-05-22 17:25:26 -04:00
Matthias Clasen
f5bd9f721c
Merge branch 'wip/exalm/check-activate' into 'master'
...
checkbutton: Don't allow to uncheck radios by activating them
See merge request GNOME/gtk!3569
2021-05-21 02:06:58 +00:00
Matthias Clasen
4a0d3d7acc
docs: Reduce redundancy
...
Remove a boatload of "or %NULL" from nullable parameters
and return values. gi-docgen generates suitable text from
the annotation that we don't need to duplicate.
This adds a few missing nullable annotations too.
2021-05-20 20:45:06 -04:00
Matthias Clasen
7fe0610b68
introspection: Stop using allow-none
...
allow-none has been deprecated for a long time
already. Instead use optional and nullable everywhere.
2021-05-20 19:17:49 -04:00
Matthias Clasen
8ba16eb4f1
Documentation fixes
...
Mostly fixing up indentation of continuation lines,
and other small cleanups.
2021-05-20 19:17:49 -04:00
Matthias Clasen
ab6a5be0f8
Fix documentation syntax
...
Properties use : in their link syntax.
2021-05-20 19:16:59 -04:00
Matthias Clasen
94b0907534
Merge branch 'wip/exalm/switch-icons-2' into 'master'
...
icons: Fix switch-off icon
See merge request GNOME/gtk!3571
2021-05-20 22:49:29 +00:00
Alexander Mikhaylenko
0017b4b69a
icons: Fix switch-off icon
...
It wasn't converted to paths and so wasn't rendered correctly.
2021-05-20 23:36:30 +05:00
Matthias Clasen
bff7ac4a1d
popover: Update docs
...
Remove mention of show/hide animations, and mention
cascading close instead.
Fixes : #3960
2021-05-20 09:18:47 -04:00
Alexander Mikhaylenko
fb6c6c85bf
checkbutton: Don't allow to uncheck radios by activating them
...
Do the same check as when clicking.
2021-05-20 14:38:33 +05:00
Alexander Mikhaylenko
bad01edd2c
checkbutton: Sync the indicator state with the widget
...
Clicking the whole check button toggles it, so make sure the hover and
active states are propagated to the indicator like in GTK3.
2021-05-20 12:17:45 +05:00
Matthias Clasen
7de266a620
Merge branch 'wip/carlosg/sequence-accepted-in-group' into 'master'
...
gtkgesture: Apply gesture group state after setting up sequence
Closes #3946
See merge request GNOME/gtk!3560
2021-05-18 10:58:19 +00:00
Carlos Garnacho
6b7b232114
gtkwindow: Fix "shadowed" checks for GTK grabs
...
We iterate here from the target widget up the toplevel checking
for the previous and new grab, there's however 2 bugs here:
- The check for is_shadowed was different to the check for was_shadowed
- The loop started with the assumption that the widgets did not hold
a grab, just to change it if the grab widget was found. (or maybe
it's the other way around? it's unclear with the differing checks
for past/present state).
Make these checks consistent, and ensure we start with the right
assumption for the past/present grabbing state, and accounting that
new/old grab widgets may or may not be part of the pick stack.
2021-05-18 00:16:55 +02:00
Carlos Garnacho
0a5d21ca9e
gtkwindow: Rename function
...
With gtk_grab_notify_foreach() just taking care of emitting crossing
notifications due to the GTK grab change, rename it to a more apt
gtk_synthesize_grab_crossing().
2021-05-18 00:16:48 +02:00
Carlos Garnacho
f003a4c6cc
gtkwindow: Simplify GTK grab notification
...
The _gtk_widget_grab_notify() function just (maybe) did a) reset
controllers and b) hide toplevels. The second part was a testing
remnant introduced in commit 024d832d94
, not part of the original
fix.
Do the former more concisely, called from the place where we figure
out whether a widget's ability to receive events changed due to
GTK grabs. It's across those changes that we are interested in
resetting the controllers.
With the gestures being reset both ways, GtkWindowHandle (and
probably other) gestures are now able to reset after a GTK grab
takes input away (e.g. GtkMenuButton). This could be seen as
a sudden jump the next time they'd be dragged with the mouse,
as the gesture would "resume" the previous interaction.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3942
2021-05-18 00:16:48 +02:00
Carlos Garnacho
53df32e6cf
gtkgesture: Apply gesture group state after setting up sequence
...
When a new sequence is added to a GtkGesture, its state is looked
in other gestures in the same group, and made to match in this
gesture. This however happened a bit too early, before the
gesture touchpoint was fully set up. As this may result in signal
emission and whatnot, it's a good idea to make it happen with a
fully set up touchpoint.
Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/3946
2021-05-18 00:16:12 +02:00
Alexander Mikhaylenko
4f16e661cf
theme: Specificity bump for dropdowns
...
Fix a fallout from d56711b5d8
2021-05-17 23:26:08 +05:00
Alexander Mikhaylenko
d56711b5d8
listitemwidget: Have .activatable style class if the item is activatable
...
Match GtkListBox, so it's possible to use the same styles for them.
Update GtkListView and GtkGridView docs to reflect that, fix a few gtk-doc
formatting leftovers along the way.
2021-05-17 18:10:35 +05:00
Alexander Mikhaylenko
27e662cfd1
emojichooser: Set selection-mode=none on the toolbar flowbox
...
Selection is never used there, avoid unwanted selected states if clicking
outside the buttons.
2021-05-17 14:09:03 +05:00
Matthias Clasen
07b5072c9c
Merge branch 'matthiasc/for-master' into 'master'
...
inspector: Use new get_egl_display apis
See merge request GNOME/gtk!3546
2021-05-14 00:40:05 +00:00
Matthias Clasen
8c75e6896e
inspector: Use new get_egl_display apis
...
This makes the code a bit more concise.
Also, get WGL information when we are using it.
2021-05-13 15:25:18 -04:00
Matthias Clasen
bf454e948d
Fix picking with transforms
...
When transforms include scales, we weren't picking
children properly. The special-case in gtk_widget_do_pick
only applies to 2D translations.
2021-05-12 20:58:16 -04:00
Emmanuele Bassi
8ef353a970
docs: Fix indentation of the arguments
...
The indentation of new lines inside documentation blurbs must be smaller
than 4 spaces, otherwise the Markdown parser will consider the line to
be part of a pre-formatted code block.
Fixes : #3945
2021-05-12 17:38:07 +01:00
Matthias Clasen
ea162ed016
inspector: Avoid a crash with GL variants
...
When configuring the inspector display, preserve
debug flags that affect which GL variant we pick.
Otherwise, we may end up with a GLX context on the
default display, and an EGL context on the inspector
one. This hopelessly confuses libepoxy, and things
don't go well when that happens.
2021-05-10 21:25:08 -04:00
Matthias Clasen
e2aa161590
inspector: Show EGL info for X11 as well
2021-05-10 21:24:50 -04:00
Matthias Clasen
a723baec4b
inspector: Show text direction
...
This is not a property, so show it on the misc tab.
2021-05-10 20:55:43 -04:00
Matthias Clasen
564d835fba
Merge branch 'broadway-display-scale' into 'master'
...
broadway: Add a setter for display scale
Closes #3934
See merge request GNOME/gtk!3538
2021-05-10 20:11:38 +00:00
Matthias Clasen
b13c2e17f1
inspector: Support scale changes on Broadway
2021-05-10 10:55:41 -04:00
Matthias Clasen
7259be35b0
Merge branch 'file-replace-trap' into 'master'
...
print-editor: Fix saving
See merge request GNOME/gtk!3536
2021-05-09 23:06:49 +00:00
Matthias Clasen
0108ffe059
inspector: Fix saving css
...
g_file_replace_contents() does not accept -1
as length, unlike similar apis.
2021-05-09 11:19:43 -04:00
Matthias Clasen
fef9f1187d
Merge branch 'matthiasc/for-master' into 'master'
...
fontbutton: Quote font family names
See merge request GNOME/gtk!3534
2021-05-09 14:43:03 +00:00
Alexander Mikhaylenko
435a8f6337
theme: Fix GtkActionBar spacing
2021-05-09 17:01:36 +05:00
Alexander Mikhaylenko
2c8e4573f2
actionbar: Fix the css node docs
2021-05-09 16:55:48 +05:00
Alexander Mikhaylenko
b45721373a
action-bar: Add start and end style classes to GtkActionBar boxes
...
Make it possible to add spacing to them from the theme without affecting
the center child should it happen to be a box.
2021-05-09 16:54:59 +05:00
Matthias Clasen
e0ebf4e401
fontbutton: Quote font family names
...
Otherwise, spaces in family names will trip up
the css parser.
2021-05-08 20:54:50 -04:00
Marco Trevisan (Treviño)
0769dfbd32
emoji: Try to load emoji data using both language and territory
...
When loading the emoji data we just try to get the data for a language
while there may be territory specializations and emojibase provides
them.
So, split the loading function and try to load the data for the fully
defined language string (i.e. `it-ch`) before loading the generic one
for the language (i.e. `it`) and eventually falling back to the generic
english.
2021-05-07 16:10:29 +02:00
Matthias Clasen
633d783f0c
Merge branch 'carlosgc/calendar-day' into 'master'
...
calendar: value of day property is shifted by 1
See merge request GNOME/gtk!3524
2021-05-07 11:42:59 +00:00
Matthias Clasen
3ad7d304bd
Merge branch 'update-emoji-data' into 'master'
...
emoji: Update data to CLRD v39
See merge request GNOME/gtk!3520
2021-05-07 11:05:46 +00:00
Carlos Garcia Campos
7b2b8b86e1
calendar: do not allow to set 0 as day
...
We no longer unselect the current day when 0 is set, so update the
documentation and the property definition.
2021-05-07 12:13:49 +02:00
Carlos Garcia Campos
1f8985e476
calendar: value of day property is shifted by 1
...
The day is a number between 1 and 31 and that's what we get from
GDateTime.
2021-05-07 11:10:36 +02:00
Matthias Clasen
59cc3a9f86
Merge branch 'hidden-mnemonics-fix' into 'master'
...
label: Make hidden mnemonics work again
See merge request GNOME/gtk!3518
2021-05-07 00:34:33 +00:00
Matthias Clasen
febd143ac8
Merge branch 'emoji-data-prefix-fix' into 'master'
...
emoji: Use a portable and configuration-dependent path to load the data
See merge request GNOME/gtk!3522
2021-05-06 15:33:15 +00:00
Marco Trevisan (Treviño)
4a4525a65d
emoji: remove duplicated include
2021-05-06 16:00:06 +02:00
Marco Trevisan (Treviño)
c98dd1afb9
emoji: Use a portable and configuration-dependent path to load the data
...
Load the emojis data in all the platforms, respecting the configured
GTK_DATA_PREFIX
2021-05-06 16:00:06 +02:00
Dan Cîrnaț
bd7b29a6c4
Only compile gtkmountoperation-stub if the X11 backend is not enabled
2021-05-06 10:38:41 +02:00
Marco Trevisan (Treviño)
ba3cbac21a
emoji: Update data to CLRD v39
...
This is based on version 6.2.0 of emojibase, containing CLRD 39
http://cldr.unicode.org/index/downloads/cldr-39
https://github.com/milesj/emojibase/blob/b3c9a78/packages/data/CHANGELOG.md
2021-05-06 05:08:37 +02:00
Matthias Clasen
d94c386320
label: Make hidden mnemonics work again
...
The change in 875a92b95f
made labels strip
out underlines earlier, but overlooked that this made
mnemonics not work before the timeout to show them
has passed. That was unintentional. Make mnemonics
work regardless of their visibility, again.
2021-05-05 22:55:52 -04:00
Matthias Clasen
65017a0031
Merge branch 'bilelmoussaoui/trick-gir-list-position' into 'master'
...
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
See merge request GNOME/gtk!3513
2021-05-05 00:04:16 +00:00
Bilal Elmoussaoui
dc5aab62c8
gtk: trick g-ir scanner to add INVALID_LIST_POSITION
...
without it, the define doesn't get picked in the introspection data
2021-05-05 00:45:21 +02:00
Alexander Mikhaylenko
0e58bfe90e
texthandle: Add a contents css node
...
Allow to theme it including using css transforms to avoid having assets.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3475
2021-05-04 23:53:05 +05:00
Matthias Clasen
e3e0342db7
Merge branch 'wip/exalm/switch-icons' into 'master'
...
icons: Fix switch icon names
Closes #3920
See merge request GNOME/gtk!3509
2021-05-04 16:18:29 +00:00
Matthias Clasen
b1f12a0535
Merge branch 'wip/exalm/icons' into 'master'
...
Update icons from adwaita-icon-theme
Closes #2656
See merge request GNOME/gtk!3510
2021-05-04 16:18:00 +00:00
Alexander Mikhaylenko
60f4b07196
icons: Update from adwaita-icon-theme
...
Also add the missing edit-clear RTL variant.
2021-05-04 19:12:04 +05:00
Alexander Mikhaylenko
4c60dac9cb
icons: Remove media-playback-start-symbolic-rtl
...
See https://gitlab.gnome.org/GNOME/adwaita-icon-theme/-/issues/101
2021-05-04 19:12:04 +05:00
Alexander Mikhaylenko
48d95d2d7a
icons: Fix switch icon names
...
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3920
2021-05-04 17:49:07 +05:00
Alexander Mikhaylenko
f3633d46ca
cssselector: Fix max_selector usage
...
Reverts 2ae8ace784
other than code style
fixes.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3100
2021-05-04 12:34:29 +05:00
Matthias Clasen
da613c504b
Merge branch 'wip/exalm/textview-selection' into 'master'
...
textview: Selection rendering fixes
See merge request GNOME/gtk!3503
2021-05-03 23:55:46 +00:00
Alexander Mikhaylenko
316c783fce
label: Update selection node and redraw on state changes
...
Mirror GtkText and GtkTextView.
2021-05-04 02:29:10 +05:00
Matthias Clasen
9e952bc7ff
dragsource: Keep the source alive long enough
...
When a drop causes the event controller to be finalized
(directly or indirectly), we end up segfaulting while
trying to wrap up the drag operation. So, keep a reference
on the GtkDragSource from when the drag begins to when
it is done.
This fixes a crash in gnome-todo when dragging tasks.
2021-05-03 17:00:17 -04:00
Alexander Mikhaylenko
e4832a9e94
text: Queue redraw on state changes
...
Mirror GtkTextView.
2021-05-04 01:20:53 +05:00
Alexander Mikhaylenko
70ee86c951
textlayout: Clip selection bounds to the line extents
...
The rest of the line will be painted separately.
2021-05-04 01:08:19 +05:00
Alexander Mikhaylenko
167134e1a8
textlayout: Support fully transparent selection text
...
Pango treats 0 alpha value as a unset alpha, so we have to special case it.
2021-05-04 00:16:05 +05:00
Alexander Mikhaylenko
0fa4b7a249
textview: Invalidate selection when its style changes
2021-05-04 00:16:05 +05:00
Alexander Mikhaylenko
f413d5ef22
textlayout: Only special case selection rendering for opaque colors
...
If the selection is partially transparent, it may still be desirable to
see the colors from tags underneath.
2021-05-04 00:16:05 +05:00
Matthias Clasen
a49ff5a1c4
textbtree: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
faf56a8abe
stack: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
e510538f37
printoperation: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
b2bf48c3f0
listbase: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
cf0330d601
filterlistmodel: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
2f51f5affe
emojichooser: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
a69ae36a99
fnmatch: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
6863528df1
a11y: Static analysis fixes
2021-05-03 07:44:38 -04:00
Matthias Clasen
f9d6134247
inspector: Improve monitor information display
...
Avoid a nested listbox, show the connector,
don't show information we don't have. Also,
disconnect all signal handlers from the display
when the inspector is going away.
2021-05-02 21:02:09 -04:00
Matthias Clasen
dfecc8fe02
inspector: Show keyboard layouts
2021-05-02 21:02:09 -04:00
Matthias Clasen
0768cfb7df
shortcuts: Ignore consumed modifiers for mnemonics
...
This is necessary to make mnemonics like Alt-1 work in
layouts where numeric keys are shifted, like AZERTY.
Fixes : #3912
2021-05-02 18:33:44 -04:00
Matthias Clasen
32280090fe
Check for root being a GtkWindow in a few places
...
These things were showing up as crashes during DND,
when the root is a GtkDragIcon. I'm sure there's more.
2021-04-30 13:45:39 -04:00
Geyslan G. Bem
65575fe0d0
gtkplacessidebar.c: fix coding style
...
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
2021-04-28 08:42:59 -03:00
Geyslan G. Bem
1635998ac3
gtkplacessidebar.c: add bookmark null checking
...
This fixes nautilus crash and perhaps other callers issues.
Nautilus (and sometimes glib) crashes with malformed URI inside of the
bookmarks file .config/gtk-3.0/bookmarks when it has no LABEL.
This is result from the closed glib MR #2065 analysis and agreement.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2065#note_1091979
Signed-off-by: Geyslan G. Bem <geyslan@gmail.com>
2021-04-27 11:58:31 -03:00
Matthias Clasen
aa569acaa1
window: Don't let solid-csd linger
...
Just from reading the code, it seems that we
should unset .csd and .solid-csd at the same
time, since the are mutually exclusive and
we unset them here so realize() can set one
of them again.
2021-04-24 11:29:19 -04:00
Matthias Clasen
1c1c030b8e
Simplify shadow conditions
...
The code in gtkwindow.c for dealing with the various
combinations of client-side decorations and client-side
shadows is entirely too complicated.
This commit does not really clean it up, but simplifies
one of the shadow conditions far enough to make some
sense.
With this change, I get the expected decorations in
all the cases I can easily reproduce locally.
2021-04-24 11:07:20 -04:00
Matthias Clasen
628d5406d7
x11: Fix shadows
...
Commit a2cd21cab6
changed a condition and inadvertedly
broke client-side shadows on X11. Change this back.
Fixes : #3896
2021-04-24 09:19:18 -04:00
Matthias Clasen
b2f3a3220e
a11y: Don't sent redundant property changes
...
We were sending a property changed event for every set
property whenever we were sending any updates.
2021-04-23 07:34:00 -04:00
Matthias Clasen
13f9ca60d5
Merge branch 'gtk4-listbox-selection' into 'master'
...
Allow repeated selection extension on gtklistbox
Closes #3887
See merge request GNOME/gtk!3461
2021-04-22 23:29:45 +00:00
Emmanuele Bassi
8789e78796
a11y: Update the level property for tree expanders
...
We already have the depth of a tree expander in order to compute the
indentation.
Fixes : #3892
2021-04-22 14:40:35 +01:00
Matthias Clasen
be927d9ce6
Merge branch 'resize-borders' into 'master'
...
window: Fix up resize borders
Closes #3856
See merge request GNOME/gtk!3467
2021-04-22 11:13:20 +00:00
Matthias Clasen
dcb5a74275
Merge branch 'a11y-debug' into 'master'
...
Some a11y improvements
See merge request GNOME/gtk!3455
2021-04-22 11:04:30 +00:00