Timm Bäder
1ce35597d1
modelbutton: Compute clip directly
2017-07-19 12:45:35 +02:00
Timm Bäder
0779aaddf1
flowbox: Compute clip directly
2017-07-19 12:45:35 +02:00
Timm Bäder
701695b8ac
spinbutton: Fix gesture state
...
We claimed the gesture previously to keep it from propagating to the
underlying entry, but now that the entry is in a box with the two
buttons, we can do this properly and restore the previous long-press
behavior.
2017-07-19 12:45:35 +02:00
Timm Bäder
c41291df5e
checkmenuitem: Fix indicator state
...
We need to remove the inconsistent and checked state first so we
actually remove it.
2017-07-19 12:45:35 +02:00
Timm Bäder
36534d0e89
widget-factory: Show the status bar by default
...
Since the action is also active by default.
2017-07-19 12:45:35 +02:00
Timm Bäder
30ae4317f5
testnotebookdnd: quit when the toplevel gets closed
2017-07-19 12:45:35 +02:00
Timm Bäder
1408f8ffbf
menu: Popup at window coordinates if widget is given
...
Since widget allocations are now relative to the parent's origin, we
need to pass the window allocation here.
2017-07-19 12:45:35 +02:00
Timm Bäder
430a704409
window: Don't use allocated size in snapshot
...
Those are the wrong values.
2017-07-19 12:45:35 +02:00
Timm Bäder
2f583d1bdd
popover: Create subsurface on wayland
2017-07-19 12:45:35 +02:00
Timm Bäder
e83f90efbe
widget: Fix drawing invalidation with windowed widgets
...
E.g. popovers. Find the parent of the given widget with the window and
invalidate the given region in that window.
2017-07-19 12:45:34 +02:00
Timm Bäder
ed861f09c9
popover: "Fix" child allocation
...
This is still wrong but will be fixed in the future.
2017-07-19 12:45:34 +02:00
Timm Bäder
c4c222a9a0
window: Stop wrapping popovers in another window
...
GtkPopover is already a windowed widget.
2017-07-19 12:45:34 +02:00
Timm Bäder
172455b526
Replace a few get_content_allocation calls with get_content_size
...
The position of the content allocation is almost never relevant since
it's 0/0 for measure, size_allocate and snapshot.
2017-07-19 12:45:34 +02:00
Timm Bäder
6698c092d3
Remove all widget style property code
2017-07-19 12:45:34 +02:00
Timm Bäder
1d65fe0519
treeviewaccessible: Don't rely on nonexistent style properties
...
The expander-size style property has been gone for a long time.
2017-07-19 12:45:34 +02:00
Timm Bäder
dc52e15d4f
adwaita: Remove style properties
...
They don't exist anymore.
2017-07-19 12:45:34 +02:00
Timm Bäder
87cca6ff2c
notebook: Remove style properties
...
Hardcode the default values until someone comes up with a proposal for a
better way.
2017-07-19 12:45:34 +02:00
Timm Bäder
52c75f4840
calendar: Remove style properties
...
Hardcode the default values until someone comes and fixes the actual
widget.
2017-07-19 12:45:34 +02:00
Timm Bäder
e731fd0633
widget: Remove _set_simple_clip
...
Unused.
2017-07-19 12:45:34 +02:00
Timm Bäder
515a01e83a
spinner: Use get_content_size
2017-07-19 12:45:34 +02:00
Timm Bäder
47a955bebf
pathbar: Compute widget clip directly
...
Instead of relying on gtk_widge_set_simple_clip
2017-07-19 12:45:34 +02:00
Timm Bäder
9c85bbb0da
toolitem: Remove size_allocate implementation
...
A GtkToolItem is a GtkBin and that already does exactly what this
implementation did.
2017-07-19 12:45:34 +02:00
Timm Bäder
a7151c8f30
widget: Transform clips into right coordinate space
...
The values passed to gtk_widget_set_clip are relative to the widget's
origin, but we need the values to be relative to priv->allocation.
2017-07-19 12:45:34 +02:00
Timm Bäder
bb5bcc4f9f
paned: Draw handle separator at the right location
2017-07-19 12:45:34 +02:00
Timm Bäder
98aa1d48d9
paned: Make sure we set the correct clips
...
They are still too big, i.e. clipped-off children enlarge the paned's
clip but at least redrawing works and smaller clips are just an
optimization.
2017-07-19 12:45:34 +02:00
Timm Bäder
9aed933d9d
switch: Remove in_switch flag
...
It's pretty simple and less code to just check whether the gesture
coords are inside the widget at the one place where we actually used the
flag.
2017-07-19 12:45:34 +02:00
Timm Bäder
07ea246215
widget: Consider opacity when drawing toplevels
...
This used to work in gtk3 and is used e.g. in the inspector when using
wayland.
2017-07-19 12:45:34 +02:00
Timm Bäder
a7b712ce7b
switch: Fix handle dragging with padding applied
...
We only move the handle inside the content allocation, so we need to use
the content width when calculating the new handle_pos.
2017-07-19 12:45:33 +02:00
Timm Bäder
5f11b05834
layout: Remove bin_window
2017-07-19 12:45:33 +02:00
Timm Bäder
726ff265d5
fixed: Remove window
2017-07-19 12:45:33 +02:00
Timm Bäder
3e8e901ca5
button: Fix in_button checks
...
The gesture coords are relative to the button's origin, so use
gtk_widget_get_own_allocation to check if the coords are inside the
button.
2017-07-19 12:45:33 +02:00
Timm Bäder
458dbcd8a0
expander: Fix pressed_in_title check
...
gesture coords are relative to the expander widget, the title allocation
is relative to the box child.
2017-07-19 12:45:33 +02:00
Timm Bäder
50e5e81386
Remove GtkCssGadget
2017-07-19 12:45:33 +02:00
Timm Bäder
548c38201b
iconhelper: Inherit from GObject
...
Nothing is using any gadget API on iconhelpers anymore.
2017-07-19 12:45:33 +02:00
Timm Bäder
49d201118a
spinbutton: Remove unused import
2017-07-19 12:45:33 +02:00
Timm Bäder
43058c4f18
scrolledwindow: Fix indicator hiding
...
Only hiding the indicator if the widget is not mapped won't work.
2017-07-19 12:45:33 +02:00
Timm Bäder
f2471442e1
checkmenuitem: Fix indicator allocation
...
base point is the menu item's content allocation now.
2017-07-19 12:45:33 +02:00
Timm Bäder
46fc2f8ee2
range: Fix slider allocation
2017-07-19 12:45:33 +02:00
Timm Bäder
81c2a66b35
widget: Add new allocation accessors
2017-07-19 12:45:33 +02:00
Timm Bäder
4f0881d060
Remove GtkCssCustomGadget
...
Unused.
2017-07-19 12:45:33 +02:00
Timm Bäder
197c4dbd98
entry: Replace progress gadget with a progressbar
2017-07-19 12:45:33 +02:00
Timm Bäder
5697d66d9b
scrollbar: notify when setting the orientation
2017-07-19 12:45:33 +02:00
Timm Bäder
cc8ebe8da0
GtkAccelLabel: Add use-underline property
2017-07-19 12:45:33 +02:00
Timm Bäder
9c67c44250
spinbutton: Fix property notification
2017-07-19 12:45:33 +02:00
Timm Bäder
33732e9752
cssprovider test: Remove style property test case
...
It's getting harder and harder to find a dummy style property to use
here, so remove the test case since style properties should be going
away soon anyway.
2017-07-19 12:45:33 +02:00
Timm Bäder
c25337063c
entry: Use images for icons
2017-07-19 12:45:33 +02:00
Timm Bäder
95f68b9b21
image: Add private _get_definition
2017-07-19 12:45:33 +02:00
Timm Bäder
b2c08bb9ca
label: Fix layout snapshot coordinates
...
No need to convert anything to "window coordinates" anymore.
2017-07-19 12:45:32 +02:00
Timm Bäder
fb36adc7d9
scrolledwindow: Fix scrollbar allocations
...
Use the content size everywhere. Fixes scrollbar positions with padding
and/or css borders applied to the scrolledwindow.
2017-07-19 12:45:32 +02:00
Timm Bäder
7f5d1d7cea
scrolledwindow: Fix on_scrollbar check
...
The event widget is always the toplevel window, so use the event target
and check the GtkScrollbar ancestor.
2017-07-19 12:45:32 +02:00