[polari/wip/fmuellner/combined-gsoc: 29/136] Don't bold the channel name
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/fmuellner/combined-gsoc: 29/136] Don't bold the channel name
- Date: Tue, 26 Jul 2016 23:18:25 +0000 (UTC)
commit 2092512c4093fb82c70d3dd7066bfe4e73ce5739
Author: Kunaal Jain <kunaalus gmail com>
Date: Sun Jun 19 19:42:36 2016 +0530
Don't bold the channel name
data/resources/result-list-row.ui | 2 +-
src/mainWindow.js | 9 +++++----
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/data/resources/result-list-row.ui b/data/resources/result-list-row.ui
index f06a417..e8e7f54 100644
--- a/data/resources/result-list-row.ui
+++ b/data/resources/result-list-row.ui
@@ -17,7 +17,7 @@
<property name="valign">baseline</property>
<property name="label" translatable="0">Username</property>
<attributes>
- <attribute name="weight" value="bold"/>
+ <!-- <attribute name="weight" value="bold"/> -->
</attributes>
</object>
</child>
diff --git a/src/mainWindow.js b/src/mainWindow.js
index e29a0e3..5d5878c 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -274,7 +274,8 @@ const MainWindow = new Lang.Class({
let message = events[i].mms;
let uid = events[i].id;
let index = message.indexOf(this._keywords[0]);
- let row = this._widgetMap[uid];
+ let row;
+ row = this._widgetMap[uid];
for (let j = 0; j < this._keywords.length; j++) {
// log(this._keywords[j]);
index = Math.min(index, message.indexOf(this._keywords[j]));
@@ -287,13 +288,13 @@ const MainWindow = new Lang.Class({
widgetMap[uid] = row;
this._results.remove(row);
} else {
- let row = new ResultList.ResultRow();
- row._content_label.label = message;
- row._source_name.label = channel;
+ row = new ResultList.ResultRow();
+ row._source_name.label = channel.substring(1);
row._short_time_label.label = this._formatTimestamp(time);
row.uid = events[i].id;
widgetMap[uid] = row;
}
+ row._content_label.label = message;
// widgetMap[uid].get_children()[0].label = "..." + message.substring(index - 6);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]