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
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
Timm Bäder
6b4709ea3c
GtkApplication: Remove priv pointer
2018-07-08 09:41:15 +02:00
Timm Bäder
f3a83abb54
colorswatch: Remove priv pointer
2018-07-08 09:41:15 +02:00
Timm Bäder
33166b7357
render: Remove gtk_render_slider
...
The only thing it was doing is render background and frame, which you
get from using a widget for your slider anyway.
2018-07-08 09:41:15 +02:00
Timm Bäder
bb31ce1168
renderborder: Remove some unused API
2018-07-08 09:41:15 +02:00
Timm Bäder
dbf32933bf
main: Don't look at first GTK_DISPLAY_DEBUG_CHECK parameter...
...
... if none of the debug displays have any debug flags set. This way, we
can ignore the first parameter to e.g. GTK_DISPLAY_NOTE, which is
usually a call to gtk_widget_get_display.
Before this patch, gtk_widget_get_display was the slowest part of
gtk_widget_query_size_for_orientation.
2018-07-08 09:41:15 +02:00
Timm Bäder
af8fe182c8
Fix a few documentation warnings
2018-07-08 09:41:15 +02:00
Timm Bäder
731f0d4d01
Merge branch 'gtk-picture-docs' into 'master'
...
docs: Add GtkPicture to types list
See merge request GNOME/gtk!233
2018-07-07 06:30:37 +00:00
Thomas Bechtold
e42373df89
docs: Add GtkPicture to types list
...
We want signals, arguments/parameters and position in the hierarchy to
be shown in the documentation for GtkPicture. So fix the types list.
See
https://developer.gnome.org/gtk-doc-manual/unstable/metafiles_types.html.en
2018-07-06 22:14:26 +02:00
Timm Bäder
da8050979e
fixed: Remove child list
...
Use the child widget list from GtkWidget and attach x/y positions via a
qdata.
2018-07-05 19:08:19 +02:00
Timm Bäder
4dd1ff6dd2
GtkLayout: Remove freeze_count member
...
Unused.
2018-07-05 19:08:19 +02:00
Timm Bäder
8c403c43f0
spinbutton: Keep GParamSpecs around
...
notify_by_pspec is more efficient and this way the source file is more
in line with the others.
2018-07-05 19:08:19 +02:00
Emmanuele Bassi
2feb5c93ca
ci: Update the image for the Flatpak jobs
...
The gnome-nightly-oci registry was moved to gitlab.gnome.org, so we
need to change the image we use when building Flatpak bundles in our
CI pipeline.
2018-07-04 18:32:59 +01:00
Emmanuele Bassi
9924a92e70
Merge branch '1140-gtk_printer_get_hard_margins_for_paper_size-is-not-external' into 'master'
...
Resolve "gtk_printer_get_hard_margins_for_paper_size() is not external"
Closes #1140
See merge request GNOME/gtk!229
2018-07-04 16:55:34 +00:00
Kjell Ahlstedt
6c8988e445
gtkprinter: Make gtk_printer_get_hard_margins_for_paper_size() public
...
The declaration in gtkprinter.h shall be preceded by GDK_AVAILABLE_IN_ALL,
or else the function can't be used in application programs.
Closes #1140
2018-07-04 18:40:33 +02:00
Benjamin Otte
9fb3b84253
rendernode: Make offset nodes use floats
...
It's OpenGL stuff, use floats.
2018-07-04 15:05:37 +02:00
Benjamin Otte
3439862634
gtkmediafile: Don't leak all the images
...
We were leaking the GBytes for the image memory, which is a
noticeable memleak to anyone who's casually running a memory monitor.
Go KDE users!
Closes #1200
2018-07-04 15:05:02 +02:00
Benjamin Otte
93c5455796
iconhelper: Plug memleak
2018-07-04 15:04:04 +02:00
Benjamin Otte
e665667bff
mediafile: Check if media files are open when trying to play
...
If no file is open, refuse to play.
2018-07-04 06:15:33 +02:00
Benjamin Otte
3ca59b8701
css: Don't do indirections
...
We don't need to look up the property by name to query its ID when we
know the ID already because it's inside an enum.
2018-07-04 06:15:33 +02:00
Benjamin Otte
fba0b359d4
css: Report sizes as absolute
...
All PangoFontDescriptions that GTK creates now use
pango_font_description_set_absolute_size().
2018-07-04 06:15:33 +02:00