[polari] chatView: Export MAX_NICK_CHARS



commit 46ab33e15194d0405e7c53cfb5b5ca008b7af64e
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Feb 15 11:50:13 2021 +0100

    chatView: Export MAX_NICK_CHARS
    
    It is used by EntryArea to initialize the corresponding property.
    
    https://gitlab.gnome.org/GNOME/polari/-/merge_requests/178

 src/chatView.js  | 2 +-
 src/entryArea.js | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 9eb94b4d..10267aaf 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -20,7 +20,7 @@ import * as Utils from './utils.js';
 Gio._promisify(Tpl.LogWalker.prototype,
     'get_events_async', 'get_events_finish');
 
-var MAX_NICK_CHARS = 8;
+export const MAX_NICK_CHARS = 8;
 const IGNORE_STATUS_TIME = 5;
 
 const SCROLL_TIMEOUT = 100; // ms
diff --git a/src/entryArea.js b/src/entryArea.js
index 94d225e2..2360ddcd 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -13,7 +13,7 @@ import Gspell from 'gi://Gspell';
 import Gtk from 'gi://Gtk';
 import Tp from 'gi://TelepathyGLib';
 
-import * as ChatView from './chatView.js';
+import { MAX_NICK_CHARS } from './chatView.js';
 import { DropTargetIface } from './pasteManager.js';
 import { IrcParser } from './ircParser.js';
 import { TabCompletion } from './tabCompletion.js';
@@ -194,7 +194,7 @@ const EntryArea = GObject.registerClass({
         delete params.room;
 
         this._ircParser = new IrcParser(this._room);
-        this._maxNickChars = ChatView.MAX_NICK_CHARS;
+        this._maxNickChars = MAX_NICK_CHARS;
         this._nickChangedId = 0;
 
         super._init(params);


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