diff options
author | Timm Bäder <mail@baedert.org> | 2017-05-04 11:27:45 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:11 -0400 |
commit | 2cd1a984cfe1c659c72e4cee98e231aee0f96e4e (patch) | |
tree | 6f866a3fd2508a429dcbbb4a01ac1338458aca68 /gtk/gtkfontbutton.c | |
parent | 3094b341ed1430aa1f8bfd4627058a72a3072433 (diff) | |
download | gtk+-2cd1a984cfe1c659c72e4cee98e231aee0f96e4e.tar.gz |
set clip of more widgets
Diffstat (limited to 'gtk/gtkfontbutton.c')
-rw-r--r-- | gtk/gtkfontbutton.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkfontbutton.c b/gtk/gtkfontbutton.c index 10c73d7640..4f06b92d94 100644 --- a/gtk/gtkfontbutton.c +++ b/gtk/gtkfontbutton.c @@ -468,10 +468,12 @@ gtk_font_button_size_allocate (GtkWidget *widget, { GtkFontButton *button = GTK_FONT_BUTTON (widget); GtkFontButtonPrivate *priv = gtk_font_button_get_instance_private (button); - - GTK_WIDGET_CLASS (gtk_font_button_parent_class)->size_allocate (widget, allocation); + GtkAllocation clip = *allocation; gtk_widget_size_allocate (priv->button, allocation); + gtk_widget_get_clip (priv->button, &clip); + + gtk_widget_set_clip (widget, &clip); } static void |