[gtk: 1/2] Broadway: Fix handling of debug nodes
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] Broadway: Fix handling of debug nodes
- Date: Wed, 26 Aug 2020 12:38:10 +0000 (UTC)
commit 918996b047d093eb2ea2df20d37f284b0ddaa016
Author: Alexander Larsson <alexl redhat com>
Date: Wed Aug 26 14:01:00 2020 +0200
Broadway: Fix handling of debug nodes
The debug nodes have id BROADWAY_NODE_DEBUG, which happens to be "12".
So, don't hardcode the wrong number "14".
gdk/broadway/broadway.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 21554546c2..6544774dc4 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -809,7 +809,7 @@ TransformNodes.prototype.insertNode = function(parent, previousSibling, is_tople
}
break;
- case 14: // DEBUG
+ case BROADWAY_NODE_DEBUG:
{
var str = this.decode_string();
var div = this.createDiv(id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]