[polari] Roomlist: Highlight the room row which the popup connects to
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] Roomlist: Highlight the room row which the popup connects to
- Date: Wed, 28 Oct 2015 20:01:07 +0000 (UTC)
commit f5dfe9b8a0e8d74ad658a1b45de140e924b60a2a
Author: belinhacbr <belinhacbr gmail com>
Date: Thu Oct 22 19:12:10 2015 -0200
Roomlist: Highlight the room row which the popup connects to
Should be visually clear what room the opened popup is connected to.
This fix highlights the room which the popup belongs to.
https://bugzilla.gnome.org/show_bug.cgi?id=756325
src/roomList.js | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/roomList.js b/src/roomList.js
index 5035b41..d39034f 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -24,6 +24,14 @@ const RoomRow = new Lang.Class({
'app.leave-room(("%s", ""))'.format(this.widget.room.id));
this._popover = Gtk.Popover.new_from_model(this.widget, menu);
+ this._popover.connect('notify::visible', Lang.bind(this,
+ function() {
+ let roomContext = this.widget.get_style_context();
+ if (this._popover.visible)
+ roomContext.add_class('has-open-popup');
+ else
+ roomContext.remove_class('has-open-popup');
+ }));
this._popover.position = Gtk.PositionType.BOTTOM;
this._eventBox.connect('button-release-event',
Lang.bind(this, this._onButtonRelease));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]