Matthias Clasen
6f8c4f873d
Merge branch 'force-emoji' into 'master'
...
Force emoji presentation
See merge request GNOME/gtk!431
2018-11-30 21:38:02 +00:00
Matthias Clasen
7a4e9fa4d3
Force emoji presentation
...
Append a variation selector to the Emoji sequences,
to force Emoji presentation. Without this, some
Emoji come out with text presentation by default.
Closes: Pango #334
2018-11-30 16:20:44 -05:00
Jakub Steiner
f3c704b82e
Adwaita: updated switch control
...
- might be nasty to hide labels with CSS. We can fix properly later.
- the blue border seesm aliased when :checked
2018-11-30 20:55:00 +01:00
Jakub Steiner
8921c868a5
Adwaita: shade buttons
...
- it was a bit too flat
2018-11-29 21:56:45 +01:00
Jakub Steiner
3f8598baa4
Adwaita: button tweaks
...
- step back on toning down the borders. Flatness !> legibility.
- darker active state for light
- draw gradinets from bottom up, to keep px sized shading regardless
of button size.
2018-11-29 20:19:41 +01:00
Jakub Steiner
b5fd7b3211
Adwaita: headerbar backdrop state
2018-11-29 14:34:53 +01:00
Jakub Steiner
e9fe9410e0
Adwaita: sync headerbar styling for devel mode
2018-11-29 13:12:44 +01:00
Timm Bäder
904fd5f1fc
Remove gtk_widget_intersect
...
It's been broken for quite a while now and doesn't make sense anymore
these days.
2018-11-29 11:14:26 +01:00
Timm Bäder
f598836d6c
popover: Don't recalculate position if unmapped
2018-11-29 08:50:18 +01:00
Timm Bäder
7c020bfaaa
inspect-button: Remove custom pick() implementation
...
This was added to work around the fact that pick() does not look at
insensitive widgets at all, but the replacement didn't properly work
either.
2018-11-29 08:50:18 +01:00
Timm Bäder
2bd02d9185
popover: Get rid of a gtk_widget_get_allocation call
...
Use _compute_bounds instead.
2018-11-29 08:50:18 +01:00
Timm Bäder
c17c18f1ae
widget: Remove one translate_coordinates copy
...
Just use the double version in the integer version.
2018-11-29 07:39:11 +01:00
Jakub Steiner
dbde7b68c0
Adwaita: flatten the headerbar again
2018-11-28 20:28:56 +01:00
Jakub Steiner
a26edd59d1
Adwaita: tune button & hederbar colors
2018-11-28 14:22:21 +01:00
Mohammed Sadiq
dcd21e12cd
texttag: Replace gtk3-demo reference with gtk4-demo
2018-11-28 16:51:45 +05:30
Jakub Steiner
e5efc84eda
Adwaita: buttons & headerbars
...
- tone down the bottom border contrast (increase bottom lightness,
decrease overall lightness)
- darken headerbars slightly (might require darkening wm colors when
dust settles)
2018-11-28 00:16:20 +01:00
Federico Mena Quintero
e5f9bf2e9b
( #1471 ): base64-encode included SVGs to avoid mis-escaped characters
...
We wrap SVG data from icons within another SVG with extra styling
information. The wrapped SVG may contain characters that cannot be
part of a data: URL (https://fetch.spec.whatwg.org/#data-urls ).
Librsvg 2.45 got more strict in its parsing of data: URLs; whereas
previously it ignored '#' characters in them, now it considers them to
be the start of a fragment identifier, which is not allowed in data:
URLs anyway.
To avoid unallowed characters, we now create a data: URL with a
base-64 encoded SVG.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1471
2018-11-27 13:57:21 -06:00
Timm Bäder
0be4d31217
headerbar: Remove superfluous parentheses
2018-11-27 06:06:28 +01:00
Timm Bäder
eebb849760
widget: Query CSS values later in size_allocate
...
Move it below the "this widget only changed its position" check.
2018-11-27 06:00:30 +01:00
Timm Bäder
f92745aacf
widget: Save baseline without CSS values applied
...
Similar to what we do with width/height.
2018-11-27 05:59:47 +01:00
Timm Bäder
7aee30bfc2
adwaita: icon-shadow -> -gtk-icon-shadow
2018-11-27 05:41:53 +01:00
Timm Bäder
fe49f83982
colorplane: Convert crosshair rendering to snapshot
...
This is slightly different than the cairo version since the
half-transparent lines now overlap but nobody can see that anyway.
2018-11-27 05:37:38 +01:00
Timm Bäder
059d9376da
colorscale: Cache hue texture
...
Otherwise we regenerate a new one on every snapshot() call.
2018-11-27 05:37:38 +01:00
Timm Bäder
b7963a06ab
widget: Parent widgets may also consume motions
...
This is important when the target widget of an event is not the one that
would otherwise receive the gesture. For example, the GtkSwitch
implementation currently attaches a pan gesture to the switch itself,
but the target widget below the pointer might be the switch slider or
label.
See #1465
2018-11-27 05:37:38 +01:00
Timm Bäder
eeeefb40c7
switch: Shorten size_allocate impl a bit
2018-11-27 05:37:38 +01:00
Jakub Steiner
97d8676b40
Adwaita: help fullcolor app icons
...
- draw a large dropshadow for aboutboxes
- draw an outline for low res
See issues #1434 and #1445 .
2018-11-26 17:33:28 +01:00
Jakub Steiner
6e28d004ae
Adwaita: tone down broders, buttons
...
- very contrasty lines feel dated in today's flat world
- tone down the contrast a little
2018-11-23 17:32:46 +01:00
Jakub Steiner
8d7bf3ad0c
Adwaita: list buttons
...
- tone down buttons when inside lists
Fixes issue #1473
2018-11-22 13:24:49 +01:00
Timm Bäder
d76a0feef6
widget: gdk_display_get_monitor can return NULL
...
Fixes #1466
2018-11-20 12:45:18 +01:00
Timm Bäder
08a07d4ae5
entry: Shorten finalize implementation
...
By using g_clear_pointer and g_clear_object where appropriate.
2018-11-20 12:45:18 +01:00
Zander Brown
ea487b2233
window: Actually emit notify::transient-for
...
Because it seems we weren't doing that
2018-11-19 21:17:01 +00:00
Benjamin Berg
8c9c3e4426
container: Document that removal from foreach is permissible
...
It is permissable to remove a widget using gtk_container_remove from the
gtk_container_foreach callback handler. Document this fact to make it
more discoverable.
Fixes #1461
2018-11-19 13:58:34 +01:00
Christoph Reiter
b061821f24
g-i: Add some nullable annotations
...
Based on grepping arg docs for NULL.
See https://gitlab.gnome.org/GNOME/pygobject/issues/261
2018-11-18 13:36:50 +01:00
Timm Bäder
55faaf1aa1
Merge branch 'jjardon/no_G_TYPE_INSTANCE_GET_PRIVATE' into 'master'
...
Stop using G_TYPE_INSTANCE_GET_PRIVATE completely
See merge request GNOME/gtk!402
2018-11-15 09:59:01 +00:00
Timm Bäder
7aa02b9e95
Merge branch 'include-ft2build.h' into 'master'
...
font chooser: Properly include freetype headers
Closes #1432
See merge request GNOME/gtk!413
2018-11-14 13:30:28 +00:00
Timm Bäder
c65c6ba11f
widget: Fix size-allocate signal docs
2018-11-13 20:54:18 +01:00
Timm Bäder
359d874ddb
Use g_clear_pointer to unparent widgets
2018-11-13 20:53:14 +01:00
Timm Bäder
ade171a2ed
widget: Don't pass a position to ->size_allocate
...
The values have been 0/0 for a long time now, so just drop the
GtkAllocation argument and replace it with width and height.
2018-11-13 16:28:54 +01:00
Timm Bäder
28bd56454d
appchooserbutton: Remove priv pointer
2018-11-13 15:19:07 +01:00
Timm Bäder
87ee7e31a4
appchooserbutton: Inherit from GtkWidget
2018-11-13 15:19:05 +01:00
Timm Bäder
5a3ecb9703
render: Fix a position/size mixup
...
Fixes the foreigndrawing demo.
2018-11-13 14:10:17 +01:00
Timm Bäder
e656f66720
toolbar: Remove dead code
...
The size definitely changes, otherwise ->size_allocate does not get
called.
2018-11-13 14:10:17 +01:00
Timm Bäder
0d47a6c970
toolbar: Remove some unused defines
2018-11-13 14:10:16 +01:00
Ernestas Kulik
edc4b2f7d0
eventcontrollerscroll: Conditionally propagate ::scroll
...
Currently, gtk_event_controller_scroll_handle_event() always returns
TRUE if it is handled, which stops the propagation of the event. If
there’s a single GtkEventControllerScroll in the widget hierarchy, that
means that no others will run, depending on the propagation phase. In
Nautilus, this can be observed when adding a scroll controller to the
GtkScrolledWindow (ctrl-scrolling controls the zoom level) - either the
scrolling or the zooming breaks.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/45
2018-11-12 10:35:37 +01:00
Leonardo Taccari
b3ba2961d2
font chooser: Properly include freetype headers
...
freetype headers should be included via <ft2build.h> and then
indirectly via FT_*_H macros.
Fixes issue #1432 .
2018-11-09 22:13:30 +01:00
Timm Bäder
c2c1acc73e
calendar: Remove unused struct member
2018-11-09 20:18:13 +01:00
Timm Bäder
c44728282c
scrolledwindow: Remove some useless code
...
This is all being done already be the add_class/remove_class calls
before.
2018-11-09 19:37:55 +01:00
Timm Bäder
85a002bf9f
scale: Don't set label css name to "label"
...
That's already the css name of all labels.
2018-11-09 18:59:30 +01:00
Timm Bäder
6eba544ad4
colorscale: Remove x/y arguments from snapshot_scale
...
We only pass 0 anyway.
2018-11-09 18:01:58 +01:00
Jakub Steiner
f610fbfc0e
Adwaita: use HIG grey for bg_color
...
- refresh with a light bg color, use the new color palette
2018-11-09 15:37:08 +01:00