[gtk+/wip/matthiasc/gadget] checkbutton: Fix a problem with the gadget conversion
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/gadget] checkbutton: Fix a problem with the gadget conversion
- Date: Wed, 9 Dec 2015 04:25:31 +0000 (UTC)
commit 46d8de23f0dffdb963b52656032a87952d07cf5b
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Dec 8 23:24:28 2015 -0500
checkbutton: Fix a problem with the gadget conversion
Now that we are no longer chaining up to the button size_allocate,
we must manually move the buttons event window.
gtk/gtkcheckbutton.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkcheckbutton.c b/gtk/gtkcheckbutton.c
index 3cdebf8..25311fd 100644
--- a/gtk/gtkcheckbutton.c
+++ b/gtk/gtkcheckbutton.c
@@ -660,6 +660,13 @@ gtk_check_button_size_allocate (GtkWidget *widget,
gtk_widget_set_allocation (widget, allocation);
+ if (gtk_widget_get_realized (widget))
+ gdk_window_move_resize (GTK_BUTTON (widget)->priv->event_window,
+ allocation->x,
+ allocation->y,
+ allocation->width,
+ allocation->height);
+
gtk_css_gadget_allocate (gadget,
allocation,
gtk_widget_get_allocated_baseline (widget),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]