summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIzhar Firdaus <izhar@inigo-tech.com>2011-04-17 00:34:28 +0800
committerIzhar Firdaus <izhar@inigo-tech.com>2011-04-17 00:34:28 +0800
commit0ccd7370d41c25c1ad221ce61c86a320a98ed9d0 (patch)
tree0748f451072335fe207152547f464df1957801c5
parent7b54f61bea615308a2697385941e67523ab46144 (diff)
downloadhack-patches-0ccd7370d41c25c1ad221ce61c86a320a98ed9d0.tar.gz
hack-patches-0ccd7370d41c25c1ad221ce61c86a320a98ed9d0.tar.xz
hack-patches-0ccd7370d41c25c1ad221ce61c86a320a98ed9d0.zip
* dont notify if theres no initial message
* disable the algorithm to determine which window should be highlighted if conversation is clicked, as its not accurate anyway
-rw-r--r--gnomeshell@pidgin.im/extension.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/gnomeshell@pidgin.im/extension.js b/gnomeshell@pidgin.im/extension.js
index 0ce5838..778b3aa 100644
--- a/gnomeshell@pidgin.im/extension.js
+++ b/gnomeshell@pidgin.im/extension.js
@@ -132,7 +132,9 @@ Source.prototype = {
this._messageSentId = proxy.connect('SentImMsg', Lang.bind(this, this._onSentImMessage));
this._messageReceivedId = proxy.connect('ReceivedImMsg', Lang.bind(this, this._onReceivedImMessage));
- this.notify(this._notification);
+ if (this._initialMessage) {
+ this.notify(this._notification);
+ }
},
destroy: function () {
@@ -164,6 +166,9 @@ Source.prototype = {
open: function(notification) {
// Lookup for the messages window and display it. In the case where it's not o
// opened yet fallback to the roster window.
+
+ /* disable this, it doesnt quite work correctly with default pidgin
+ * config anyway
let windows = global.get_window_actors();
for (let i = 0; i < windows.length; i++) {
let metaWindow = windows[i].metaWindow;
@@ -172,7 +177,7 @@ Source.prototype = {
Main.activateWindow(metaWindow);
return;
}
- }
+ }*/
let app = Shell.AppSystem.get_default().get_app('pidgin.desktop');
app.activate_window(null, global.get_current_time());