[polari] userList: Minor cleanup
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] userList: Minor cleanup
- Date: Sat, 5 Sep 2015 00:29:15 +0000 (UTC)
commit 8d111769e0a4805bc25ec2fe9642476ffc28ef46
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Sep 5 00:33:25 2015 +0200
userList: Minor cleanup
The popover should point DOWN, so use that in the constructor instead of
changing the property to the correct value later.
Also rely on the default value of GtkPopover:modal.
src/mainWindow.js | 1 -
src/userList.js | 3 +--
2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1891e59..4a77b0c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -206,7 +206,6 @@ const MainWindow = new Lang.Class({
this._userListPopover = new UserList.UserListPopover();
this._userListPopover.widget.relative_to = this._showUserListButton;
- this._userListPopover.widget.position = Gtk.PositionType.BOTTOM;
},
showJoinRoomDialog: function() {
diff --git a/src/userList.js b/src/userList.js
index 696aaec..cbfdb90 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -37,8 +37,7 @@ const UserListPopover = new Lang.Class({
},
_createWidget: function() {
- this.widget = new Gtk.Popover({ modal: true,
- position: Gtk.PositionType.TOP });
+ this.widget = new Gtk.Popover({ position: Gtk.PositionType.BOTTOM });
this.widget.set_border_width(6);
this.widget.set_size_request(250, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]