Matthias Clasen
d281cd7498
Fix a compiler warning
2017-09-03 19:53:29 -04:00
Matthias Clasen
59b1206468
Avoid empty nodes another way
...
Make gsk_text_node_new return NULL if the extents are empty.
2017-09-03 19:35:02 -04:00
Aurimas Černius
ccc587cca7
Updated Lithuanian translation
2017-09-03 23:36:03 +03:00
Rūdolfs Mazurs
0fbd16bac5
Update Latvian translation
2017-09-03 19:26:58 +03:00
Jordi Mas
d3d10fa917
Update Catalan translation
2017-09-03 18:06:43 +02:00
Matthias Clasen
7bb202e4a2
Add a workaround for vulkan crashes
...
I see 'out of memory' errors and crashes inside libvulkan when
creating nodes that have empty bounds and end up in the fallback
paths, like a shadow around an empty text node. Prevent this
by not creating text nodes in that case.
2017-09-03 11:57:21 -04:00
Matthias Clasen
2101f26b49
vulkan: Add more debug spew
2017-09-03 11:34:41 -04:00
Matthias Clasen
a05895e029
Record node names for debug output
...
This is useful for GSK_NOTE output as well.
2017-09-03 11:32:09 -04:00
Matthias Clasen
8db13c3362
gsk: Improve debug output
...
If we don't have node names, we can still print class names.
2017-09-03 10:32:55 -04:00
Matthias Clasen
eab50246e1
Only record node names when we should
...
This is the same thing we do for render nodes elsewhere.
2017-09-03 10:30:32 -04:00
Daniel Boles
68631d6dbd
Adwaita: Fix ineffective theming of switch slider
...
in a specific case, which was applying .slider as a class on the parent
switch, instead of correctly selecting on its child node named slider.
This makes the border on the outside of a switch in a selected listbox
row look better in the light variant. Since the code was never removed,
it was clearly meant to work, and making it work is a clear improvement.
2017-09-03 14:02:23 +01:00
Daniel Boles
8cd37ff0df
HighContrast: Fix outdated name for headerbar box
2017-09-03 13:36:43 +01:00
Daniel Boles
b5afe75700
docs: css-overview: Don’t recommend broken syntax
...
Using this produced warnings about the Pango syntax of <Family> <size>
being deprecated, and the size being invalid due to no unit specified.
Also, that multi-word font family presumably wouldn’t work as expected.
2017-09-03 12:26:07 +01:00
Daniel Boles
48055f99e7
Toolbar: Clarify set_show_arrow() a bit more
2017-09-03 11:04:59 +01:00
Daniel Boles
1b38944203
Toolbar: Clarify how the arrow overflow menu works
...
The fact it affects the preferred size, and only works with ToolItems
that return a menu proxy item, was unclear unless deduced from other
sources, and this led to users thinking it was broken, for example:
https://stackoverflow.com/q/44644642/2757035
https://bugzilla.gnome.org/show_bug.cgi?id=787158
https://bugzilla.gnome.org/show_bug.cgi?id=787195
2017-09-03 10:59:34 +01:00
Daniel Boles
5095ca6ed7
ToolItem: Add see-also from proxy setter to signal
2017-09-03 10:59:34 +01:00
Daniel Boles
7ed0d9344e
ToolItem: Annotate menu proxy item as nullable
...
It can be NULL. ::create-menu-proxy gave an example of when a NULL proxy
menu item could be useful, but the accessors did not annotate it as such.
2017-09-03 10:59:33 +01:00
Timm Bäder
7481affb82
container: Drop priv pointer
2017-09-03 09:17:35 +02:00
Timm Bäder
98281bc60a
testcenterbox: Properly quit on window close
2017-09-03 09:17:35 +02:00
Rafael Fontenelle
1346520e4b
Update Brazilian Portuguese translation
2017-09-02 22:48:48 +00:00
Daniel Boles
9019b0887f
Revert "sk.po: Consistently translate “Insert”"
...
This reverts commit 98e3018455
.
As an English-speaker, I know nothing about complex grammar, and it’s
been brought to my attention that some languages might differ in the
translation of the same command depending on where it appears.
So, I’d better assume everyone else knows better than me. Apologies!
2017-09-02 16:13:30 +01:00
Matthias Clasen
440e534053
gsk: add a has_color boolean to text nodes
...
Currently, this information is not used since cairo_show_glyphs
deals with color glyphs for us. But when we get to uploading
glyphs to a texture atlas, we will need it to do the right thing.
We don't look at individual glyphs here, but just whether the
font has the has-color flag set. In practice, all glyphs in
such a font will be color glyphs, and we can avoid loading all
the glyphs this way.
2017-09-02 11:09:03 -04:00
Daniel Boles
18adda6eb0
Adwaita: Fix colour mixing of emoji section button
...
when hovered, by using %, since SASS does not handle decimal mixes.
2017-09-02 16:02:59 +01:00
Daniel Boles
98e3018455
sk.po: Consistently translate “Insert”
...
The two occurrences disagreed on the translation, and my amateur
investigation indicates this one is correct.
2017-09-02 16:02:52 +01:00
Daniel Boles
26954f9ef6
gl.po: Consistently translate/capitalise “Emoji”
...
GTK+ 3 and 4 disagreed on capitalisation and the translation of “Emoji”.
Use sentence case as elsewhere & the most common translation: emoticono.
2017-09-02 16:02:22 +01:00
Matthias Clasen
d27c552630
emoji chooser: No emoji in the search entry
...
Recursion is fun, but better avoided in the ui.
https://bugzilla.gnome.org/show_bug.cgi?id=786960
2017-09-02 08:47:17 -04:00
Matthias Clasen
3694104f67
entry: Consider input hints for Emoji support
...
Don't show "insert emoji" in the context menu if input
hints indicate that Emoji input is not useful.
2017-09-02 08:47:17 -04:00
Matthias Clasen
774499e10e
Add input hints for Emoji input
...
Allow hinting input methods about whether Emoji support is
useful or not.
2017-09-02 08:47:17 -04:00
Emmanuele Bassi
3a0eab776e
build: Add option to enable/disable GIR generation
...
And drop the unnecessary is_cross_build() check: it's entirely possible
to generate introspection data when cross-compiling.
2017-09-02 12:00:57 +01:00
Fran Dieguez
1e92faff76
Update Galician translation
2017-09-02 10:09:49 +00:00
Dušan Kazik
66714bfc89
Update Slovak translation
2017-09-02 08:00:42 +00:00
Dušan Kazik
969527cdb0
Update Slovak translation
2017-09-02 07:55:10 +00:00
Andika Triwidada
69afc4773b
Update Indonesian translation
2017-09-02 00:59:58 +00:00
Matthias Clasen
f414e1b15f
emoji chooser: Avoid a crash
...
The emoji chooser gets disposed already, because it is attached
to the toplevel as a popover. Doing it again when the object data
is cleared is leading to a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=787103
2017-09-01 19:55:21 -04:00
Piotr Drąg
7e1f3344f7
Update Polish translation
2017-09-02 01:53:37 +02:00
Mohammed Sadiq
18adee6e1b
emoji-chooser: fix subsequent scroll
...
Event handlers on scroll window should only be run once the widget
is shown.
https://bugzilla.gnome.org/show_bug.cgi?id=786964
2017-09-01 19:36:59 -04:00
gogo
5fcaec75ea
Update Croatian translation
2017-09-01 22:04:54 +00:00
gogo
3469d088d8
Update Croatian translation
2017-09-01 21:52:46 +00:00
Daniel Boles
7a3548e10c
Entry: Set tooltip text on icon for emoji chooser
...
https://bugzilla.gnome.org/show_bug.cgi?id=786885
2017-09-01 17:28:31 -04:00
Matthias Clasen
7da4d8af2f
Use gsk for text shadows
...
We don't need to render these manually using cairo anymore.
2017-09-01 15:34:13 -04:00
Matthias Clasen
6bdebd1570
label: Don't leak clip regions
...
This was introduced in the conversion to gsk.
2017-09-01 15:34:13 -04:00
Daniel Boles
e6bbc10bd5
ComboBox: Dodge possible surplus disconnects
...
in case anyone connected any other signal on the model to this ComboBox.
2017-09-01 20:20:17 +01:00
Matthias Clasen
8de8525b44
entry: Convert to gsk
...
This introduces a new css node for block cursor styling.
2017-09-01 14:42:29 -04:00
Matthias Clasen
1440bb25de
Fix text colors
...
This was lost in some reshuffling of the gskpango branch.
2017-09-01 14:12:20 -04:00
Matthias Clasen
f199f7b87b
Fix the build
2017-09-01 13:42:43 -04:00
Matthias Clasen
a367d34949
Use a text render node in GskPangoRenderer
...
This pushes the rendering closer to the place where we can
insert a texture atlas for glyph caching.
2017-09-01 13:30:03 -04:00
Matthias Clasen
4975aa7920
Add a render node for text
...
This is just a wrapper around a PangoGlyphString + PangoFont.
Basically, the arguments that are passed to pango_renderer_draw_glyphs.
2017-09-01 13:30:03 -04:00
Matthias Clasen
82538f935b
Use GskPangoRenderer to render text
...
This just replaces the wrapper call.
2017-09-01 13:30:03 -04:00
Matthias Clasen
82e8f3a542
Add a Pango renderer
...
Copy the PangoCairoRenderer into GTK+, rename it to GskPangoRenderer,
and strip it down far enough to build without private pango apis.
This means we currently don't support hexboxes or shapes.
Currently, this lives in gtk, but it might be nicer to put it
in gsk eventually.
2017-09-01 13:30:03 -04:00
Timm Bäder
3fc1cafec0
centerbox: Unparent widgets in dispose
2017-09-01 19:05:30 +02:00