[polari] roomStack: Remove entry-area-height
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] roomStack: Remove entry-area-height
- Date: Mon, 28 Feb 2022 10:53:02 +0000 (UTC)
commit 0cc72f319b21df568384048ffe862d713b8c5bcc
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Feb 16 01:32:42 2022 +0100
roomStack: Remove entry-area-height
It was only used by the command output queue.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/247>
src/roomStack.js | 14 --------------
1 file changed, 14 deletions(-)
---
diff --git a/src/roomStack.js b/src/roomStack.js
index caed350e..a2109527 100644
--- a/src/roomStack.js
+++ b/src/roomStack.js
@@ -13,10 +13,6 @@ import RoomManager from './roomManager.js';
export default GObject.registerClass(
class RoomStack extends Gtk.Stack {
static [GObject.properties] = {
- 'entry-area-height': GObject.ParamSpec.uint(
- 'entry-area-height', 'entry-area-height', 'entry-area-height',
- GObject.ParamFlags.READABLE,
- 0, GLib.MAXUINT32, 0),
'view-height': GObject.ParamSpec.uint(
'view-height', 'view-height', 'view-height',
GObject.ParamFlags.READABLE,
@@ -39,7 +35,6 @@ class RoomStack extends Gtk.Stack {
this.add_named(new ChatPlaceholder(this._sizeGroup), 'placeholder');
- this._entryAreaHeight = 0;
this._viewHeight = 0;
this.connect('destroy', () => {
@@ -78,10 +73,6 @@ class RoomStack extends Gtk.Stack {
this._sizeGroup.get_widgets().filter(w => w.get_mapped());
const entryHeight = firstEntry
? firstEntry.get_allocated_height() - 1 : 0;
- if (this._entryAreaHeight !== entryHeight) {
- this._entryAreaHeight = entryHeight;
- this.notify('entry-area-height');
- }
const viewHeight = this.get_allocated_height() - entryHeight;
if (this._viewHeight !== viewHeight) {
@@ -90,11 +81,6 @@ class RoomStack extends Gtk.Stack {
}
}
- // eslint-disable-next-line camelcase
- get entry_area_height() {
- return this._entryAreaHeight;
- }
-
// eslint-disable-next-line camelcase
get view_height() {
return this._viewHeight;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]