[gnome-shell] telepathyClient: Add history navigation to entry
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] telepathyClient: Add history navigation to entry
- Date: Mon, 14 Mar 2011 22:53:01 +0000 (UTC)
commit 79d9df9bb144047d9cb6fc06770e6ebe42e45482
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sun Feb 20 03:41:51 2011 -0500
telepathyClient: Add history navigation to entry
This adds a non-saving history to each notification entry,
like runDialog and lookingGlass.
https://bugzilla.gnome.org/show_bug.cgi?id=642793
js/ui/telepathyClient.js | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js
index ab90579..4056679 100644
--- a/js/ui/telepathyClient.js
+++ b/js/ui/telepathyClient.js
@@ -11,6 +11,7 @@ const Tp = imports.gi.TelepathyGLib;
const Gettext = imports.gettext.domain('gnome-shell');
const _ = Gettext.gettext;
+const History = imports.misc.history;
const Main = imports.ui.main;
const MessageTray = imports.ui.messageTray;
@@ -291,6 +292,8 @@ Notification.prototype = {
this._oldMaxScrollAdjustment = adjustment.upper;
}));
+ this._inputHistory = new History.HistoryManager({ entry: this._responseEntry.clutter_text });
+
this._history = [];
this._timestampTimeoutId = 0;
},
@@ -392,6 +395,8 @@ Notification.prototype = {
if (text == '')
return;
+ this._inputHistory.addItem(text);
+
// Telepathy sends out the Sent signal for us.
// see Source._messageSent
this._responseEntry.set_text('');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]