vte r2229 - in trunk: . src



Author: chpe
Date: Sat Nov 29 17:52:12 2008
New Revision: 2229
URL: http://svn.gnome.org/viewvc/vte?rev=2229&view=rev

Log:
	* src/debug.c: (_vte_debug_init):
	* src/debug.h:
	* src/vte.c: (vte_terminal_size_request),
	(vte_terminal_size_allocate): Add a specific debug flag for widget
	size-request/size-allocation.

Modified:
   trunk/ChangeLog
   trunk/src/debug.c
   trunk/src/debug.h
   trunk/src/vte.c

Modified: trunk/src/debug.c
==============================================================================
--- trunk/src/debug.c	(original)
+++ trunk/src/debug.c	Sat Nov 29 17:52:12 2008
@@ -48,7 +48,8 @@
     { "timeout",      VTE_DEBUG_TIMEOUT      },
     { "draw",         VTE_DEBUG_DRAW         },
     { "ally",         VTE_DEBUG_ALLY         },
-    { "pangocairo",   VTE_DEBUG_PANGOCAIRO   }
+    { "pangocairo",   VTE_DEBUG_PANGOCAIRO   },
+    { "widget-size",  VTE_DEBUG_WIDGET_SIZE  }
   };
 
   _vte_debug_flags = g_parse_debug_string (g_getenv("VTE_DEBUG"),

Modified: trunk/src/debug.h
==============================================================================
--- trunk/src/debug.h	(original)
+++ trunk/src/debug.h	Sat Nov 29 17:52:12 2008
@@ -47,7 +47,8 @@
 	VTE_DEBUG_DRAW		= 1 << 17,
 	VTE_DEBUG_ALLY		= 1 << 18,
 	VTE_DEBUG_ADJ		= 1 << 19,
-	VTE_DEBUG_PANGOCAIRO    = 1 << 20
+	VTE_DEBUG_PANGOCAIRO    = 1 << 20,
+	VTE_DEBUG_WIDGET_SIZE   = 1 << 21
 } VteDebugFlags;
 
 void _vte_debug_init(void);

Modified: trunk/src/vte.c
==============================================================================
--- trunk/src/vte.c	(original)
+++ trunk/src/vte.c	Sat Nov 29 17:52:12 2008
@@ -8006,8 +8006,9 @@
 	requisition->width += VTE_PAD_WIDTH * 2;
 	requisition->height += VTE_PAD_WIDTH * 2;
 
-	_vte_debug_print(VTE_DEBUG_MISC,
-			"Size request is %dx%d for %ldx%ld cells.\n",
+	_vte_debug_print(VTE_DEBUG_WIDGET_SIZE,
+			"[Terminal %p] Size request is %dx%d for %ldx%ld cells.\n",
+                        terminal,
 			requisition->width, requisition->height,
 			(terminal->pvt->pty_master != -1) ?
 			terminal->column_count :
@@ -8035,8 +8036,9 @@
 	height = (allocation->height - (2 * VTE_PAD_WIDTH)) /
 		 terminal->char_height;
 
-	_vte_debug_print(VTE_DEBUG_MISC,
-			"Sizing window to %dx%d (%ldx%ld).\n",
+	_vte_debug_print(VTE_DEBUG_WIDGET_SIZE,
+			"[Terminal %p] Sizing window to %dx%d (%ldx%ld).\n",
+                        terminal,
 			allocation->width, allocation->height,
 			width, height);
 	repaint = widget->allocation.width != allocation->width ||



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]