diff options
author | Timm Bäder <mail@baedert.org> | 2017-07-11 09:58:21 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:16 -0400 |
commit | 36ab70ddf5dbe993eb995bd9157f347258765922 (patch) | |
tree | 508f0ca9cf6b4fc990e88b0a5892b50f594890fe /gtk/gtkspinner.c | |
parent | 95bd58ac00ede771ca80684e143fffdc61ff2194 (diff) | |
download | gtk+-36ab70ddf5dbe993eb995bd9157f347258765922.tar.gz |
widget: Add baseline and out_clip parameters to size-allocate
Since setting a clip is mandatory for almost all widgets, we can as well
change the size-allocate signature to include a out_clip parameter, just
like GtkCssGadget did. And since we now always propagate baselines, we
might as well pass that one on to size-allocate.
This way we can also make sure to transform the clip returned from
size-allocate to parent-coordinates, i.e. the same coordinate space
priv->allocation is in.
Diffstat (limited to 'gtk/gtkspinner.c')
-rw-r--r-- | gtk/gtkspinner.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/gtk/gtkspinner.c b/gtk/gtkspinner.c index 12c98aa39c..3b4fc7dc63 100644 --- a/gtk/gtkspinner.c +++ b/gtk/gtkspinner.c @@ -104,13 +104,6 @@ gtk_spinner_measure (GtkWidget *widget, } static void -gtk_spinner_size_allocate (GtkWidget *widget, - GtkAllocation *allocation) -{ - gtk_widget_set_clip (widget, allocation); -} - -static void gtk_spinner_snapshot (GtkWidget *widget, GtkSnapshot *snapshot) { @@ -195,7 +188,6 @@ gtk_spinner_class_init (GtkSpinnerClass *klass) gobject_class->set_property = gtk_spinner_set_property; widget_class = GTK_WIDGET_CLASS(klass); - widget_class->size_allocate = gtk_spinner_size_allocate; widget_class->snapshot = gtk_spinner_snapshot; widget_class->measure = gtk_spinner_measure; |