[vte] widget: Improve debug output
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] widget: Improve debug output
- Date: Tue, 26 Sep 2017 11:39:19 +0000 (UTC)
commit 6684fc6ba4e85065802ca000d4d2d3ccbf922214
Author: Christian Persch <chpe src gnome org>
Date: Tue Sep 26 13:38:23 2017 +0200
widget: Improve debug output
Also print padding updates for the WIDGET_SIZE debug category.
src/vte.cc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index e14ff4d..bec492f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4514,7 +4514,7 @@ VteTerminalPrivate::widget_style_updated()
gtk_style_context_get_padding(context, gtk_style_context_get_state(context),
&new_padding);
if (memcmp(&new_padding, &m_padding, sizeof(GtkBorder)) != 0) {
- _vte_debug_print(VTE_DEBUG_MISC,
+ _vte_debug_print(VTE_DEBUG_MISC | VTE_DEBUG_WIDGET_SIZE,
"Setting padding to (%d,%d,%d,%d)\n",
new_padding.left, new_padding.right,
new_padding.top, new_padding.bottom);
@@ -4522,6 +4522,12 @@ VteTerminalPrivate::widget_style_updated()
m_padding = new_padding;
update_view_extents();
gtk_widget_queue_resize(m_widget);
+ } else {
+ _vte_debug_print(VTE_DEBUG_MISC | VTE_DEBUG_WIDGET_SIZE,
+ "Keeping padding the same at (%d,%d,%d,%d)\n",
+ new_padding.left, new_padding.right,
+ new_padding.top, new_padding.bottom);
+
}
float aspect;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]