[gtk+] cssgadget: fix fallback case
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssgadget: fix fallback case
- Date: Mon, 21 Dec 2015 17:27:51 +0000 (UTC)
commit 5611e81bbc936090875174fe912dd952fc863440
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Dec 20 18:23:46 2015 -0800
cssgadget: fix fallback case
We should be resetting the height here, not the width.
gtk/gtkcssgadget.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index 7f20f24..b56d023 100644
--- a/gtk/gtkcssgadget.c
+++ b/gtk/gtkcssgadget.c
@@ -563,7 +563,7 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget,
g_warning ("Negative content height while allocating gadget (node %s, owner %s)\n",
gtk_css_node_get_name (gtk_css_gadget_get_node (gadget)),
G_OBJECT_TYPE_NAME (gtk_css_gadget_get_owner (gadget)));
- content_allocation.width = 0;
+ content_allocation.height = 0;
}
GTK_CSS_GADGET_GET_CLASS (gadget)->allocate (gadget, &content_allocation, baseline, &content_clip);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]