[gtk+] cssgadget: print more information when warning
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] cssgadget: print more information when warning
- Date: Mon, 21 Dec 2015 17:27:56 +0000 (UTC)
commit 105b45dce0cfa33eb0f60d672ab94d9a1b5ab75d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Dec 20 18:29:48 2015 -0800
cssgadget: print more information when warning
gtk/gtkcssgadget.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkcssgadget.c b/gtk/gtkcssgadget.c
index b56d023..7f8abb0 100644
--- a/gtk/gtkcssgadget.c
+++ b/gtk/gtkcssgadget.c
@@ -552,7 +552,10 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget,
if (content_allocation.width < 0)
{
- g_warning ("Negative content width while allocating gadget (node %s, owner %s)\n",
+ g_warning ("Negative content width %d (allocation %d, extents %dx%d) "
+ "while allocating gadget (node %s, owner %s)\n",
+ content_allocation.width, allocation->width,
+ extents.left, extents.right,
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;
@@ -560,7 +563,10 @@ gtk_css_gadget_allocate (GtkCssGadget *gadget,
if (content_allocation.height < 0)
{
- g_warning ("Negative content height while allocating gadget (node %s, owner %s)\n",
+ g_warning ("Negative content height %d (allocation %d, extents %dx%d) "
+ "while allocating gadget (node %s, owner %s)\n",
+ content_allocation.height, allocation->height,
+ extents.top, extents.bottom,
gtk_css_node_get_name (gtk_css_gadget_get_node (gadget)),
G_OBJECT_TYPE_NAME (gtk_css_gadget_get_owner (gadget)));
content_allocation.height = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]