Commit Graph

50888 Commits

Author SHA1 Message Date
Timm Bäder
999e4be975 spinbutton: Add text property 2017-07-19 12:45:24 +02:00
Timm Bäder
cb03331fd4 Entry: Remove gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
daacb43e2c toolbar: Remove gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
17ee6ed644 cellrendererspin: Include gtkentry.h
The symbols aren't in gtkspinbutton.h anymore.
2017-07-19 12:45:24 +02:00
Timm Bäder
c81776fd14 flowbox: Initialize allocation 2017-07-19 12:45:24 +02:00
Timm Bäder
22bfdd9177 spinbuttonaccessible: Inherit from GtkWidgetAccessible 2017-07-19 12:45:24 +02:00
Timm Bäder
23bc93d9ae spinbutton: Remove call to GtkSpinButton API
The condition will never be true since spinbuttons aren't entries
anymore.
2017-07-19 12:45:24 +02:00
Timm Bäder
f3ef899489 spinbutton: Inherit from GtkWidget
Use a box, an entry and the current 2 buttons.
Remaining problems: Entry sizing and activation.
2017-07-19 12:45:24 +02:00
Timm Bäder
41f2b7c085 modelbutton: Remove last gadget usages
And fix the clip calculation
2017-07-19 12:45:24 +02:00
Timm Bäder
7e10220ddd label: Fix clipping
We were using an uninitialized value here.
2017-07-19 12:45:24 +02:00
Timm Bäder
17e6438054 widget-factory: Remove invisible-char usage for spin buttons 2017-07-19 12:45:24 +02:00
Timm Bäder
0e359fae03 frame: Remove empty finalize implementation 2017-07-19 12:45:24 +02:00
Timm Bäder
7efc96ed60 separator: Remove gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
4f56de74ac label: Remove gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
3ab46046cc spinner: Set clip 2017-07-19 12:45:24 +02:00
Timm Bäder
9e2d793609 frame: Remove gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
5a602623d9 widget: Add private gtk_widget_get_content_allocation 2017-07-19 12:45:24 +02:00
Timm Bäder
c8d1af57ad stackcombo: Set clip 2017-07-19 12:45:24 +02:00
Timm Bäder
a6e5ff7c68 modelbutton: Stop using the button's gadget 2017-07-19 12:45:24 +02:00
Timm Bäder
676e2a9c75 set clip of more widgets 2017-07-19 12:45:24 +02:00
Timm Bäder
9507fd31df image: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
d5316c5863 colorswatch: Remove gadget usage 2017-07-19 12:45:23 +02:00
Timm Bäder
34699184b2 icon: Stop calling gtk_widget_set_allocation
The allocation passed to size-allocate is the content allocation so this
call doesn't make sense anymore.
2017-07-19 12:45:23 +02:00
Timm Bäder
33c07312a1 button: Remove gadget usage
Can't remove it entirely yet, since GtkCheckButton still uses it
2017-07-19 12:45:23 +02:00
Timm Bäder
c169d5456c fontbutton: Call the css node "fontbutton"
Otherwise the default looks like a button inside a button.
2017-07-19 12:45:23 +02:00
Timm Bäder
0463722aba menuitem: Stop using gadget
Once again, we can't really delete it yet since other widgets use it...
2017-07-19 12:45:23 +02:00
Timm Bäder
1ee098f573 checkbutton: Don't use parent button's gadget
check buttons showing their indicator still use the internal boxgadget
and have therefore the wrong size, but this gets us closer.
2017-07-19 12:45:23 +02:00
Timm Bäder
7ae147e732 expander: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
14e72d78e5 gizmo: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
485e3ff5c0 progressbar: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
dd24e66d8c range: Remove gadget usage 2017-07-19 12:45:23 +02:00
Timm Bäder
93c8b39900 grid: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
f6a742640d box: Remove gadget usage
Keep the gadget member in the private struct around for now so
GtkButtonBox doesn't break terribly.
2017-07-19 12:45:23 +02:00
Timm Bäder
fff9ba659d widget: Union clip with allocation and box shadow size 2017-07-19 12:45:23 +02:00
Timm Bäder
1a373d3788 switch: Remove gadget 2017-07-19 12:45:23 +02:00
Timm Bäder
43d4497eac listbox: Remove gadgets 2017-07-19 12:45:23 +02:00
Timm Bäder
510a3069cf widget: Pass content allocation to size-allocate vfunc 2017-07-19 12:45:23 +02:00
Timm Bäder
3253dfd941 headerbar: Remove gadget
both drawing and sizing are done through GtkWidget now.
2017-07-19 12:45:23 +02:00
Timm Bäder
29be554a22 sizerequest: Fix min size with widget margins 2017-07-19 12:45:23 +02:00
Timm Bäder
17af3aa937 sizerequest: Stop checking orientation in query_size_for_orientation
Since we have ->measure now, we can implement this code more elegantly.
2017-07-19 12:45:23 +02:00
Timm Bäder
aaf2c2896a sizerequest: Remove for_size parameter from push_recursion_check
It's not needed anymore after also fixing the warning message to not
mention the old get_preferred* functions.
2017-07-19 12:45:23 +02:00
Timm Bäder
9c879076a6 sizerequest: Make sure widget sizes stay positive
They can otherwise become negative, e.g. when large negative css
margins are applied.
2017-07-19 12:45:23 +02:00
Timm Bäder
0d6ea25771 sizerequest: Make size groups "work"
We have to query the css margin/border/padding values for all widgets
in the size group.
2017-07-19 12:45:23 +02:00
Timm Bäder
d3c02338ad sizerequest: Move css handling to gtk_widget_measure
We need to adjust the passed for_size to fit into the content allocation
of the widget.
That also means that we can't call gtk_widget_measure(widget) inside
gtk_widget_measure(widget) since now the for_size will be adjusted
twice.
2017-07-19 12:45:23 +02:00
Timm Bäder
c5af313721 sizerequest: Honor css min size 2017-07-19 12:45:22 +02:00
Timm Bäder
ca0272e75c sizerequest: Fix indentation 2017-07-19 12:45:22 +02:00
Timm Bäder
0d1b886eff scrolledwindow: Remove css box drawing 2017-07-19 12:45:22 +02:00
Timm Bäder
55d7688f53 paned: Remove css box drawing 2017-07-19 12:45:22 +02:00
Timm Bäder
0944105e7c separator: Remove css box drawing 2017-07-19 12:45:22 +02:00
Timm Bäder
ed8057e84b stack: Remove css box drawing 2017-07-19 12:45:22 +02:00