Skip to content

Commit

Permalink
first merely worked version for gnome-shell 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Oct 26, 2012
1 parent c2706b1 commit 6d9690d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const St = imports.gi.St;
const Main = imports.ui.main;
const MessageTray = imports.ui.messageTray;
const Shell = imports.gi.Shell;
const TelepathyClient = imports.ui.telepathyClient;
const TelepathyClient = imports.ui.components.telepathyClient;
const Tp = imports.gi.TelepathyGLib;

const Gettext = imports.gettext.domain('gnome-shell-extensions');
Expand Down Expand Up @@ -359,15 +359,24 @@ Source.prototype = {

if (!this._iconUri) {
iconBox.child = new St.Icon({ icon_name: 'avatar-default',
icon_type: St.IconType.FULLCOLOR,
icon_size: iconBox._size });
//icon_type: St.IconType.FULLCOLOR,
//icon_size: iconBox._size
});
} else {
let textureCache = St.TextureCache.get_default();
iconBox.child = textureCache.load_uri_async(this._iconUri, iconBox._size, iconBox._size);
}
return iconBox;
},

createIcon: function() {
let iconBox = new St.Bin();
iconBox.child = new St.Icon({ style_class: 'secondary-icon' });
iconBox.child.icon_name = 'user-available';
return iconBox;
},
createSecondaryIcon: function () {return this.createIcon();},

open: function(notification) {
let proxy = this._client.proxy();
proxy.PurpleConversationPresentRemote(this._conversation);
Expand Down Expand Up @@ -499,7 +508,7 @@ Source.prototype = {
},

_updateCount: function () {
this._setCount(this._pendingMessages.length, this._pendingMessages.length > 0);
//this._setCount(this._pendingMessages.length, this._pendingMessages.length > 0);
},

_flushPendingMessages: function() {
Expand Down Expand Up @@ -556,8 +565,9 @@ ChatroomSource.prototype = {
iconBox._size = this.ICON_SIZE;

iconBox.child = new St.Icon({ icon_name: 'pidgin',
icon_type: St.IconType.FULLCOLOR,
icon_size: iconBox._size });
//icon_type: St.IconType.FULLCOLOR,
//icon_size: iconBox._size
});
return iconBox;
},

Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"uuid": "pidgin-conversation-integration@kagesenshi.org",
"name": "Pidgin Conversation Integration",
"description": "Display Pidgin chats as notifications in the Shell message tray.",
"shell-version": [ "3.1.91", "3.1.92", "3.2", "3.4" ],
"shell-version": [ "3.6" ],
"localedir": "/usr/share/locale",
"url": "https://github.com/kagesenshi/gnome-shell-extensions-pidgin"
}

0 comments on commit 6d9690d

Please sign in to comment.