Piotr Drąg
60afd056e0
Update POTFILES.in
2018-07-13 15:11:45 +02:00
Benjamin Otte
4456b06853
window: Update opaque region if background-color changes
...
The opaque region is only set when the background color is opaque. So
we need to do something about it when the background color changes.
However, in the case where a size allocation is going to happen, we
already do this update in size_allocate(), so in that case avoid doing
it twice.
2018-07-13 14:56:04 +02:00
Benjamin Otte
2f72353e0e
gtk-demo: Update aspect-ratio when selecting new puzzle
2018-07-13 14:56:04 +02:00
Benjamin Otte
88af7b44aa
textview: Use snapshot on the sidebars
2018-07-13 14:56:04 +02:00
Benjamin Otte
a7cd1918a8
widgetpaintable: Add a hack to make recursion not infloop
...
Makes the GUADEC talk not crash that I'm supposed to give in 20 minutes.
2018-07-13 14:56:04 +02:00
Benjamin Otte
bcfd1bbd24
widgetpaintable: Redo implementation
...
Instead of instantly invalidating, we now cache the old render node and
do the update in an idle handler.
While that gives us a 1 frame delay, it avoids all the tricky things
like queueing resizes while resizing or queueing draws while drawing.
The only remaining issue (and a *big* one at that) is that a nested
widget paintable will now cause the widget to snapshot its previous
render node when creating a new one. And that one will snapshot its
previous render node, and that one will...
And nothing so far breaks this recursion.
2018-07-13 14:56:04 +02:00
Benjamin Otte
1a5e60be7c
paintable: Fix return_if_fail() statements
...
I always switch them up...
2018-07-13 14:56:04 +02:00
Benjamin Otte
3ce3867403
gl: Don't accidentally use ints for float variables
...
The int was floor()ing the x/y coordinates of glyphs, which could cause
significant repositioning of glyphs when text was scaled via the MVP.
2018-07-13 14:56:04 +02:00
Matthias Clasen
00a61f92b6
docs: Small updates
...
Remove a few references to no-longer-existing APIs.
2018-07-13 10:13:00 +02:00
Matthias Clasen
986daa8225
Merge branch 'dnd-cleanups' into 'master'
...
Dnd cleanups
See merge request GNOME/gtk!228
2018-07-13 07:45:57 +00:00
Matthias Clasen
e72ca43a32
Merge branch 'fix-wayland' into 'master'
...
GtkIMContextSimple: Fix Wayland build when X11 support is disabled
See merge request GNOME/gtk!234
2018-07-12 12:18:59 +00:00
Matthias Clasen
f432c937cc
dnd: Drop gdk_drag_abort
...
This function is never called, so drop it, its vfunc,
and all the backend implementations.
2018-07-12 13:57:45 +02:00
Matthias Clasen
1dd15b5237
dnd: Some documentation updates
...
Don't mention dnd protocols, and do mention the new,
split objects.
2018-07-12 13:57:45 +02:00
Matthias Clasen
5cdbbc6e61
win32: Build fixes
2018-07-12 13:02:42 +02:00
Matthias Clasen
0e2ac0ebf2
wayland: Rename a source file
...
Rename gdkdnd-wayland.c to gdkdrag-wayland.c to go along
with gdkdrop-wayland.c.
2018-07-12 13:02:42 +02:00
Matthias Clasen
c73cb2c154
wayland: Drop an unused field
...
Nothing was using the foreign_dnd_surface anymore, so no
need to create it in the first place.
2018-07-12 13:02:42 +02:00
Matthias Clasen
a756caa106
dnd: Drop suggested_action
...
The only user of this field was the x11 backend, and it
turns out that it does not need to store the value at all.
2018-07-12 13:02:42 +02:00
Matthias Clasen
da22ba3b86
drag: Split a setter
...
In preparation for moving the suggested action
to the x11 backend, split the setter off.
2018-07-12 13:02:42 +02:00
Matthias Clasen
7a0a92f2b6
win32: Stop using gdk_drag_get_suggested_action
...
The suggested action is not set or used in the win32
information, so don't put it in logs either.
2018-07-12 13:02:42 +02:00
Matthias Clasen
d927c3bee0
GdkDrop: drop the priv struct
...
Its not needed.
2018-07-12 13:02:42 +02:00
Matthias Clasen
59c2efbcd6
Add a GdkDrag::actions property
...
To go along the GdkDrop::actions property.
2018-07-12 13:02:42 +02:00
Matthias Clasen
94af080fb6
Rename a property
...
Change GdkDrag::action to GdkDrag::selected-action, which is
more clearly different from actions, and follows the existing
name of the struct field and getter.
2018-07-12 13:02:42 +02:00
Matthias Clasen
40841ec3be
GdkDrag: Drop the priv struct
...
We don't need it.
2018-07-12 13:02:42 +02:00
Matthias Clasen
f69bb2fb2b
wayland: set a cursor when starting a drag
...
Otherwise, we wont have one.
2018-07-12 13:02:42 +02:00
Matthias Clasen
db0b9f61ae
dnd: Add a GdkDrag::action property
...
This lets us drop the ::action-changed signal for the
property change notification. But, can just as well move
the signal class handers which just update the cursor
to the ::action setter. No need to do this in the backends.
2018-07-12 13:02:42 +02:00
Matthias Clasen
63ab523146
wayland: Remove an unused field
...
GdkDragWayland.suggested_action was entirely unused, so drop it.
2018-07-12 13:02:42 +02:00
Matthias Clasen
b94c3166bf
dnd: Rename gtk_drag_begin_with_coordinates
...
Now that the coordiate-less variant is gone,
rename this back to the shorter gtk_drag_begin.
2018-07-12 13:02:42 +02:00
Daniel Boles
7030e08f9c
Merge branch 'master' into 'master'
...
HighContrast: Restore expander size
Closes #1046
See merge request GNOME/gtk!167
2018-07-09 17:28:49 +00:00
Timm Bäder
2cc6a3ee5c
widget factory: Use GtkPicture for background selection
...
Showing those background images as 16×16 icons doesn't look very nice.
2018-07-08 21:50:59 +02:00
Timm Bäder
3dd188fe7e
gl renderer: Cache blurred outset shadow nodes
...
Since these are particularly expensive to render and we have a pretty
big one used in every client-side decorated window.
2018-07-08 21:50:59 +02:00
Timm Bäder
d41603d82a
aboutdialog: Remove priv pointer
2018-07-08 21:50:59 +02:00
Timm Bäder
f7aff03c72
layout: Remove priv pointer
2018-07-08 21:50:59 +02:00
Timm Bäder
a0b8e32462
rendernodes: Fix unconditionally impossible diffs
...
Some of the _diff implementations did a whole bunch of work just to
throw it away afterwards and invalidate the entire union of the two
render nodes, most notably the two clip nodes. Fix this to only call
gsk_render_node_diff_impossible if the previous if-condition is FALSE
and not always.
2018-07-08 21:50:59 +02:00
Timm Bäder
50f76eb8cc
GskRenderer: Add missing nullable annotation
2018-07-08 21:50:59 +02:00
Timm Bäder
9959ea98cd
Revert "snapshot: merge container nodes"
...
This reverts commit 622a150bb4
.
2018-07-08 21:50:59 +02:00
Emmanuel Gil Peyrot
8ca3ac1970
GtkIMContextSimple: Fix Wayland build when X11 support is disabled.
2018-07-08 20:11:01 +02:00
Balázs Meskó
27ba2411f0
Update Hungarian translation
2018-07-08 14:04:15 +00:00
Timm Bäder
a6920855ea
Implement GtkInspectorLayoutOverlay
...
To properly replace the old "show layout borders" option.
2018-07-08 11:26:12 +02:00
Timm Bäder
c85e2401fa
treeview: Fix column visibility check
...
This is still fallout from the bin_window removal. We aren't moving the
GdkWindow/GdkSurface anymore so we have to account for the scrolling
ourselves.
2018-07-08 10:32:12 +02:00
Timm Bäder
6fdcafc94a
treeview: Move column header widgets when scrolling
...
Since those are widgets and widgets need to be size-allocate'd properly,
we need to queue an allocate, as well as actually add the hadjustment's
value to the column x position.
Fixes #1202
2018-07-08 10:04:27 +02:00
Timm Bäder
9bab218314
aspectframe: Remove priv pointer
2018-07-08 10:02:43 +02:00
Timm Bäder
2854635850
scalebutton: Remove priv pointer
2018-07-08 09:41:15 +02:00
Timm Bäder
a976aa9740
searchbar: Ignore key presses when unmapped
...
The purpose of a searchbar is to start a search on visible widgets when
a key is pressed. Starting a search on e.g. a stack page that is not
visible at all is not very useful.
2018-07-08 09:41:15 +02:00
Timm Bäder
074eb2a19d
accellabel: Add newline between consecutive if statements
2018-07-08 09:41:15 +02:00
Timm Bäder
96812450fa
listbox demo: Hide extra_buttons_box by default
...
It should only show up when hovering the row.
2018-07-08 09:41:15 +02:00
Timm Bäder
93c688cd93
range: Remove has_origin flag
...
It's equivalent to the highlight_widget being !NULL.
2018-07-08 09:41:15 +02:00
Timm Bäder
53afc4a9d9
dialog: Remove priv pointer
2018-07-08 09:41:15 +02:00
Timm Bäder
c96077590b
dialog: Remove some GtkVBox references
2018-07-08 09:41:15 +02:00
Timm Bäder
6e47d0bf4a
GtkSeparatorToolItem: Remove draw flag
...
We can as well query the current value of the flag using
gtk_style_context_has_class.
2018-07-08 09:41:15 +02:00
Timm Bäder
50b79ae0ab
GtkSeparatorToolItem: Remove priv pointer
2018-07-08 09:41:15 +02:00