Merge lp:~nbdarvin/awn-extras/pidgin-adium into lp:awn-extras

Proposed by Sergey Klimov
Status: Needs review
Proposed branch: lp:~nbdarvin/awn-extras/pidgin-adium
Merge into: lp:awn-extras
Diff against target: 1220 lines (+1138/-0)
7 files modified
applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist (+125/-0)
applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2 (+390/-0)
applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist (+125/-0)
applets/maintained/pidgin-adium/adium-dock-themes/README.themes (+3/-0)
applets/maintained/pidgin-adium/adiumicontheme.py (+82/-0)
applets/maintained/pidgin-adium/pidgin-adium.py (+232/-0)
applets/maintained/pidgin-adium/pidgindbus.py (+181/-0)
To merge this branch: bzr merge lp:~nbdarvin/awn-extras/pidgin-adium
Reviewer Review Type Date Requested Status
Mark Lee Needs Fixing
Review via email: mp+24594@code.launchpad.net

Description of the change

pidgin-adium applet

To post a comment you must log in.
Revision history for this message
Michal Hruby (mhr3) wrote :

There seems to be something wrong with the branches, could you stop by at #awn on irc.freenode.net?

Revision history for this message
Sergey Klimov (nbdarvin) wrote :
lp:~nbdarvin/awn-extras/pidgin-adium updated
1306. By nbarvin

removed calendar-jpilot modifications

Revision history for this message
Mark Lee (malept) wrote :

There's still a calendar modification in this branch.

review: Needs Fixing
Revision history for this message
Mark Lee (malept) wrote :

I'd personally prefer that there's only one of these dock icon packs in bzr (as it seems to be fairly easy to get adium dock icons).

The license for the icons needs to be documented somewhere.

You probably want to get rid of all of the debug prints.

The whole "import pygtk; pygtk.require('2.0')" idiom is a bit obsolete; you can get rid of it.

I've only taken a cursory look, but does this applet have a contingency for the case where pidgin isn't running?

Could someone check to see if this is PEP8 compliant?

review: Needs Fixing
Revision history for this message
Sergey Klimov (nbdarvin) wrote :

> I'd personally prefer that there's only one of these dock icon packs in bzr
> (as it seems to be fairly easy to get adium dock icons).
>
> The license for the icons needs to be documented somewhere.
>
> You probably want to get rid of all of the debug prints.
>
> The whole "import pygtk; pygtk.require('2.0')" idiom is a bit obsolete; you
> can get rid of it.
>
> I've only taken a cursory look, but does this applet have a contingency for
> the case where pidgin isn't running?
>
> Could someone check to see if this is PEP8 compliant?

excuse me for such dirty code, i was not hope that you will react so rapidly. at end of week code will clean

lp:~nbdarvin/awn-extras/pidgin-adium updated
1307. By nbarvin

true adium theme support (without any convertion, full animation/overlay support)

1308. By nbarvin

remove temp files

1309. By nbarvin

some changes

Revision history for this message
Sergey Klimov (nbdarvin) wrote :

> I'd personally prefer that there's only one of these dock icon packs in bzr
> (as it seems to be fairly easy to get adium dock icons).
no, adium icon themes use its own iconpack format with some features like custom animations and overlays, its described in plist for adium icon theme. there millions of adium themes at http://www.adiumxtras.com/index.php?a=search&cat_id=1
> The license for the icons needs to be documented somewhere.
documented now
> You probably want to get rid of all of the debug prints.
almost done, development not completed
> The whole "import pygtk; pygtk.require('2.0')" idiom is a bit obsolete; you
> can get rid of it.
done
> I've only taken a cursory look, but does this applet have a contingency for
> the case where pidgin isn't running?
done
> Could someone check to see if this is PEP8 compliant?
done

Revision history for this message
Sergey Klimov (nbdarvin) wrote :

now removed all print debugs, please merge!

Revision history for this message
Mark Lee (malept) wrote :

> There's still a calendar modification in this branch.

This is still here...(which should really go in its own bug, as I mentioned elsewhere).

review: Needs Fixing
Revision history for this message
Sergey Klimov (nbdarvin) wrote :

> > There's still a calendar modification in this branch.
>
> This is still here...(which should really go in its own bug, as I mentioned
> elsewhere).
its deleted, it isn't?

Revision history for this message
Mark Lee (malept) wrote :

> > I'd personally prefer that there's only one of these dock icon packs in bzr
> > (as it seems to be fairly easy to get adium dock icons).
> no, adium icon themes use its own iconpack format with some features like
> custom animations and overlays, its described in plist for adium icon theme.
> there millions of adium themes at
> http://www.adiumxtras.com/index.php?a=search&cat_id=1

What I was trying to say was I don't know why you're bundling 8 icon themes, when you can download lots of them from the URL you quoted.

> > The license for the icons needs to be documented somewhere.
> documented now

Where, exactly? I didn't see it in a cursory look.

review: Needs Information
lp:~nbdarvin/awn-extras/pidgin-adium updated
1310. By nbarvin

popup menu delete ((

1311. By nbarvin

pep8 compliance, delete additional themes, license for themes

1312. By nbarvin

fix for search running pidgin instance

1313. By nbarvin

remove debug prints

Revision history for this message
Sergey Klimov (nbdarvin) wrote :

> > > I'd personally prefer that there's only one of these dock icon packs in
> bzr
> > > (as it seems to be fairly easy to get adium dock icons).
> > no, adium icon themes use its own iconpack format with some features like
> > custom animations and overlays, its described in plist for adium icon theme.
> > there millions of adium themes at
> > http://www.adiumxtras.com/index.php?a=search&cat_id=1
>
> What I was trying to say was I don't know why you're bundling 8 icon themes,
> when you can download lots of them from the URL you quoted.
some themes for example of use
>
> > > The license for the icons needs to be documented somewhere.
> > documented now
>
> Where, exactly? I didn't see it in a cursory look.

http://bazaar.launchpad.net/~nbdarvin/awn-extras/pidgin-adium/annotate/head%3A/applets/maintained/pidgin-adium/adium-dock-themes/README.themes

Revision history for this message
Mark Lee (malept) wrote :

> > > > I'd personally prefer that there's only one of these dock icon packs in
> > bzr
> > > > (as it seems to be fairly easy to get adium dock icons).
> > > no, adium icon themes use its own iconpack format with some features like
> > > custom animations and overlays, its described in plist for adium icon
> theme.
> > > there millions of adium themes at
> > > http://www.adiumxtras.com/index.php?a=search&cat_id=1
> >
> > What I was trying to say was I don't know why you're bundling 8 icon themes,
> > when you can download lots of them from the URL you quoted.
> some themes for example of use

You don't need *eight* examples though, right?

> >
> > > > The license for the icons needs to be documented somewhere.
> > > documented now
> >
> > Where, exactly? I didn't see it in a cursory look.
>
> http://bazaar.launchpad.net/~nbdarvin/awn-extras/pidgin-
> adium/annotate/head%3A/applets/maintained/pidgin-adium/adium-dock-
> themes/README.themes

The readme says that it's GPL-3, but <http://hg.adium.im/adium/file/d60e3dc89642/License.txt> says GPL-2 or later...

review: Needs Fixing
Revision history for this message
Sergey Klimov (nbdarvin) wrote :

oh, ok

2010/5/5 Mark Lee <email address hidden>

> Review: Needs Fixing
> > > > > I'd personally prefer that there's only one of these dock icon
> packs in
> > > bzr
> > > > > (as it seems to be fairly easy to get adium dock icons).
> > > > no, adium icon themes use its own iconpack format with some features
> like
> > > > custom animations and overlays, its described in plist for adium icon
> > theme.
> > > > there millions of adium themes at
> > > > http://www.adiumxtras.com/index.php?a=search&cat_id=1
> > >
> > > What I was trying to say was I don't know why you're bundling 8 icon
> themes,
> > > when you can download lots of them from the URL you quoted.
> > some themes for example of use
>
> You don't need *eight* examples though, right?
>
> > >
> > > > > The license for the icons needs to be documented somewhere.
> > > > documented now
> > >
> > > Where, exactly? I didn't see it in a cursory look.
> >
> > http://bazaar.launchpad.net/~nbdarvin/awn-extras/pidgin-<http://bazaar.launchpad.net/%7Enbdarvin/awn-extras/pidgin->
> > adium/annotate/head%3A/applets/maintained/pidgin-adium/adium-dock-
> > themes/README.themes
>
> The readme says that it's GPL-3, but <
> http://hg.adium.im/adium/file/d60e3dc89642/License.txt> says GPL-2 or
> later...
> --
> https://code.launchpad.net/~nbdarvin/awn-extras/pidgin-adium/+merge/24594<https://code.launchpad.net/%7Enbdarvin/awn-extras/pidgin-adium/+merge/24594>
> You are the owner of lp:~nbdarvin/awn-extras/pidgin-adium.
>

Revision history for this message
Mark Lee (malept) wrote :

> > > There's still a calendar modification in this branch.
> >
> > This is still here...(which should really go in its own bug, as I mentioned
> > elsewhere).
> its deleted, it isn't?

Nope, this is what I get when I run a preview merge:

=== modified file 'applets/maintained/calendar/clockcal.py'

review: Needs Fixing
lp:~nbdarvin/awn-extras/pidgin-adium updated
1314. By nbarvin

removed themes, new themes license file

1315. By nbarvin

removed clokccalpy modification

Revision history for this message
Mark Lee (malept) wrote :

I've taken another pass at this, and here's what I've noticed:

 * you only need the GPL part of that license.txt file - the rest isn't applicable. In fact, README.themes just needs to say something like "The icon themes bundled with this applet were copied from Adium, which is licensed under the GPL version 2 (or later). See LICENSE.GPL2 for the full text."

 * this applet seems to require Python 2.6 or later (as that's when plistlib was made available for non-Mac platforms, according to the docs).

 * There still seems to be some debug functions hanging around? (For example, pidgindbus.Connecting())

review: Needs Fixing
lp:~nbdarvin/awn-extras/pidgin-adium updated
1316. By nbarvin

LICENSE

Revision history for this message
Sergey Klimov (nbdarvin) wrote :

fixed, yes, plistlib need - should i bundle it to applet?

2010/5/6 Mark Lee <email address hidden>

> Review: Needs Fixing
> I've taken another pass at this, and here's what I've noticed:
>
> * you only need the GPL part of that license.txt file - the rest isn't
> applicable. In fact, README.themes just needs to say something like "The
> icon themes bundled with this applet were copied from Adium, which is
> licensed under the GPL version 2 (or later). See LICENSE.GPL2 for the full
> text."
>
> * this applet seems to require Python 2.6 or later (as that's when
> plistlib was made available for non-Mac platforms, according to the docs).
>
> * There still seems to be some debug functions hanging around? (For
> example, pidgindbus.Connecting())
> --
> https://code.launchpad.net/~nbdarvin/awn-extras/pidgin-adium/+merge/24594<https://code.launchpad.net/%7Enbdarvin/awn-extras/pidgin-adium/+merge/24594>
> You are the owner of lp:~nbdarvin/awn-extras/pidgin-adium.
>

lp:~nbdarvin/awn-extras/pidgin-adium updated
1317. By nbarvin

removed print debugs

Revision history for this message
onox (onox) wrote :
Download full text (3.6 KiB)

== Disclaimer ==
Written around 5 am using a crappy internet connection.

== 1 ==
In setup_dialog_settings() you seem to use an old way to initialize the theme setting. I only took a quick look at the code, but if you have a .ui (GtkBuilder) file, then you can use:

binder = self.applet.settings.get_binder(prefs)
binder.bind("theme", "combobox-theme", key_callback=self.combobox_theme_changed_cb)
self.applet.settings.load_bindings(binder)

prefs is a gtk.Builder object here. You can then use self.applet.settings["theme"] or use the GProps object returned by load_bindings(); if you choose this, use it something like this:

self.settings = self.applet.settings.load_bindings(binder)

And then you should be able to use it like this: print self.settings.theme or self.settings.theme = "Tango" to read or write the setting.

In this case you need to create the combobox in the .ui file (not manually) with a model (GtkListStore) that needs a gchararray field/column. Then after having set-up the bindings, you need to fill the combobox with some text elements:

combobox_theme = prefs.get_object("combobox-theme")
awnlib.add_cell_renderer_text(combobox_theme)
for i in self.themes:
    combobox_theme.append_text(i)

self.themes is a list of strings here. Note that a call to add a cell renderer is needed, because the Glade tool doesn't seem to provide a way to set it in the .ui file.

Look in load_theme_pref() in volume-control.py how you could do this.

== 2 ==
I also noticed that you seem to set pixbufs as icons via self.applet.icon.set(). I think it's better to use Awn's themed icon API (moonbeam will agree :p) if possible. To do this, when initializing the icons (see setup_icons() in volume-control.py), first set the states:

self.applet.theme.set_states(states)

where states is a dict mapping the state names to the icon names. Second, you set the theme:

self.applet.theme.theme(theme)

theme must be None here if you want to use the user's current system theme. (In volume-control.py in setup_icons() I add "System theme" to the combobox, and then make theme None if the theme name matches "System theme")

Later, when you want to change the icon, set the icon to one of the states that you gave set_states():

self.applet.theme.icon(icon_state)

I call the setup_icons() method every time the combobox (theme) value changes. After that, you can change the icon (by changing the current state) whenever you want.

Btw, you need to change the folder adium-dock-themes/ to themes/ then. Also make sure Green/ and Purple/ both have each an index.theme file. And probably the images need to be in some directory with a famous/known name to get the bloody gtk icon code (used by the Awn themed icon API) to find the images. (I use themes/<theme name>/scalable/

If you use this themed icon API shizzle, then you can remove the call self.applet.connect_size_changed(self.size_changed_cb)

== 3 ==
Oh, and use if x is None (or if x) instead of if x == None
and if x is not None (or if not x) instead of if x != None

== 4 ==
Last thing: you seem to do

self.popup_menu = self.applet.create_default_menu()
self.popup_menu.show_all()

in setup_context_menu(). Don't do this, you can just ...

Read more...

Revision history for this message
onox (onox) wrote :

Small mistake :p

== 3 ==
Oh, and use if x is None (or if not x) instead of if x == None
and if x is not None (or if x) instead of if x != None

Unmerged revisions

1317. By nbarvin

removed print debugs

1316. By nbarvin

LICENSE

1315. By nbarvin

removed clokccalpy modification

1314. By nbarvin

removed themes, new themes license file

1313. By nbarvin

remove debug prints

1312. By nbarvin

fix for search running pidgin instance

1311. By nbarvin

pep8 compliance, delete additional themes, license for themes

1310. By nbarvin

popup menu delete ((

1309. By nbarvin

some changes

1308. By nbarvin

remove temp files

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'applets/maintained/pidgin-adium'
2=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes'
3=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Green'
4=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/ApplicationIcon.png'
5Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/ApplicationIcon.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/ApplicationIcon.png 2010-05-06 10:16:27 +0000 differ
6=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Asleep.png'
7Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/Asleep.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/Asleep.png 2010-05-06 10:16:27 +0000 differ
8=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Awake.png'
9Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/Awake.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/Awake.png 2010-05-06 10:16:27 +0000 differ
10=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Flap.png'
11Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/Flap.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/Flap.png 2010-05-06 10:16:27 +0000 differ
12=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist'
13--- applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist 1970-01-01 00:00:00 +0000
14+++ applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist 2010-05-06 10:16:27 +0000
15@@ -0,0 +1,125 @@
16+<?xml version="1.0" encoding="UTF-8"?>
17+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
18+<plist version="1.0">
19+<dict>
20+ <key>Description</key>
21+ <dict>
22+ <key>Creator</key>
23+ <string>Created by Adam Betts</string>
24+ <key>LinkURL</key>
25+ <string>http://www.artofadambetts.com/</string>
26+ <key>Title</key>
27+ <string>Adiumy Green</string>
28+ </dict>
29+ <key>State</key>
30+ <dict>
31+ <key>Invisible</key>
32+ <dict>
33+ <key>Overlay</key>
34+ <false/>
35+ <key>Animated</key>
36+ <false/>
37+ <key>Image</key>
38+ <string>Invisible.png</string>
39+ </dict>
40+ <key>InvisibleAlert</key>
41+ <dict>
42+ <key>Animated</key>
43+ <true/>
44+ <key>Images</key>
45+ <array>
46+ <string>InvisibleFlap.png</string>
47+ <string>Invisible.png</string>
48+ </array>
49+ <key>Overlay</key>
50+ <false/>
51+ <key>Delay</key>
52+ <real>0.5</real>
53+ </dict>
54+ <key>Alert</key>
55+ <dict>
56+ <key>Animated</key>
57+ <true/>
58+ <key>Delay</key>
59+ <real>0.5</real>
60+ <key>Images</key>
61+ <array>
62+ <string>Flap.png</string>
63+ <string>Awake.png</string>
64+ </array>
65+ <key>Overlay</key>
66+ <false/>
67+ </dict>
68+ <key>ApplicationIcon</key>
69+ <dict>
70+ <key>Animated</key>
71+ <false/>
72+ <key>Image</key>
73+ <string>ApplicationIcon.png</string>
74+ <key>Overlay</key>
75+ <false/>
76+ </dict>
77+ <key>Away</key>
78+ <dict>
79+ <key>Animated</key>
80+ <false/>
81+ <key>Image</key>
82+ <string>../Shared Images/Away.png</string>
83+ <key>Overlay</key>
84+ <true/>
85+ </dict>
86+ <key>Base</key>
87+ <dict>
88+ <key>Animated</key>
89+ <false/>
90+ <key>Image</key>
91+ <string>Asleep.png</string>
92+ <key>Overlay</key>
93+ <false/>
94+ </dict>
95+ <key>Connecting</key>
96+ <dict>
97+ <key>Animated</key>
98+ <true/>
99+ <key>Delay</key>
100+ <real>0.2</real>
101+ <key>Images</key>
102+ <array>
103+ <string>../Shared Images/Connect1.png</string>
104+ <string>../Shared Images/Connect2.png</string>
105+ <string>../Shared Images/Connect3.png</string>
106+ <string>../Shared Images/Connect4.png</string>
107+ </array>
108+ <key>Overlay</key>
109+ <true/>
110+ </dict>
111+ <key>Idle</key>
112+ <dict>
113+ <key>Animated</key>
114+ <false/>
115+ <key>Image</key>
116+ <string>../Shared Images/Idle.png</string>
117+ <key>Overlay</key>
118+ <true/>
119+ </dict>
120+ <key>Online</key>
121+ <dict>
122+ <key>Animated</key>
123+ <false/>
124+ <key>Image</key>
125+ <string>Awake.png</string>
126+ <key>Overlay</key>
127+ <false/>
128+ </dict>
129+ <key>Preview</key>
130+ <dict>
131+ <key>Animated</key>
132+ <false/>
133+ <key>Image</key>
134+ <string>Awake.png</string>
135+ <key>Overlay</key>
136+ <false/>
137+ </dict>
138+ </dict>
139+</dict>
140+</plist>
141
142=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Invisible.png'
143Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/Invisible.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/Invisible.png 2010-05-06 10:16:27 +0000 differ
144=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/InvisibleFlap.png'
145Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/InvisibleFlap.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/InvisibleFlap.png 2010-05-06 10:16:27 +0000 differ
146=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/PidginDockIcon-Idle.png'
147Binary files applets/maintained/pidgin-adium/adium-dock-themes/Green/PidginDockIcon-Idle.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Green/PidginDockIcon-Idle.png 2010-05-06 10:16:27 +0000 differ
148=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2'
149--- applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2 1970-01-01 00:00:00 +0000
150+++ applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2 2010-05-06 10:16:27 +0000
151@@ -0,0 +1,390 @@
152+--------------------------------------------------------------------
153+ GNU GENERAL PUBLIC LICENSE
154+ Version 2, June 1991
155+
156+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
157+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
158+ Everyone is permitted to copy and distribute verbatim copies
159+ of this license document, but changing it is not allowed.
160+
161+ Preamble
162+
163+ The licenses for most software are designed to take away your
164+freedom to share and change it. By contrast, the GNU General Public
165+License is intended to guarantee your freedom to share and change free
166+software--to make sure the software is free for all its users. This
167+General Public License applies to most of the Free Software
168+Foundation's software and to any other program whose authors commit to
169+using it. (Some other Free Software Foundation software is covered by
170+the GNU Library General Public License instead.) You can apply it to
171+your programs, too.
172+
173+ When we speak of free software, we are referring to freedom, not
174+price. Our General Public Licenses are designed to make sure that you
175+have the freedom to distribute copies of free software (and charge for
176+this service if you wish), that you receive source code or can get it
177+if you want it, that you can change the software or use pieces of it
178+in new free programs; and that you know you can do these things.
179+
180+ To protect your rights, we need to make restrictions that forbid
181+anyone to deny you these rights or to ask you to surrender the rights.
182+These restrictions translate to certain responsibilities for you if you
183+distribute copies of the software, or if you modify it.
184+
185+ For example, if you distribute copies of such a program, whether
186+gratis or for a fee, you must give the recipients all the rights that
187+you have. You must make sure that they, too, receive or can get the
188+source code. And you must show them these terms so they know their
189+rights.
190+
191+ We protect your rights with two steps: (1) copyright the software, and
192+(2) offer you this license which gives you legal permission to copy,
193+distribute and/or modify the software.
194+
195+ Also, for each author's protection and ours, we want to make certain
196+that everyone understands that there is no warranty for this free
197+software. If the software is modified by someone else and passed on, we
198+want its recipients to know that what they have is not the original, so
199+that any problems introduced by others will not reflect on the original
200+authors' reputations.
201+
202+ Finally, any free program is threatened constantly by software
203+patents. We wish to avoid the danger that redistributors of a free
204+program will individually obtain patent licenses, in effect making the
205+program proprietary. To prevent this, we have made it clear that any
206+patent must be licensed for everyone's free use or not licensed at all.
207+
208+ The precise terms and conditions for copying, distribution and
209+modification follow.
210+
211
212+ GNU GENERAL PUBLIC LICENSE
213+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
214+
215+ 0. This License applies to any program or other work which contains
216+a notice placed by the copyright holder saying it may be distributed
217+under the terms of this General Public License. The "Program", below,
218+refers to any such program or work, and a "work based on the Program"
219+means either the Program or any derivative work under copyright law:
220+that is to say, a work containing the Program or a portion of it,
221+either verbatim or with modifications and/or translated into another
222+language. (Hereinafter, translation is included without limitation in
223+the term "modification".) Each licensee is addressed as "you".
224+
225+Activities other than copying, distribution and modification are not
226+covered by this License; they are outside its scope. The act of
227+running the Program is not restricted, and the output from the Program
228+is covered only if its contents constitute a work based on the
229+Program (independent of having been made by running the Program).
230+Whether that is true depends on what the Program does.
231+
232+ 1. You may copy and distribute verbatim copies of the Program's
233+source code as you receive it, in any medium, provided that you
234+conspicuously and appropriately publish on each copy an appropriate
235+copyright notice and disclaimer of warranty; keep intact all the
236+notices that refer to this License and to the absence of any warranty;
237+and give any other recipients of the Program a copy of this License
238+along with the Program.
239+
240+You may charge a fee for the physical act of transferring a copy, and
241+you may at your option offer warranty protection in exchange for a fee.
242+
243+ 2. You may modify your copy or copies of the Program or any portion
244+of it, thus forming a work based on the Program, and copy and
245+distribute such modifications or work under the terms of Section 1
246+above, provided that you also meet all of these conditions:
247+
248+ a) You must cause the modified files to carry prominent notices
249+ stating that you changed the files and the date of any change.
250+
251+ b) You must cause any work that you distribute or publish, that in
252+ whole or in part contains or is derived from the Program or any
253+ part thereof, to be licensed as a whole at no charge to all third
254+ parties under the terms of this License.
255+
256+ c) If the modified program normally reads commands interactively
257+ when run, you must cause it, when started running for such
258+ interactive use in the most ordinary way, to print or display an
259+ announcement including an appropriate copyright notice and a
260+ notice that there is no warranty (or else, saying that you provide
261+ a warranty) and that users may redistribute the program under
262+ these conditions, and telling the user how to view a copy of this
263+ License. (Exception: if the Program itself is interactive but
264+ does not normally print such an announcement, your work based on
265+ the Program is not required to print an announcement.)
266+
267
268+These requirements apply to the modified work as a whole. If
269+identifiable sections of that work are not derived from the Program,
270+and can be reasonably considered independent and separate works in
271+themselves, then this License, and its terms, do not apply to those
272+sections when you distribute them as separate works. But when you
273+distribute the same sections as part of a whole which is a work based
274+on the Program, the distribution of the whole must be on the terms of
275+this License, whose permissions for other licensees extend to the
276+entire whole, and thus to each and every part regardless of who wrote it.
277+
278+Thus, it is not the intent of this section to claim rights or contest
279+your rights to work written entirely by you; rather, the intent is to
280+exercise the right to control the distribution of derivative or
281+collective works based on the Program.
282+
283+In addition, mere aggregation of another work not based on the Program
284+with the Program (or with a work based on the Program) on a volume of
285+a storage or distribution medium does not bring the other work under
286+the scope of this License.
287+
288+ 3. You may copy and distribute the Program (or a work based on it,
289+under Section 2) in object code or executable form under the terms of
290+Sections 1 and 2 above provided that you also do one of the following:
291+
292+ a) Accompany it with the complete corresponding machine-readable
293+ source code, which must be distributed under the terms of Sections
294+ 1 and 2 above on a medium customarily used for software interchange; or,
295+
296+ b) Accompany it with a written offer, valid for at least three
297+ years, to give any third party, for a charge no more than your
298+ cost of physically performing source distribution, a complete
299+ machine-readable copy of the corresponding source code, to be
300+ distributed under the terms of Sections 1 and 2 above on a medium
301+ customarily used for software interchange; or,
302+
303+ c) Accompany it with the information you received as to the offer
304+ to distribute corresponding source code. (This alternative is
305+ allowed only for noncommercial distribution and only if you
306+ received the program in object code or executable form with such
307+ an offer, in accord with Subsection b above.)
308+
309+The source code for a work means the preferred form of the work for
310+making modifications to it. For an executable work, complete source
311+code means all the source code for all modules it contains, plus any
312+associated interface definition files, plus the scripts used to
313+control compilation and installation of the executable. However, as a
314+special exception, the source code distributed need not include
315+anything that is normally distributed (in either source or binary
316+form) with the major components (compiler, kernel, and so on) of the
317+operating system on which the executable runs, unless that component
318+itself accompanies the executable.
319+
320+If distribution of executable or object code is made by offering
321+access to copy from a designated place, then offering equivalent
322+access to copy the source code from the same place counts as
323+distribution of the source code, even though third parties are not
324+compelled to copy the source along with the object code.
325+
326
327+ 4. You may not copy, modify, sublicense, or distribute the Program
328+except as expressly provided under this License. Any attempt
329+otherwise to copy, modify, sublicense or distribute the Program is
330+void, and will automatically terminate your rights under this License.
331+However, parties who have received copies, or rights, from you under
332+this License will not have their licenses terminated so long as such
333+parties remain in full compliance.
334+
335+ 5. You are not required to accept this License, since you have not
336+signed it. However, nothing else grants you permission to modify or
337+distribute the Program or its derivative works. These actions are
338+prohibited by law if you do not accept this License. Therefore, by
339+modifying or distributing the Program (or any work based on the
340+Program), you indicate your acceptance of this License to do so, and
341+all its terms and conditions for copying, distributing or modifying
342+the Program or works based on it.
343+
344+ 6. Each time you redistribute the Program (or any work based on the
345+Program), the recipient automatically receives a license from the
346+original licensor to copy, distribute or modify the Program subject to
347+these terms and conditions. You may not impose any further
348+restrictions on the recipients' exercise of the rights granted herein.
349+You are not responsible for enforcing compliance by third parties to
350+this License.
351+
352+ 7. If, as a consequence of a court judgment or allegation of patent
353+infringement or for any other reason (not limited to patent issues),
354+conditions are imposed on you (whether by court order, agreement or
355+otherwise) that contradict the conditions of this License, they do not
356+excuse you from the conditions of this License. If you cannot
357+distribute so as to satisfy simultaneously your obligations under this
358+License and any other pertinent obligations, then as a consequence you
359+may not distribute the Program at all. For example, if a patent
360+license would not permit royalty-free redistribution of the Program by
361+all those who receive copies directly or indirectly through you, then
362+the only way you could satisfy both it and this License would be to
363+refrain entirely from distribution of the Program.
364+
365+If any portion of this section is held invalid or unenforceable under
366+any particular circumstance, the balance of the section is intended to
367+apply and the section as a whole is intended to apply in other
368+circumstances.
369+
370+It is not the purpose of this section to induce you to infringe any
371+patents or other property right claims or to contest validity of any
372+such claims; this section has the sole purpose of protecting the
373+integrity of the free software distribution system, which is
374+implemented by public license practices. Many people have made
375+generous contributions to the wide range of software distributed
376+through that system in reliance on consistent application of that
377+system; it is up to the author/donor to decide if he or she is willing
378+to distribute software through any other system and a licensee cannot
379+impose that choice.
380+
381+This section is intended to make thoroughly clear what is believed to
382+be a consequence of the rest of this License.
383+
384
385+ 8. If the distribution and/or use of the Program is restricted in
386+certain countries either by patents or by copyrighted interfaces, the
387+original copyright holder who places the Program under this License
388+may add an explicit geographical distribution limitation excluding
389+those countries, so that distribution is permitted only in or among
390+countries not thus excluded. In such case, this License incorporates
391+the limitation as if written in the body of this License.
392+
393+ 9. The Free Software Foundation may publish revised and/or new versions
394+of the General Public License from time to time. Such new versions will
395+be similar in spirit to the present version, but may differ in detail to
396+address new problems or concerns.
397+
398+Each version is given a distinguishing version number. If the Program
399+specifies a version number of this License which applies to it and "any
400+later version", you have the option of following the terms and conditions
401+either of that version or of any later version published by the Free
402+Software Foundation. If the Program does not specify a version number of
403+this License, you may choose any version ever published by the Free Software
404+Foundation.
405+
406+ 10. If you wish to incorporate parts of the Program into other free
407+programs whose distribution conditions are different, write to the author
408+to ask for permission. For software which is copyrighted by the Free
409+Software Foundation, write to the Free Software Foundation; we sometimes
410+make exceptions for this. Our decision will be guided by the two goals
411+of preserving the free status of all derivatives of our free software and
412+of promoting the sharing and reuse of software generally.
413+
414+ NO WARRANTY
415+
416+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
417+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
418+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
419+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
420+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
421+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
422+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
423+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
424+REPAIR OR CORRECTION.
425+
426+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
427+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
428+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
429+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
430+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
431+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
432+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
433+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
434+POSSIBILITY OF SUCH DAMAGES.
435+
436+ END OF TERMS AND CONDITIONS
437+
438
439+ How to Apply These Terms to Your New Programs
440+
441+ If you develop a new program, and you want it to be of the greatest
442+possible use to the public, the best way to achieve this is to make it
443+free software which everyone can redistribute and change under these terms.
444+
445+ To do so, attach the following notices to the program. It is safest
446+to attach them to the start of each source file to most effectively
447+convey the exclusion of warranty; and each file should have at least
448+the "copyright" line and a pointer to where the full notice is found.
449+
450+ <one line to give the program's name and a brief idea of what it does.>
451+ Copyright (C) <year> <name of author>
452+
453+ This program is free software; you can redistribute it and/or modify
454+ it under the terms of the GNU General Public License as published by
455+ the Free Software Foundation; either version 2 of the License, or
456+ (at your option) any later version.
457+
458+ This program is distributed in the hope that it will be useful,
459+ but WITHOUT ANY WARRANTY; without even the implied warranty of
460+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
461+ GNU General Public License for more details.
462+
463+ You should have received a copy of the GNU General Public License
464+ along with this program; if not, write to the Free Software
465+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
466+
467+
468+Also add information on how to contact you by electronic and paper mail.
469+
470+If the program is interactive, make it output a short notice like this
471+when it starts in an interactive mode:
472+
473+ Gnomovision version 69, Copyright (C) year name of author
474+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
475+ This is free software, and you are welcome to redistribute it
476+ under certain conditions; type `show c' for details.
477+
478+The hypothetical commands `show w' and `show c' should show the appropriate
479+parts of the General Public License. Of course, the commands you use may
480+be called something other than `show w' and `show c'; they could even be
481+mouse-clicks or menu items--whatever suits your program.
482+
483+You should also get your employer (if you work as a programmer) or your
484+school, if any, to sign a "copyright disclaimer" for the program, if
485+necessary. Here is a sample; alter the names:
486+
487+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
488+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
489+
490+ <signature of Ty Coon>, 1 April 1989
491+ Ty Coon, President of Vice
492+
493+This General Public License does not permit incorporating your program into
494+proprietary programs. If your program is a subroutine library, you may
495+consider it more useful to permit linking proprietary applications with the
496+library. If this is what you want to do, use the GNU Library General
497+Public License instead of this License.
498+
499+--------------------------------------------------------------------------------
500+Adium uses libezv by Andrew Wellington, which is distributed under the
501+following license:
502+
503+Libezv
504+Copyright (c) 2004 Andrew Wellington.
505+All rights reserved.
506+
507+Redistribution and use in source and binary forms, with or without modification,
508+are permitted provided that the following conditions are met:
509+
510+1. Redistributions of source code must retain the above copyright notice, this
511+list of conditions and the following disclaimer.
512+2. Redistributions in binary form must reproduce the above copyright notice,
513+this list of conditions and the following disclaimer in the documentation and/or
514+other materials provided with the distribution.
515+
516+THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
517+WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
518+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
519+SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
520+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
521+OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
522+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
523+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
524+IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
525+OF SUCH DAMAGE.
526+--------------------------------------------------------------------------------
527+Adium uses zhm, the Zephyr Host Manager, alongside libpurple to provide Zephyr
528+connectivity. It is distributed under the MIT License as follows:
529+
530+Permission is hereby granted, free of charge, to any person obtaining a copy
531+of this software and associated documentation files (the "Software"), to deal
532+in the Software without restriction, including without limitation the rights
533+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
534+copies of the Software, and to permit persons to whom the Software is
535+furnished to do so, subject to the following conditions:
536+
537+The above copyright notice and this permission notice shall be included in
538+all copies or substantial portions of the Software.
539+
540+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
541+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
542+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
543+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
544+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
545+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
546+THE SOFTWARE.
547\ No newline at end of file
548
549=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Purple'
550=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/ApplicationIcon.png'
551Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/ApplicationIcon.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/ApplicationIcon.png 2010-05-06 10:16:27 +0000 differ
552=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Asleep.png'
553Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/Asleep.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/Asleep.png 2010-05-06 10:16:27 +0000 differ
554=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Awake.png'
555Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/Awake.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/Awake.png 2010-05-06 10:16:27 +0000 differ
556=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Flap.png'
557Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/Flap.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/Flap.png 2010-05-06 10:16:27 +0000 differ
558=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist'
559--- applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist 1970-01-01 00:00:00 +0000
560+++ applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist 2010-05-06 10:16:27 +0000
561@@ -0,0 +1,125 @@
562+<?xml version="1.0" encoding="UTF-8"?>
563+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
564+<plist version="1.0">
565+<dict>
566+ <key>Description</key>
567+ <dict>
568+ <key>Creator</key>
569+ <string>Created by Adam Betts</string>
570+ <key>LinkURL</key>
571+ <string>http://www.artofadambetts.com/</string>
572+ <key>Title</key>
573+ <string>Adiumy Purple</string>
574+ </dict>
575+ <key>State</key>
576+ <dict>
577+ <key>Invisible</key>
578+ <dict>
579+ <key>Overlay</key>
580+ <false/>
581+ <key>Animated</key>
582+ <false/>
583+ <key>Image</key>
584+ <string>Invisible.png</string>
585+ </dict>
586+ <key>InvisibleAlert</key>
587+ <dict>
588+ <key>Animated</key>
589+ <true/>
590+ <key>Images</key>
591+ <array>
592+ <string>InvisibleFlap.png</string>
593+ <string>Invisible.png</string>
594+ </array>
595+ <key>Overlay</key>
596+ <false/>
597+ <key>Delay</key>
598+ <real>0.5</real>
599+ </dict>
600+ <key>Alert</key>
601+ <dict>
602+ <key>Animated</key>
603+ <true/>
604+ <key>Delay</key>
605+ <real>0.5</real>
606+ <key>Images</key>
607+ <array>
608+ <string>Flap.png</string>
609+ <string>Awake.png</string>
610+ </array>
611+ <key>Overlay</key>
612+ <false/>
613+ </dict>
614+ <key>ApplicationIcon</key>
615+ <dict>
616+ <key>Animated</key>
617+ <false/>
618+ <key>Image</key>
619+ <string>ApplicationIcon.png</string>
620+ <key>Overlay</key>
621+ <false/>
622+ </dict>
623+ <key>Away</key>
624+ <dict>
625+ <key>Animated</key>
626+ <false/>
627+ <key>Image</key>
628+ <string>../Shared Images/Away.png</string>
629+ <key>Overlay</key>
630+ <true/>
631+ </dict>
632+ <key>Base</key>
633+ <dict>
634+ <key>Animated</key>
635+ <false/>
636+ <key>Image</key>
637+ <string>Asleep.png</string>
638+ <key>Overlay</key>
639+ <false/>
640+ </dict>
641+ <key>Connecting</key>
642+ <dict>
643+ <key>Animated</key>
644+ <true/>
645+ <key>Delay</key>
646+ <real>0.2</real>
647+ <key>Images</key>
648+ <array>
649+ <string>../Shared Images/Connect1.png</string>
650+ <string>../Shared Images/Connect2.png</string>
651+ <string>../Shared Images/Connect3.png</string>
652+ <string>../Shared Images/Connect4.png</string>
653+ </array>
654+ <key>Overlay</key>
655+ <true/>
656+ </dict>
657+ <key>Idle</key>
658+ <dict>
659+ <key>Animated</key>
660+ <false/>
661+ <key>Image</key>
662+ <string>../Shared Images/Idle.png</string>
663+ <key>Overlay</key>
664+ <true/>
665+ </dict>
666+ <key>Online</key>
667+ <dict>
668+ <key>Animated</key>
669+ <false/>
670+ <key>Image</key>
671+ <string>Awake.png</string>
672+ <key>Overlay</key>
673+ <false/>
674+ </dict>
675+ <key>Preview</key>
676+ <dict>
677+ <key>Animated</key>
678+ <false/>
679+ <key>Image</key>
680+ <string>Awake.png</string>
681+ <key>Overlay</key>
682+ <false/>
683+ </dict>
684+ </dict>
685+</dict>
686+</plist>
687
688=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Invisible.png'
689Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/Invisible.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/Invisible.png 2010-05-06 10:16:27 +0000 differ
690=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/InvisibleFlap.png'
691Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/InvisibleFlap.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/InvisibleFlap.png 2010-05-06 10:16:27 +0000 differ
692=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Away.png.png'
693Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Away.png.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Away.png.png 2010-05-06 10:16:27 +0000 differ
694=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Idle.png.png'
695Binary files applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Idle.png.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Idle.png.png 2010-05-06 10:16:27 +0000 differ
696=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/README.themes'
697--- applets/maintained/pidgin-adium/adium-dock-themes/README.themes 1970-01-01 00:00:00 +0000
698+++ applets/maintained/pidgin-adium/adium-dock-themes/README.themes 2010-05-06 10:16:27 +0000
699@@ -0,0 +1,3 @@
700+The icon themes bundled with this applet were copied from Adium, which
701+is licensed under the GPL version 2 (or later). See LICENSE.GPL2 for
702+the full text
703
704=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images'
705=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Away.png'
706Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Away.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Away.png 2010-05-06 10:16:27 +0000 differ
707=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect1.png'
708Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect1.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect1.png 2010-05-06 10:16:27 +0000 differ
709=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect2.png'
710Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect2.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect2.png 2010-05-06 10:16:27 +0000 differ
711=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect3.png'
712Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect3.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect3.png 2010-05-06 10:16:27 +0000 differ
713=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect4.png'
714Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect4.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect4.png 2010-05-06 10:16:27 +0000 differ
715=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Idle.png'
716Binary files applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Idle.png 1970-01-01 00:00:00 +0000 and applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Idle.png 2010-05-06 10:16:27 +0000 differ
717=== added file 'applets/maintained/pidgin-adium/adiumicontheme.py'
718--- applets/maintained/pidgin-adium/adiumicontheme.py 1970-01-01 00:00:00 +0000
719+++ applets/maintained/pidgin-adium/adiumicontheme.py 2010-05-06 10:16:27 +0000
720@@ -0,0 +1,82 @@
721+# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
722+#
723+# This program is free software: you can redistribute it and/or modify
724+# it under the terms of the GNU General Public License as published by
725+# the Free Software Foundation, version 2 of the License.
726+#
727+# This program is distributed in the hope that it will be useful,
728+# but WITHOUT ANY WARRANTY; without even the implied warranty of
729+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
730+# GNU General Public License for more details.
731+#
732+# You should have received a copy of the GNU General Public License
733+# along with this program. If not, see <http://www.gnu.org/licenses/>.
734+
735+import plistlib
736+import os
737+import itertools
738+
739+
740+class AdiumIconSetter(object):
741+
742+ def __init__(self, themedir, setup_timeout_function, start_timer_function,\
743+ stop_timer_function, setup_icon_function):
744+ self.themedirname = themedir
745+ self.setup_timeout_function, self.start_timer_function, \
746+ self.stop_timer_function, self.setup_icon_function = \
747+ setup_timeout_function, start_timer_function,\
748+ stop_timer_function, setup_icon_function
749+ try:
750+ self.theme = plistlib.readPlist(self.themedir("IconPack.plist"))
751+ except:
752+ self.theme = plistlib.readPlist(self.themedir("Info.plist"))
753+
754+ self.name = self.theme["Description"]["Title"]
755+ self.author = self.theme["Description"]["Creator"]
756+ self.status = None
757+
758+ def themedir(self, filename):
759+ return os.path.join(self.themedirname, filename)
760+
761+ def get_filename_overlayed_image(self, imagebase, imageoverlay):
762+ filename = self.themedir("__temp-for-pidgin-only-" + \
763+ os.path.basename(imagebase)\
764+ + "_and_" + os.path.basename(imageoverlay) \
765+ + ".png")
766+ if not os.path.isfile(filename):
767+ import Image
768+ ###online or Base?..
769+ base = Image.open(self.themedir(imagebase)).convert('RGBA')
770+ overlay = Image.open(self.themedir(imageoverlay)).convert('RGBA')
771+ resultimage = Image.composite(overlay, base, overlay)
772+ resultimage.save(filename)
773+ return filename
774+
775+ def timeout_cb(self):
776+ if self.theme["State"][self.status]["Overlay"]:
777+ self.setup_icon_function_overlay(self.animateframes.next())
778+ else:
779+ self.setup_icon_function(self.animateframes.next())
780+
781+ def setup_icon_function_overlay(self, icon):
782+ self.setup_icon_function(\
783+ self.get_filename_overlayed_image(\
784+ self.theme["State"]["Base"]["Image"], icon))
785+
786+ def set_status(self, status):
787+ if self.status != status:
788+ self.status = status
789+ if self.theme["State"][status]["Animated"]:
790+ self.setup_timeout_function(\
791+ self.theme["State"][status]["Delay"])
792+ self.animateframes = itertools.cycle(\
793+ self.theme["State"][status]["Images"])
794+ self.start_timer_function()
795+ else:
796+ self.stop_timer_function()
797+ if self.theme["State"][status]["Overlay"]:
798+ self.setup_icon_function_overlay(\
799+ self.theme["State"][status]["Image"])
800+ else:
801+ self.setup_icon_function(\
802+ self.theme["State"][status]["Image"])
803
804=== added file 'applets/maintained/pidgin-adium/pidgin-adium.py'
805--- applets/maintained/pidgin-adium/pidgin-adium.py 1970-01-01 00:00:00 +0000
806+++ applets/maintained/pidgin-adium/pidgin-adium.py 2010-05-06 10:16:27 +0000
807@@ -0,0 +1,232 @@
808+# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
809+#
810+# This program is free software: you can redistribute it and/or modify
811+# it under the terms of the GNU General Public License as published by
812+# the Free Software Foundation, version 2 of the License.
813+#
814+# This program is distributed in the hope that it will be useful,
815+# but WITHOUT ANY WARRANTY; without even the implied warranty of
816+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
817+# GNU General Public License for more details.
818+#
819+# You should have received a copy of the GNU General Public License
820+# along with this program. If not, see <http://www.gnu.org/licenses/>.
821+
822+# Here some imports like re, os, sys, etc.
823+import os
824+import gtk
825+import gtk.gdk
826+
827+from awn.extras import awnlib
828+
829+import pidgindbus
830+import adiumicontheme
831+import subprocess
832+
833+applet_name = "Pidgin-Adium dock"
834+applet_version = "0.0.5"
835+applet_description = """An applet that place pidgin-status icon with animated \
836+Adium theme to doc"""
837+
838+applet_logo = os.path.join(os.path.dirname(__file__), \
839+ "adium-dock-themes/Green/Asleep.png")
840+
841+STATUS_TYPES = (('__this status not exist__', 'This icon do not exist', \
842+ 'This icon do not exist'), \
843+ ('offline', 'Base'), \
844+ ('online', 'Online'), \
845+ ('unavailable', 'Idle'), \
846+ ('invisible', 'Invisible'), \
847+ ('away', 'Away'), \
848+ ('extended away', 'Away'), \
849+ ('mobile', 'Online'), \
850+ ('tune', 'Preview'))
851+
852+
853+class PidginAdiumApplet:
854+ """ An applet that shows pidgin status with adium themes icon """
855+
856+ def __init__(self, applet):
857+ self.applet = applet
858+ self.connect_to_pidgin()
859+
860+ self.update_animation = self.applet.timing.register(\
861+ self.update_animation_cb, 3, False)
862+ self.pidgin_istance_search_timer = self.applet.timing.register(\
863+ self.pidgin_istance_search_timer_cb, \
864+ 0.5, True)
865+
866+ self.atheme = adiumicontheme.AdiumIconSetter(\
867+ os.path.join(self.get_path_to_themes(), \
868+ self.get_current_theme_name()), \
869+ self.update_animation.change_interval, \
870+ self.update_animation.start,\
871+ self.update_animation.stop, self.setup_icon)
872+ self.active = False
873+ self.RefreshIcon()
874+ self.setup_context_menu()
875+
876+ self.applet.connect_size_changed(self.size_changed_cb)
877+
878+ self.RefreshIcon()
879+ self.applet.connect("clicked", self.clicked_cb)
880+
881+ def clicked_cb(self, date):
882+ subprocess.Popen('pidgin', shell=True)
883+ if self.pidgin == None:
884+ self.pidgin_istance_search_timer.start()
885+
886+ def pidgin_istance_search_timer_cb(self):
887+ self.connect_to_pidgin()
888+ if self.pidgin != None:
889+ self.pidgin_istance_search_timer.stop()
890+ self.RefreshIcon()
891+
892+ def connect_to_pidgin(self):
893+ try:
894+ self.pidgin = pidgindbus.Pidgin(self.message_recieve_handler, \
895+ self.status_changed_handler, \
896+ self.message_readed_handler, \
897+ self.connecting_handler, \
898+ self.signed_on_handler)
899+ except:
900+ self.pidgin = None
901+
902+ def update_animation_cb(self):
903+ self.atheme.timeout_cb()
904+
905+ def setup_dialog_settings(self, vbox):
906+ """Load the settings.
907+
908+ """
909+ if "theme" not in self.applet.settings:
910+ self.applet.settings["theme"] = "Green"
911+ self.theme_setting = self.applet.settings["theme"]
912+
913+ combobox = gtk.combo_box_new_text()
914+
915+ combobox.connect('changed', self.changed_theme_cb)
916+
917+ directory = self.get_path_to_themes()
918+ for f in os.listdir(directory):
919+ if os.path.isfile(os.path.join(directory, f)):
920+ pass
921+ if os.path.isdir(os.path.join(directory, f)) and \
922+ (f != "Shared Images"):
923+ combobox.append_text(f)
924+
925+ def set_active_text(combobox, text):
926+ model = combobox.get_model()
927+ for i, item in enumerate(model):
928+ if item[0] == text:
929+ combobox.set_active(i)
930+ break
931+
932+ set_active_text(combobox, self.applet.settings["theme"])
933+ vbox.pack_start(gtk.Label("Select Adium theme for dock: \n \
934+(themes must be placed at ~/.config/awn/pidgin-adium/adium-dock-themes)\n \
935+You can download themes at \n \
936+http://www.adiumxtras.com/index.php?a=search&cat_id=1"))
937+ vbox.pack_start(combobox)
938+
939+ def changed_theme_cb(self, combobox):
940+ model = combobox.get_model()
941+ index = combobox.get_active()
942+ if index:
943+ self.applet.settings["theme"] = model[index][0]
944+ self.atheme = adiumicontheme.AdiumIconSetter(\
945+ os.path.join(self.get_path_to_themes(),\
946+ self.get_current_theme_name()), \
947+ self.update_animation.change_interval, \
948+ self.update_animation.start,\
949+ self.update_animation.stop, self.setup_icon)
950+ self.RefreshIcon()
951+ return
952+
953+ def setup_context_menu(self):
954+ pref_dialog = self.applet.dialog.new("preferences")
955+
956+ self.setup_dialog_settings(pref_dialog.vbox)
957+
958+ self.popup_menu = self.applet.create_default_menu()
959+ for i, status in enumerate(STATUS_TYPES):
960+ menuitem = gtk.MenuItem(status[0])
961+ self.popup_menu.append(menuitem)
962+ menuitem.show()
963+ menuitem.connect("activate", self.status_menu_activate_cb, i)
964+ self.popup_menu.show_all()
965+
966+ def status_menu_activate_cb(self, numstatus):
967+ print STATUS_TYPES[numstatus]
968+
969+ def size_changed_cb(self):
970+ self.RefreshIcon()
971+
972+ def set_tooltip(self, tooltip):
973+ self.applet.tooltip.set(tooltip)
974+
975+ def setup_icon(self, iconname):
976+ iconw = self.applet.get_size()
977+ icon = gtk.gdk.pixbuf_new_from_file_at_size(\
978+ os.path.join(self.get_path_to_themes(),\
979+ self.get_current_theme_name(), iconname),\
980+ iconw, iconw)
981+ self.applet.icon.set(icon)
982+
983+ def set_status(self):
984+ if self.pidgin != None:
985+ self.status = self.pidgin.GetStatus()
986+ self.active = (self.pidgin.GetUnreadMessagesNum() != 0)
987+ self.old_active = self.active
988+ self.tooltip = STATUS_TYPES[self.status][0]
989+ if self.active:
990+ self.tooltip += " (%s)" % self.pidgin.GetUnreadMessagesNum()
991+ if self.status == 4: #InvisibleAlert
992+ self.atheme.set_status("InvisibleAlert")
993+ else:
994+ self.atheme.set_status("Alert")
995+ else:
996+ self.atheme.set_status(STATUS_TYPES[self.status][1])
997+ else:
998+ self.tooltip = "Pidgin not running. Click to run Pidgin"
999+ self.atheme.set_status("Base")
1000+
1001+ def RefreshIcon(self, **args):
1002+ self.set_status()
1003+ self.set_tooltip(self.tooltip)
1004+
1005+ def get_path_to_themes(self):
1006+ return os.path.join(os.path.dirname(__file__), "adium-dock-themes")
1007+
1008+ def get_current_theme_name(self):
1009+ return self.applet.settings["theme"]
1010+
1011+ def message_recieve_handler(self, **args):
1012+ print ">>>>>>message from %s, '%s', total unread messages: %d" \
1013+ % (args['sender'], args['message'], \
1014+ args['unread'][0])
1015+ self.RefreshIcon()
1016+ #fixme: args)
1017+
1018+ def status_changed_handler(self, **args):
1019+ self.RefreshIcon()
1020+
1021+ def message_readed_handler(self, **args):
1022+ self.RefreshIcon()
1023+
1024+ def connecting_handler(self, **args):
1025+ self.atheme.set_status("Connecting")
1026+
1027+ def signed_on_handler(self, **args):
1028+ self.RefreshIcon()
1029+
1030+
1031+if __name__ == "__main__":
1032+ awnlib.init_start(PidginAdiumApplet, {"name": applet_name,
1033+ "short": "pidgin-adium",
1034+ "version": applet_version,
1035+ "description": applet_description,
1036+ "theme": applet_logo,
1037+ "author": "Sergey Klimov",
1038+ "copyright-year": 2010,
1039+ "authors": ["Sergey Klimov <dcdarv@gmail.com>"]})
1040
1041=== added file 'applets/maintained/pidgin-adium/pidgindbus.py'
1042--- applets/maintained/pidgin-adium/pidgindbus.py 1970-01-01 00:00:00 +0000
1043+++ applets/maintained/pidgin-adium/pidgindbus.py 2010-05-06 10:16:27 +0000
1044@@ -0,0 +1,181 @@
1045+# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
1046+#
1047+# This program is free software: you can redistribute it and/or modify
1048+# it under the terms of the GNU General Public License as published by
1049+# the Free Software Foundation, version 2 of the License.
1050+#
1051+# This program is distributed in the hope that it will be useful,
1052+# but WITHOUT ANY WARRANTY; without even the implied warranty of
1053+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1054+# GNU General Public License for more details.
1055+#
1056+# You should have received a copy of the GNU General Public License
1057+# along with this program. If not, see <http://www.gnu.org/licenses/>.
1058+
1059+import gobject
1060+import os
1061+import sys
1062+import dbus
1063+from dbus.mainloop.glib import DBusGMainLoop
1064+
1065+
1066+def MessageRecieve(**args):
1067+ pass
1068+
1069+
1070+def StatusChanged(**args):
1071+ pass
1072+
1073+
1074+def MessageReaded(**args):
1075+ pass
1076+
1077+
1078+def Connecting(**args):
1079+ pass
1080+
1081+
1082+if __name__ == '__main__':
1083+ STATUS_TYPES = (('__this status not exist__', \
1084+ 'This icon do not exist', 'This icon do not exist'), \
1085+ ('offline', 'Asleep.png', 'This icon do not exist'), \
1086+ ('online', 'Awake.png', 'Flap.png'), \
1087+ ('unavailable', 'Invisible.png', 'InvisibleFlap.png'), \
1088+ ('invisible', 'Invisible.png', 'InvisibleFlap.png'), \
1089+ ('away', 'Invisible.png', 'InvisibleFlap.png'), \
1090+ ('extended away', 'Invisible.png', 'InvisibleFlap.png'), \
1091+ ('mobile', 'Awake.png', 'Flap.png'), \
1092+ ('tune', 'Awake.png', 'Flap.png'))
1093+
1094+
1095+class Pidgin(object):
1096+ """Class to communicate pidgin"""
1097+ STATUS = {'_notconnected_': 0,
1098+ 'offline': 1,
1099+ 'online': 2,
1100+ 'unavailable': 3,
1101+ 'invisible': 4,
1102+ 'away': 5,
1103+ 'extended away': 6,
1104+ 'mobile': 7,
1105+ 'tune': 8}
1106+
1107+ def __init__(self, message_recieve_handler, status_changed_handler,\
1108+ message_readed_handler, connecting_handler, signed_on_handler):
1109+ """
1110+ message_recieve_handler is function, have args: sender, account,
1111+ message, unread(tuple), status_changed_hanler - function with
1112+ status arg
1113+ """
1114+ dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
1115+
1116+ bus = dbus.SessionBus()
1117+ obj = bus.get_object("im.pidgin.purple.PurpleService", \
1118+ "/im/pidgin/purple/PurpleObject")
1119+ self.__purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
1120+
1121+ #add event handlers
1122+ self.status_changed_handler = status_changed_handler
1123+ bus.add_signal_receiver(self.on_savedstatus_changed,
1124+ dbus_interface="im.pidgin.purple.PurpleInterface",
1125+ signal_name="SavedstatusChanged")
1126+
1127+ self.signed_on_handler = signed_on_handler
1128+ bus.add_signal_receiver(self.on_signed_on,
1129+ dbus_interface="im.pidgin.purple.PurpleInterface",
1130+ signal_name="SignedOn")
1131+
1132+ self.message_recieve_handler = message_recieve_handler
1133+ bus.add_signal_receiver(self.on_received_im_msg,
1134+ dbus_interface="im.pidgin.purple.PurpleInterface",
1135+ signal_name="ReceivedImMsg")
1136+
1137+
1138+ self.message_readed_handler = message_readed_handler
1139+ bus.add_signal_receiver(self.on_message_readed,
1140+ dbus_interface="im.pidgin.purple.PurpleInterface",
1141+ signal_name="ConversationUpdated")
1142+
1143+ self.connecting_handler = connecting_handler
1144+ bus.add_signal_receiver(self.on_connecting,
1145+ dbus_interface="im.pidgin.purple.PurpleInterface",
1146+ signal_name="AccountConnecting")
1147+
1148+ def on_savedstatus_changed(self, newstatus, oldstatus):
1149+ self.status_changed_handler()
1150+
1151+ def on_signed_on(self, conn):
1152+ self.signed_on_handler()
1153+
1154+ def on_message_readed(self, conv, type):
1155+ self.message_readed_handler()
1156+
1157+ def on_connecting(self, account):
1158+ self.connecting_handler(account=account)
1159+
1160+ def __detect_unread_conversations(self):
1161+ purple = self.__purple
1162+ im = True
1163+ chat = True
1164+ tooltip = ""
1165+ blink = False
1166+ allcount = 0
1167+ conversations = []
1168+ if im and chat:
1169+ convs = purple.PurpleGetConversations()
1170+ elif im:
1171+ convs = purple.PurpleGetIms()
1172+ elif chat:
1173+ convs = purple.PurpleGetChats()
1174+ else:
1175+ convs = None
1176+ for conv in convs:
1177+ count = purple.PurpleConversationGetData(conv, "unseen-count")
1178+ if count and count > 0:
1179+ blink = True
1180+ allcount += count
1181+ conversations.append(\
1182+ {'name': purple.PurpleConversationGetName(conv),\
1183+ 'count': count})
1184+ tooltip = tooltip + "\n" + \
1185+ purple.PurpleConversationGetName(conv) + \
1186+ " (" + str(count) + ")"
1187+ text_representation = tooltip
1188+ return (allcount, conversations,
1189+ text_representation)
1190+
1191+ def on_received_im_msg(self, account, sender, \
1192+ message, conversation, flags):
1193+ self.message_recieve_handler(sender=sender, account=account, \
1194+ message=message, \
1195+ unread=self.__detect_unread_conversations())
1196+
1197+ def GetStatus(self):
1198+ """Gets current status"""
1199+ status = self.__purple.PurpleSavedstatusGetCurrent()
1200+ #get current status
1201+ status_type = self.__purple.PurpleSavedstatusGetType(status)
1202+ #get current status type
1203+ return status_type
1204+
1205+ def SetStatus(self, status):
1206+ """Sets status, status must be status name"""
1207+ st = self.__purple.PurpleSavedstatusGetCurrent()
1208+ self.__purple.PurpleSavedstatusSetType(st, self.STATUS[status])
1209+ self.__purple.PurpleSavedstatusActivate(st)
1210+
1211+ def GetUnreadMessages(self):
1212+ """Gets number of unread messages"""
1213+ return self.__detect_unread_conversations()
1214+
1215+ def GetUnreadMessagesNum(self):
1216+ """Gets number of unread messages"""
1217+ return self.__detect_unread_conversations()[0]
1218+
1219+
1220+if __name__ == '__main__':
1221+ p = Pidgin(MessageRecieve, StatusChanged, \
1222+ MessageReaded, Connecting, StatusChanged)
1223+ print p.GetStatus()
1224+ loop = gobject.MainLoop()
1225+ loop.run()

Subscribers

People subscribed via source and target branches