[polari/wip/fmuellner/combined-gsoc: 68/137] Added notification label and icon to the UserDetails class. still needs work
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 68/137] Added notification label and icon to the UserDetails class. still needs work
- Date: Thu, 28 Jul 2016 16:21:09 +0000 (UTC)
commit 0819a97dda0e1a835714018c10b474f26a526d41
Author: raresv <rares visalom gmail com>
Date: Tue Jul 12 14:03:44 2016 +0300
Added notification label and icon to the UserDetails class. still needs work
data/resources/user-details.ui | 34 ++++++++++++++++++++++++++++++++++
src/userList.js | 7 ++++++-
2 files changed, 40 insertions(+), 1 deletions(-)
---
diff --git a/data/resources/user-details.ui b/data/resources/user-details.ui
index 519f70d..cf996ef 100644
--- a/data/resources/user-details.ui
+++ b/data/resources/user-details.ui
@@ -120,6 +120,40 @@
<property name="left-attach">0</property>
</packing>
</child>
+ <child>
+ <object class="GtkImage" id="notificationIcon">
+ <property name="icon-name">alarm-symbolic</property>
+ <property name="visible">True</property>
+ <property name="halign">start</property>
+ <property name="margin-left">0</property>
+ <style>
+ <class name="dim-label" />
+ </style>
+ </object>
+ <packing>
+ <property name="width">1</property>
+ <property name="top-attach">1</property>
+ <property name="left-attach">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="notificationLabel">
+ <property name="ellipsize">end</property>
+ <property name="halign">start</property>
+ <property name="visible">True</property>
+ <property name="margin-start">20</property>
+ <property name="hexpand">True</property>
+ <property name="use-markup">True</property>
+ <style>
+ <class name="dim-label" />
+ </style>
+ </object>
+ <packing>
+ <property name="width">2</property>
+ <property name="top-attach">1</property>
+ <property name="left-attach">0</property>
+ </packing>
+ </child>
</object>
</child>
<child>
diff --git a/src/userList.js b/src/userList.js
index 1cca0a6..b269d9d 100644
--- a/src/userList.js
+++ b/src/userList.js
@@ -111,6 +111,8 @@ const UserDetails = new Lang.Class({
'fullnameLabel',
'lastHeader',
'lastLabel',
+ 'notificationIcon',
+ 'notificationLabel',
'separator',
'messageButton',
'pastActivityButton'],
@@ -265,6 +267,9 @@ const UserDetails = new Lang.Class({
this._lastLabel.hide();
}
+ this._notificationIcon.hide();
+ this._notificationLabel.hide();
+
this._revealDetails();
},
@@ -305,7 +310,7 @@ const UserDetails = new Lang.Class({
if (this._user == this._user.connection.self_contact) {
this._messageButton.visible = false;
- this._messageButton.sensitive = true; //does this even make sense?
+ this._messageButton.sensitive = true; //TODO: does this even make sense?
} else {
this._messageButton.visible = true;
this._messageButton.sensitive = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]