Timm Bäder
f7ba3224b9
gl renderer: Bring back hexbox drawing
2018-01-08 17:44:37 +01:00
Timm Bäder
3176ae7e51
gl renderer: Use alpha uniform in inset shadow shader
2018-01-08 17:44:33 +01:00
Matthias Clasen
5ce2d77691
toolbutton: Fix off-center icons
...
When the toolbar style is both-horiz, and the item
is not important, we were not centering the icon in the
same way as in gtk3. The reason is that we overlooked
the expand child property being set to TRUE in this case.
2018-01-07 12:44:35 -05:00
Daniel Boles
b89bf98731
ScrolledWindow: add() before remove() in snippet
...
We can't remove() a child widget that wasn't already add()ed, of course.
2018-01-07 16:47:24 +00:00
Ting-Wei Lan
14b181ebd4
build: Use pkg-config to find iso-codes
...
Instead of hard-coding the path of iso-codes, we can get the prefix with
pkg-config. We still fallback to /usr when it is not available.
https://bugzilla.gnome.org/show_bug.cgi?id=792282
2018-01-07 14:53:41 +08:00
Matthias Clasen
3771c95c72
gsk: Move Vulkan sources to a subdirectory
...
Following what was already done for GL.
2018-01-06 09:36:55 -05:00
Rico Tzschichholz
3c38ebb906
filechooser: Add missing array annotations to add_choice()
2018-01-06 09:34:44 +01:00
Rico Tzschichholz
6e6e6d774f
iconview: Prevent ownership transfer of cell out-param in get_item_at_pos()
2018-01-06 09:27:44 +01:00
Matthias Clasen
550f4bc854
gsk: Fix hexbox drawing for the Vulkan renderer
...
Just as in the cairo renderer, we can get this back
by using pango_cairo_show_glyph_string for populating
the cache.
2018-01-05 20:30:14 -05:00
Matthias Clasen
2bab983ecf
gsk: Fix hexbox drawing for fallback rendering
...
pango does not currently export api for drawing hex boxes,
but by using pango_cairo_show_glyph_string, we can reuse its
implementation.
2018-01-05 18:55:23 -05:00
Matthias Clasen
258e504c6a
Implement equal for GtkCssImageUrl
...
This should in theory speed some things up if the same
image is used in multiple places.
2018-01-05 17:15:44 -05:00
Matthias Clasen
36e09f3ad9
label: Properly handle multi-line selections
...
They were rendered as a single rectangle, which is not
what is expected. Same for multi-line links.
2018-01-05 15:54:49 -05:00
Matthias Clasen
c8770b3c63
file button: Don't leak rows
...
The file chooser button manually manages the memory of
data in its model, so it needs to explicitly free the
rows.
2018-01-05 11:50:22 -05:00
Khaled Hosny
079ee7e405
Update Arabic translation
2018-01-05 15:32:33 +02:00
Matthias Clasen
50975be4d0
wayland: Plug memory leaks
...
We were forgetting to free the GdkContentFormats
objects in an early exit case.
2018-01-04 22:55:04 -05:00
Matthias Clasen
407d3db2b6
Plug a memory leak
...
gdk_pixbuf_format_get_name returns newly allocated
strings.
2018-01-04 22:54:29 -05:00
Matthias Clasen
98da7730ea
label: Plug a memory leak
...
We were sometimes leaking the content serializer object.
2018-01-04 22:24:43 -05:00
Matthias Clasen
3dd3ae1b9d
font chooser: Plug a memory leak
...
We were leaking the hb_font object.
2018-01-04 22:24:21 -05:00
Matthias Clasen
e41e8c4c53
font chooser: Fix a memory leak
...
We were leaking the delayed font descriptions.
2018-01-04 21:19:28 -05:00
Matthias Clasen
0ed670ed62
Remove a dead macro
...
GCs have been dead for a long time.
2018-01-04 18:23:36 -05:00
Matthias Clasen
a670de4425
Quiet the doc build a bit
2018-01-04 18:22:47 -05:00
Matthias Clasen
ea6da7b1b8
gdk: Convince gtk-doc to include backend docs
...
This is almost as unpleasant with meson as it is with autotools.
2018-01-04 15:57:28 -05:00
Timm Bäder
7479e6cb50
notebook: Fix wrong tab widgets allocation
...
Since we allocate the tab widgets on demand, we have to queue an extra
resize here.
2018-01-04 21:41:35 +01:00
Timm Bäder
85fa396176
widget: Avoid casting event coordinates to int in contains()
2018-01-04 21:41:35 +01:00
Matthias Clasen
888a157ffa
docs: Remove unused images
...
All the old cursor font images are unused.
2018-01-04 15:26:52 -05:00
Matthias Clasen
8a5b6d422f
fontchooser: fix feature formatting
...
There was a " missing, causing some features to be missed.
2018-01-04 08:39:18 -05:00
Timm Bäder
33162eee1a
window: Fix an event widget/target mixup
...
This makes dragging inside a GtkEntry in the window decoration work
again.
2018-01-04 13:16:24 +01:00
Timm Bäder
a89e88fc3e
widget: Ignore non-gestures in _gtk_widget_consumes_motion
...
priv->event_controllers is a list of all event controllers, which aren't
all GtkGesture subclasses.
2018-01-04 13:15:15 +01:00
Timm Bäder
62ccf8743a
filechooser: Manage spinner state
...
So we don't get an allocate every frame.
2018-01-04 12:20:27 +01:00
Timm Bäder
af6adb5bc0
gl renderer: Add test case for last commit
2018-01-04 12:20:27 +01:00
Timm Bäder
f729cbb760
gl renderer: Fix text color pre-multiplication
2018-01-04 12:20:27 +01:00
Timm Bäder
f55be762e2
recorder: Fix a button tooltip
...
This button will save the selected node to a file, not all recorded
frames.
2018-01-04 12:20:27 +01:00
Piotr Drąg
f94d72c012
Update POTFILES.skip
2018-01-03 21:28:36 +01:00
Matthias Clasen
ebeca18635
gtk-demo: Update font explorer example
...
Revise the UI (no more double checkboxes), add font variations,
update font features from the dialog, allow tweaking ranges.
2018-01-03 14:56:36 -05:00
Piotr Drąg
83c5b661f6
Update POTFILES.in
2018-01-03 20:24:05 +01:00
Matthias Clasen
a79f950dfe
font chooser: Manage tweak button sensitivity
...
When we don't have any font features or variation axes,
there is no point in going to the tweak page, so disable
the action in this case.
2018-01-03 14:06:00 -05:00
Matthias Clasen
34b4de09fc
font chooser dialog: Improve sensitivity handling
...
We should not tie the sensitivity of the select button
to the tweak action, since there may be fonts which are
selectable, but not tweakable.
Instead, enable the select button when a font is selected,
as it should be.
2018-01-03 14:05:33 -05:00
Matthias Clasen
7687393583
font chooser: Don't set hardcoded default features
...
We should rely on harfbuzz to select the right defaults.
2018-01-03 13:41:20 -05:00
Matthias Clasen
4cc68a97a8
font chooser: Support font variations
...
Add sliders for the available axes to the tweak page.
2018-01-03 13:28:33 -05:00
Matthias Clasen
379970082a
font button: Take variations into account
...
We need to apply variations too, when we are using
the font to render the button label.
2018-01-03 13:07:55 -05:00
Matthias Clasen
fb51e438e9
Implement font-variation-settings
...
This is a CSS font level 4 property that lets us
use font variation settings from css.
2018-01-03 13:07:55 -05:00
Matthias Clasen
f259aa7e76
Bump the pango requirement
...
We want to use the new font variation api in pango 1.41.
2018-01-03 13:06:28 -05:00
Matthias Clasen
894a0c0ff4
font chooser: Add properties for features and language
...
These can't be returned as part of the font description,
so we need new api for them. For now, this is just readonly
properties. Maybe these should be writable too, eventually.
2018-01-03 12:18:18 -05:00
Matthias Clasen
ade33c6e14
Add font features on the tweak page
2018-01-03 12:18:18 -05:00
Matthias Clasen
15f8b2d0ae
font chooser: Add a tweak page
...
Add a button the dialog's header bar that lets us
switch to a second page where we can customize
the selected font.
Make the font chooser widget export an action that the
dialog can use for the button. This has some advantages:
- we can export not just the toggle state, but also enabled
- we can reuse the same enabled state to make the select
button insensitive when no font is selected
To determine whether a font is selected, listen to changes
of the list selection. And ensure that the font chooser is
in an initial state when mapped, even if we close the dialog
from the tweak page.
2018-01-03 12:18:18 -05:00
Matthias Clasen
70bae02612
font button: Remove show-font and show-size
...
These are now handled in a more systematic fashion
using GtkFontChooserLevel.
2018-01-03 12:18:18 -05:00
Matthias Clasen
f0526359d1
font chooser: introduce font chooser levels
...
This is a more systematic approach to reducing the
level of detail in the font chooser.
2018-01-03 12:18:18 -05:00
Matthias Clasen
78f9193d7e
font chooser: Small revision of the UI
...
Show only the font names in the list, in their own
font, in order to make the list less noisy.
2018-01-03 12:18:18 -05:00
Timm Bäder
3f68475b6f
Make a few more code samples compile
2018-01-03 17:11:32 +01:00
Timm Bäder
5cd138f0f2
entry: Remove some questionable code examples
2018-01-03 17:11:32 +01:00