Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to gnome 3.12 #36

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
6d9690d
first merely worked version for gnome-shell 3.6
boypt Oct 26, 2012
90175e4
update icon
boypt Oct 26, 2012
577a9d9
clean up code; unread count not working.
boypt Oct 26, 2012
c05c5a3
add stylesheet for persistent icon
thedeadparrot Nov 17, 2012
862206c
change usermenu icon color when you have an unread pidgin message
thedeadparrot Nov 17, 2012
b887fa3
force icon size to match container
thedeadparrot Nov 17, 2012
e6d1c3b
Add persistent notification acknowledgement and fix icon sizing
thedeadparrot Nov 17, 2012
a3c4bf0
Change the user icon to Available when signed into Pidgin
thedeadparrot Nov 17, 2012
1bcf148
Show the notification icon for the first message. Fix the order of fu…
thedeadparrot Nov 17, 2012
a41663b
fixed issues with changing the icon when available
thedeadparrot Nov 17, 2012
f9f0de5
clean up some code and remove hacks
thedeadparrot Nov 17, 2012
6637a79
Moved into subfolder to enable easier linking
Apr 30, 2013
3d50caf
Updated dbus interface
May 1, 2013
bf37a34
Merge branch 'master' of git://github.com/kagesenshi/gnome-shell-exte…
May 1, 2013
24f2591
Update README.rst
Psykar May 1, 2013
9282a7e
Fixed the notification icon not showing in actual notification.
Aug 2, 2013
595cbbf
ready to merge into dbus
Aug 28, 2013
b038916
Merge branch 'master' of github.com:Psykar/gnome-shell-extensions-pidgin
Aug 28, 2013
162e96b
Merge pull request #3 from c0bra61/master
Psykar Oct 2, 2013
e58be56
Update to 3.10
Oct 17, 2013
1a25431
3.10 and 3.8
Oct 17, 2013
4675d61
make it works on 3.10.2.1
gutenye Dec 28, 2013
3b270d1
support for gnome 3.12
xiehuc Apr 15, 2014
b7a1791
add comment
xiehuc Apr 15, 2014
c4501a2
Merge pull request #1 from xiehuc/master
gutenye Apr 16, 2014
f99d84f
fix load_uri_async add a scale para
xiehuc Apr 22, 2014
97b3c60
fix ChatroomSource
xiehuc Apr 22, 2014
bbc0dd9
Merge pull request #2 from xiehuc/master
gutenye Apr 23, 2014
ff8bc61
fix receive chatMsg
xiehuc Apr 23, 2014
b454c25
fix dont' find buddy
xiehuc Apr 23, 2014
2e8a7a2
fix SentChatMsg type
xiehuc Apr 23, 2014
44c1536
add send Chat Msg
xiehuc Apr 23, 2014
a0e0b4a
refine structure introduce ImSource
xiehuc Apr 23, 2014
d927a20
refine get icon progress
xiehuc Apr 23, 2014
0b5a11b
fix chat msg get icon
xiehuc Apr 23, 2014
0afe7e8
retab file and add vim settings
xiehuc Apr 23, 2014
98f866c
Merge pull request #3 from xiehuc/master
gutenye Apr 23, 2014
add1522
Bump shell version
Apr 28, 2014
bee13e8
Merge pull request #4 from GutenYe/bugfix
Psykar Apr 28, 2014
58b4cad
Fix up duplicate definition
Apr 28, 2014
260f4e8
Merge
Apr 28, 2014
0c5fd96
Merge
Apr 28, 2014
9fd67a1
Merge develop into master
Apr 28, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ Gnome Shell Pidgin extension
=============================

The extension utilize pidgin's dbus API, to integrate Pidgin into the GNOME
shell. I only did some rough test with it only on my Fedora 16 machine, but
I believe it should work ok everywhere else.
shell.

Install
---------

Copy the files over::
It's easiest to link the subdirectory here to your extensions directory:

mkdir -p ~/.local/share/gnome-shell/extensions/[email protected]
cp extension.js metadata.json ~/.local/share/gnome-shell/extensions/pidgin-conversation-integration@kagesenshi.org/
cd ~/.local/share/gnome-shell/extensions
ln -sv <path to git>/pidgin-conversation-integration@katesenshi.org ./

restart Gnome shell (Alt+F2 type r and hit enter)

Expand Down
File renamed without changes.
File renamed without changes.
42 changes: 42 additions & 0 deletions [email protected]/dbus.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* -*- mode: js2; js2-basic-offset: 4; indent-tabs-mode: nil -*- */
/**
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
**/

const Gio = imports.gi.Gio;

const PidginIface = loadInterfaceXml("dbus.xml")

// inspired from https://github.com/rgcjonas/gnome-shell-extension-appindicator/blob/master/interfaces.js
// i just copy it and it works , how amazine , i just didn't know what happend
function loadInterfaceXml(filename) {
let extension = imports.misc.extensionUtils.getCurrentExtension()

let interfaces_dir = extension.dir.get_child(".")

let file = interfaces_dir.get_child(filename)

let [ result, contents ] = imports.gi.GLib.file_get_contents(file.get_path())

if (result) {
//HACK: The "" + trick is important as hell because file_get_contents returns
// an object (WTF?) but Gio.makeProxyWrapper requires `typeof() == "string"`
// Otherwise, it will try to check `instanceof XML` and fail miserably because there
// is no `XML` on very recent SpiderMonkey releases (or, if SpiderMonkey is old enough,
// will spit out a TypeError soon).
return "<node>" + contents + "</node>"
} else {
throw new Error("AppIndicatorSupport: Could not load file: "+filename)
}
}
Loading