summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump pango req to 1.49.1text-rendering-fixesMatthias Clasen2021-09-042-2/+2
| | | | | We are using pango api that was introduced in 1.49.1 without ifdefs, so we should require it.
* Avoid hand-rolled color glyph informationMatthias Clasen2021-09-041-10/+1
| | | | | | Followup to b244f31337eea. Pango provides color glyph information for us now, so we don't need to steal a bit anymore.
* Fix text node diffingMatthias Clasen2021-09-041-1/+2
| | | | | | Now that text nodes carry flags, we need to compare them (even though it is very unlikely that they will differ from node to node).
* Redo font options handlingMatthias Clasen2021-09-0412-137/+159
| | | | | Avoid cairo types in the API by introducing a GskTextRenderFlags enum.
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-031-3/+11
|\ | | | | | | | | widget: Redraw when font options change See merge request GNOME/gtk!3917
| * widget: Redraw when font options changeMatthias Clasen2021-09-031-3/+11
|/ | | | Its the right thing to do, even if it is a rare event.
* Merge branch 'small-text-fixes' into 'master'Matthias Clasen2021-09-0311-37/+217
|\ | | | | | | | | gsk: Pass font options down See merge request GNOME/gtk!3908
| * gtk: Pass font options alongMatthias Clasen2021-09-034-16/+26
| | | | | | | | | | Pass the widget's font options along when we are creating text nodes.
| * gsk: Pass font options alongMatthias Clasen2021-09-031-0/+7
| | | | | | | | | | Use the font options from the text node when looking up glyphs.
| * gsk: Add font options to the glyph cacheMatthias Clasen2021-09-032-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The cairo_t that we create to render glyphs for the glyph cache needs to match the font options that are supposedly governing how glyphs are drawn. Since we allow font options to be different per widget in gtk, we need to have them at least at the level of individual render nodes. Adding them to the lookup key for the glyph cache has the side effect of solving another problem: We are not flushing the cache when font options change.
| * gsk: Add font options to text nodesMatthias Clasen2021-09-032-20/+152
| | | | | | | | | | | | | | | | | | Since font options affect how the glyphs get rendered, we need to pass the font options down from the gtk level to where the glyph cache is populated. Add a new gsk_text_node_new_full api that takes a cairo_font_options_t in addition to the other parameters.
| * gtk-demo: Improve the font rendering demoMatthias Clasen2021-09-032-0/+20
|/ | | | | | Add a toggle for antialiasing, and make the metrics hinting turn on rounding of positions, to match what we do with settings now.
* Merge branch 'wip/exalm/buttons' into 'master'Matthias Clasen2021-09-033-9/+175
|\ | | | | | | | | | | | | Allow custom children on GtkMenuButton Closes #4205 See merge request GNOME/gtk!3904
| * menubutton: Support custom childrenAlexander Mikhaylenko2021-09-033-9/+175
|/ | | | Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/4205
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-031-0/+19
|\ | | | | | | | | Add a README in gtk/compose See merge request GNOME/gtk!3916
| * Add a README in gtk/composeMatthias Clasen2021-09-021-0/+19
|/
* Merge branch 'wip/smcv/transparent-is-transparent' into 'master'Matthias Clasen2021-09-021-1/+6
|\ | | | | | | | | | | | | reftest-compare: Treat colour channels as undefined if alpha is zero Closes #4227 See merge request GNOME/gtk!3914
| * reftest-compare: Treat colour channels as undefined if alpha is zeroSimon McVittie2021-09-021-1/+6
|/ | | | | | | | | | | | If the alpha channel is zero, it doesn't matter what the values of the red, green and blue channels are: the pixel is still fully transparent. On most architectures, fully transparent pixels end up all-zeroes (fully transparent black), matching what's in the reference PNG file; but on mips*el the blend-difference and blend-normal tests get all-ones (fully transparent white) and a test failure. Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4227 Signed-off-by: Simon McVittie <smcv@debian.org>
* Update Finnish translationJiri Grönroos2021-09-021-1061/+1109
| | | | (cherry picked from commit 33a4ae12ef268a399d0dad0b205dd87f501b14da)
* Updated Lithuanian translationAurimas Černius2021-09-022-3034/+2961
|
* Merge branch 'fix-gst-subproject' into 'master'Matthias Clasen2021-09-021-11/+3
|\ | | | | | | | | media: Check for gstreamer verion instead of using cc.links() See merge request GNOME/gtk!3910
| * media: Check for gstreamer verion instead of using cc.links()Xavier Claessens2021-09-011-11/+3
| | | | | | | | | | This fix error when gstgl_dep comes from a subproject because in that case it cannot be used in compiler checks.
* | Merge branch 'hint-metrics-setting' into 'master'Matthias Clasen2021-09-013-5/+38
|\ \ | | | | | | | | | | | | Add a gtk-hint-font-metrics setting See merge request GNOME/gtk!3912
| * | Update settings testsMatthias Clasen2021-09-011-1/+1
| | | | | | | | | | | | | | | We have a new setting, so the test that is counting settings needs an update.
| * | Add a gtk-hint-font-metrics settinghint-metrics-settingMatthias Clasen2021-09-012-4/+37
|/ / | | | | | | | | | | | | | | | | This lets people switch back to font rendering that is closer to what GTK 3 does. It is not perfect - subpixel antialiasing is not going to work. But it give us an Escape hatch while we shake out the bugs in our linear layout. Related: #3787
* | Merge branch 'color-glyph-info' into 'master'Matthias Clasen2021-09-012-53/+3
|\ \ | |/ |/| | | | | Use color glyph information from Pango See merge request GNOME/gtk!3909
| * Use color glyph information from Pangocolor-glyph-infoMatthias Clasen2021-09-012-53/+3
| | | | | | | | | | | | Pango now sets a bit in PangoGlyphVisAttr for color glyphs, so we don't need to do that ourselves anymore.
* | Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-09-013-0/+31
|\ \ | | | | | | | | | | | | Initial support for new Pango attributes See merge request GNOME/gtk!3911
| * | Initial support for new Pango attributesMatthias Clasen2021-09-013-0/+31
|/ / | | | | | | | | This is still missing the GtkTextTag hookup, but it fixes the build.
* | Update Persian translationDanial Behzadi2021-09-011-55/+71
| |
* | Updated Spanish translationDaniel Mustieles2021-09-011-1061/+1200
|/
* Update Dutch translationNathan Follens2021-08-311-1795/+2369
| | | | (cherry picked from commit 9aa08dd1b8b633990ac73efb76d9524f7ded32dc)
* Update Persian translationeshagh shahidani2021-08-311-2972/+5021
| | | | (cherry picked from commit 7691c94a3732e0349a4c868982159f613d6222dc)
* Merge branch 'matthiasc/for-master' into 'master'Matthias Clasen2021-08-311-1/+5
|\ | | | | | | | | editable: Clarify the docs See merge request GNOME/gtk!3906
| * editable: Clarify the docsMatthias Clasen2021-08-311-1/+5
| | | | | | | | | | | | Make it clear that your class must have all the editable properties already before you call the (confusingly named) function gtk_editable_install_properties.
* | Merge branch 'default-settings-non-debug' into 'master'Matthias Clasen2021-08-304-38/+5
|\ \ | |/ | | | | | | Revert "reftests: Enforce default settings" See merge request GNOME/gtk!3903
| * gdk: Make GDK_DEBUG=default-settings unconditionaldefault-settings-non-debugMatthias Clasen2021-08-303-5/+5
| | | | | | | | | | Our tests use this settings, so we should respect it in non-debug builds as well.
| * Revert "reftests: Enforce default settings"Matthias Clasen2021-08-301-33/+0
|/ | | | | | This reverts commit 4e4f57e091020750d66134c212d7778c17d96c20. This should not be necessary, since we have GDK_DEBUG=default-settings.
* Merge branch 'wip/smcv/compose-files' into 'master'Matthias Clasen2021-08-307-12/+45
|\ | | | | | | | | | | | | Fix Compose handling on big-endian host architectures Closes #4217 See merge request GNOME/gtk!3902
| * compose: Update sequences from libX11 1.7.2Simon McVittie2021-08-304-3/+13
| | | | | | | | | | | | | | | | This adds support for sequences like <Compose>,G,u -> capital G with breve. Previously, only a capital U was accepted for E, G, I and O (but a lower-case u was accepted for A and U for some reason). Signed-off-by: Simon McVittie <smcv@debian.org>
| * compose: Document how to get compose-parse input from libX11 sourceSimon McVittie2021-08-301-0/+1
| | | | | | | | Signed-off-by: Simon McVittie <smcv@debian.org>
| * compose: Generate endian-dependent compact Compose dataSimon McVittie2021-08-305-9/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The GtkComposeTable cache is always in big-endian format and is byteswapped on load for the more common little-endian CPUs, but init_builtin_table() in GtkIMContextSimple can't byteswap the built-in data without copying it, which is undesirable. Pregenerate both big- and little-endian compose data, and compile the correct flavour into each build of GTK. This fixes failure of the composetable test when building for a big-endian architecture such as s390x and (traditional, big-endian) powerpc. Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/4217 Signed-off-by: Simon McVittie <smcv@debian.org>
* | Merge branch 'wip/otte/for-master' into 'master'Benjamin Otte2021-08-3010-35/+426
|\ \ | | | | | | | | | | | | fontbutton: Make sure the window is on the same display See merge request GNOME/gtk!3901
| * | contentdeserializer: Fix some API awkwardnessBenjamin Otte2021-08-301-1/+6
| | | | | | | | | | | | | | | Allow uninitialized GValues to be passed. Makes life easier for the inspector code I'm writing.
| * | node-editor: Allow dragging and dropping the center pictureBenjamin Otte2021-08-302-14/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Dragging will just drag the render node. Dropping will replace the current contents of the textview with the dropped node. Neat side effect: You can drag the node onto itself to do a deserialize/serialize of the current text.
| * | recorder: Make the render nodes in the list draggableBenjamin Otte2021-08-301-0/+26
| | | | | | | | | | | | You can (soon) drag any of the nodes directly into the node-editor.
| * | dragicon: Add a default drag icon for GskRenderNodeBenjamin Otte2021-08-301-0/+21
| | | | | | | | | | | | Somebody should make this default drag icon machinery pluggable.
| * | rendernode: Add (de)serialization support for render nodesBenjamin Otte2021-08-301-0/+111
| | | | | | | | | | | | This includes our own new mime type for render nodes, too.
| * | rendernode: Add GValue functions for render nodesBenjamin Otte2021-08-302-1/+126
| | | | | | | | | | | | | | | | | | This is needed as GskRenderNode is its own fundamental type and has its own GValue infrastructure. And I want to put render nodes into the clipboard which uses GValues.
| * | stylecontext: Remove unneeded headersBenjamin Otte2021-08-301-16/+1
| | |