Debug headerbar layout info

This commit is contained in:
Rafał Dzięgiel
2021-02-22 12:41:44 +01:00
parent 848fcf892b
commit 0ce851b514

View File

@@ -1,6 +1,9 @@
const { GObject, Gtk } = imports.gi; const { GObject, Gtk } = imports.gi;
const Debug = imports.src.debug;
const Misc = imports.src.misc; const Misc = imports.src.misc;
const { debug } = Debug;
var HeaderBarBase = GObject.registerClass( var HeaderBarBase = GObject.registerClass(
class ClapperHeaderBarBase extends Gtk.Box class ClapperHeaderBarBase extends Gtk.Box
{ {
@@ -139,6 +142,8 @@ class ClapperHeaderBarBase extends Gtk.Box
let showClose = false; let showClose = false;
let spacerAdded = false; let spacerAdded = false;
debug(`headerbar layout: ${modLayout}`);
for(let name of layoutArr) { for(let name of layoutArr) {
const widget = this[`${name}Widget`]; const widget = this[`${name}Widget`];
if(!widget) continue; if(!widget) continue;