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
=== added directory 'applets/maintained/pidgin-adium'
=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes'
=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Green'
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/ApplicationIcon.png'
0Binary 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 differ0Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Asleep.png'
1Binary 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 differ1Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Awake.png'
2Binary 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 differ2Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Flap.png'
3Binary 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 differ3Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist'
--- applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/adium-dock-themes/Green/IconPack.plist 2010-05-06 10:16:27 +0000
@@ -0,0 +1,125 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>Description</key>
6 <dict>
7 <key>Creator</key>
8 <string>Created by Adam Betts</string>
9 <key>LinkURL</key>
10 <string>http://www.artofadambetts.com/</string>
11 <key>Title</key>
12 <string>Adiumy Green</string>
13 </dict>
14 <key>State</key>
15 <dict>
16 <key>Invisible</key>
17 <dict>
18 <key>Overlay</key>
19 <false/>
20 <key>Animated</key>
21 <false/>
22 <key>Image</key>
23 <string>Invisible.png</string>
24 </dict>
25 <key>InvisibleAlert</key>
26 <dict>
27 <key>Animated</key>
28 <true/>
29 <key>Images</key>
30 <array>
31 <string>InvisibleFlap.png</string>
32 <string>Invisible.png</string>
33 </array>
34 <key>Overlay</key>
35 <false/>
36 <key>Delay</key>
37 <real>0.5</real>
38 </dict>
39 <key>Alert</key>
40 <dict>
41 <key>Animated</key>
42 <true/>
43 <key>Delay</key>
44 <real>0.5</real>
45 <key>Images</key>
46 <array>
47 <string>Flap.png</string>
48 <string>Awake.png</string>
49 </array>
50 <key>Overlay</key>
51 <false/>
52 </dict>
53 <key>ApplicationIcon</key>
54 <dict>
55 <key>Animated</key>
56 <false/>
57 <key>Image</key>
58 <string>ApplicationIcon.png</string>
59 <key>Overlay</key>
60 <false/>
61 </dict>
62 <key>Away</key>
63 <dict>
64 <key>Animated</key>
65 <false/>
66 <key>Image</key>
67 <string>../Shared Images/Away.png</string>
68 <key>Overlay</key>
69 <true/>
70 </dict>
71 <key>Base</key>
72 <dict>
73 <key>Animated</key>
74 <false/>
75 <key>Image</key>
76 <string>Asleep.png</string>
77 <key>Overlay</key>
78 <false/>
79 </dict>
80 <key>Connecting</key>
81 <dict>
82 <key>Animated</key>
83 <true/>
84 <key>Delay</key>
85 <real>0.2</real>
86 <key>Images</key>
87 <array>
88 <string>../Shared Images/Connect1.png</string>
89 <string>../Shared Images/Connect2.png</string>
90 <string>../Shared Images/Connect3.png</string>
91 <string>../Shared Images/Connect4.png</string>
92 </array>
93 <key>Overlay</key>
94 <true/>
95 </dict>
96 <key>Idle</key>
97 <dict>
98 <key>Animated</key>
99 <false/>
100 <key>Image</key>
101 <string>../Shared Images/Idle.png</string>
102 <key>Overlay</key>
103 <true/>
104 </dict>
105 <key>Online</key>
106 <dict>
107 <key>Animated</key>
108 <false/>
109 <key>Image</key>
110 <string>Awake.png</string>
111 <key>Overlay</key>
112 <false/>
113 </dict>
114 <key>Preview</key>
115 <dict>
116 <key>Animated</key>
117 <false/>
118 <key>Image</key>
119 <string>Awake.png</string>
120 <key>Overlay</key>
121 <false/>
122 </dict>
123 </dict>
124</dict>
125</plist>
0126
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/Invisible.png'
1Binary 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 differ127Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/InvisibleFlap.png'
2Binary 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 differ128Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Green/PidginDockIcon-Idle.png'
3Binary 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 differ129Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2'
--- applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/adium-dock-themes/LICENSE.GPL2 2010-05-06 10:16:27 +0000
@@ -0,0 +1,390 @@
1--------------------------------------------------------------------
2 GNU GENERAL PUBLIC LICENSE
3 Version 2, June 1991
4
5 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
6 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
7 Everyone is permitted to copy and distribute verbatim copies
8 of this license document, but changing it is not allowed.
9
10 Preamble
11
12 The licenses for most software are designed to take away your
13freedom to share and change it. By contrast, the GNU General Public
14License is intended to guarantee your freedom to share and change free
15software--to make sure the software is free for all its users. This
16General Public License applies to most of the Free Software
17Foundation's software and to any other program whose authors commit to
18using it. (Some other Free Software Foundation software is covered by
19the GNU Library General Public License instead.) You can apply it to
20your programs, too.
21
22 When we speak of free software, we are referring to freedom, not
23price. Our General Public Licenses are designed to make sure that you
24have the freedom to distribute copies of free software (and charge for
25this service if you wish), that you receive source code or can get it
26if you want it, that you can change the software or use pieces of it
27in new free programs; and that you know you can do these things.
28
29 To protect your rights, we need to make restrictions that forbid
30anyone to deny you these rights or to ask you to surrender the rights.
31These restrictions translate to certain responsibilities for you if you
32distribute copies of the software, or if you modify it.
33
34 For example, if you distribute copies of such a program, whether
35gratis or for a fee, you must give the recipients all the rights that
36you have. You must make sure that they, too, receive or can get the
37source code. And you must show them these terms so they know their
38rights.
39
40 We protect your rights with two steps: (1) copyright the software, and
41(2) offer you this license which gives you legal permission to copy,
42distribute and/or modify the software.
43
44 Also, for each author's protection and ours, we want to make certain
45that everyone understands that there is no warranty for this free
46software. If the software is modified by someone else and passed on, we
47want its recipients to know that what they have is not the original, so
48that any problems introduced by others will not reflect on the original
49authors' reputations.
50
51 Finally, any free program is threatened constantly by software
52patents. We wish to avoid the danger that redistributors of a free
53program will individually obtain patent licenses, in effect making the
54program proprietary. To prevent this, we have made it clear that any
55patent must be licensed for everyone's free use or not licensed at all.
56
57 The precise terms and conditions for copying, distribution and
58modification follow.
59
060
61 GNU GENERAL PUBLIC LICENSE
62 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
63
64 0. This License applies to any program or other work which contains
65a notice placed by the copyright holder saying it may be distributed
66under the terms of this General Public License. The "Program", below,
67refers to any such program or work, and a "work based on the Program"
68means either the Program or any derivative work under copyright law:
69that is to say, a work containing the Program or a portion of it,
70either verbatim or with modifications and/or translated into another
71language. (Hereinafter, translation is included without limitation in
72the term "modification".) Each licensee is addressed as "you".
73
74Activities other than copying, distribution and modification are not
75covered by this License; they are outside its scope. The act of
76running the Program is not restricted, and the output from the Program
77is covered only if its contents constitute a work based on the
78Program (independent of having been made by running the Program).
79Whether that is true depends on what the Program does.
80
81 1. You may copy and distribute verbatim copies of the Program's
82source code as you receive it, in any medium, provided that you
83conspicuously and appropriately publish on each copy an appropriate
84copyright notice and disclaimer of warranty; keep intact all the
85notices that refer to this License and to the absence of any warranty;
86and give any other recipients of the Program a copy of this License
87along with the Program.
88
89You may charge a fee for the physical act of transferring a copy, and
90you may at your option offer warranty protection in exchange for a fee.
91
92 2. You may modify your copy or copies of the Program or any portion
93of it, thus forming a work based on the Program, and copy and
94distribute such modifications or work under the terms of Section 1
95above, provided that you also meet all of these conditions:
96
97 a) You must cause the modified files to carry prominent notices
98 stating that you changed the files and the date of any change.
99
100 b) You must cause any work that you distribute or publish, that in
101 whole or in part contains or is derived from the Program or any
102 part thereof, to be licensed as a whole at no charge to all third
103 parties under the terms of this License.
104
105 c) If the modified program normally reads commands interactively
106 when run, you must cause it, when started running for such
107 interactive use in the most ordinary way, to print or display an
108 announcement including an appropriate copyright notice and a
109 notice that there is no warranty (or else, saying that you provide
110 a warranty) and that users may redistribute the program under
111 these conditions, and telling the user how to view a copy of this
112 License. (Exception: if the Program itself is interactive but
113 does not normally print such an announcement, your work based on
114 the Program is not required to print an announcement.)
115
1116
117These requirements apply to the modified work as a whole. If
118identifiable sections of that work are not derived from the Program,
119and can be reasonably considered independent and separate works in
120themselves, then this License, and its terms, do not apply to those
121sections when you distribute them as separate works. But when you
122distribute the same sections as part of a whole which is a work based
123on the Program, the distribution of the whole must be on the terms of
124this License, whose permissions for other licensees extend to the
125entire whole, and thus to each and every part regardless of who wrote it.
126
127Thus, it is not the intent of this section to claim rights or contest
128your rights to work written entirely by you; rather, the intent is to
129exercise the right to control the distribution of derivative or
130collective works based on the Program.
131
132In addition, mere aggregation of another work not based on the Program
133with the Program (or with a work based on the Program) on a volume of
134a storage or distribution medium does not bring the other work under
135the scope of this License.
136
137 3. You may copy and distribute the Program (or a work based on it,
138under Section 2) in object code or executable form under the terms of
139Sections 1 and 2 above provided that you also do one of the following:
140
141 a) Accompany it with the complete corresponding machine-readable
142 source code, which must be distributed under the terms of Sections
143 1 and 2 above on a medium customarily used for software interchange; or,
144
145 b) Accompany it with a written offer, valid for at least three
146 years, to give any third party, for a charge no more than your
147 cost of physically performing source distribution, a complete
148 machine-readable copy of the corresponding source code, to be
149 distributed under the terms of Sections 1 and 2 above on a medium
150 customarily used for software interchange; or,
151
152 c) Accompany it with the information you received as to the offer
153 to distribute corresponding source code. (This alternative is
154 allowed only for noncommercial distribution and only if you
155 received the program in object code or executable form with such
156 an offer, in accord with Subsection b above.)
157
158The source code for a work means the preferred form of the work for
159making modifications to it. For an executable work, complete source
160code means all the source code for all modules it contains, plus any
161associated interface definition files, plus the scripts used to
162control compilation and installation of the executable. However, as a
163special exception, the source code distributed need not include
164anything that is normally distributed (in either source or binary
165form) with the major components (compiler, kernel, and so on) of the
166operating system on which the executable runs, unless that component
167itself accompanies the executable.
168
169If distribution of executable or object code is made by offering
170access to copy from a designated place, then offering equivalent
171access to copy the source code from the same place counts as
172distribution of the source code, even though third parties are not
173compelled to copy the source along with the object code.
174
2175
176 4. You may not copy, modify, sublicense, or distribute the Program
177except as expressly provided under this License. Any attempt
178otherwise to copy, modify, sublicense or distribute the Program is
179void, and will automatically terminate your rights under this License.
180However, parties who have received copies, or rights, from you under
181this License will not have their licenses terminated so long as such
182parties remain in full compliance.
183
184 5. You are not required to accept this License, since you have not
185signed it. However, nothing else grants you permission to modify or
186distribute the Program or its derivative works. These actions are
187prohibited by law if you do not accept this License. Therefore, by
188modifying or distributing the Program (or any work based on the
189Program), you indicate your acceptance of this License to do so, and
190all its terms and conditions for copying, distributing or modifying
191the Program or works based on it.
192
193 6. Each time you redistribute the Program (or any work based on the
194Program), the recipient automatically receives a license from the
195original licensor to copy, distribute or modify the Program subject to
196these terms and conditions. You may not impose any further
197restrictions on the recipients' exercise of the rights granted herein.
198You are not responsible for enforcing compliance by third parties to
199this License.
200
201 7. If, as a consequence of a court judgment or allegation of patent
202infringement or for any other reason (not limited to patent issues),
203conditions are imposed on you (whether by court order, agreement or
204otherwise) that contradict the conditions of this License, they do not
205excuse you from the conditions of this License. If you cannot
206distribute so as to satisfy simultaneously your obligations under this
207License and any other pertinent obligations, then as a consequence you
208may not distribute the Program at all. For example, if a patent
209license would not permit royalty-free redistribution of the Program by
210all those who receive copies directly or indirectly through you, then
211the only way you could satisfy both it and this License would be to
212refrain entirely from distribution of the Program.
213
214If any portion of this section is held invalid or unenforceable under
215any particular circumstance, the balance of the section is intended to
216apply and the section as a whole is intended to apply in other
217circumstances.
218
219It is not the purpose of this section to induce you to infringe any
220patents or other property right claims or to contest validity of any
221such claims; this section has the sole purpose of protecting the
222integrity of the free software distribution system, which is
223implemented by public license practices. Many people have made
224generous contributions to the wide range of software distributed
225through that system in reliance on consistent application of that
226system; it is up to the author/donor to decide if he or she is willing
227to distribute software through any other system and a licensee cannot
228impose that choice.
229
230This section is intended to make thoroughly clear what is believed to
231be a consequence of the rest of this License.
232
3233
234 8. If the distribution and/or use of the Program is restricted in
235certain countries either by patents or by copyrighted interfaces, the
236original copyright holder who places the Program under this License
237may add an explicit geographical distribution limitation excluding
238those countries, so that distribution is permitted only in or among
239countries not thus excluded. In such case, this License incorporates
240the limitation as if written in the body of this License.
241
242 9. The Free Software Foundation may publish revised and/or new versions
243of the General Public License from time to time. Such new versions will
244be similar in spirit to the present version, but may differ in detail to
245address new problems or concerns.
246
247Each version is given a distinguishing version number. If the Program
248specifies a version number of this License which applies to it and "any
249later version", you have the option of following the terms and conditions
250either of that version or of any later version published by the Free
251Software Foundation. If the Program does not specify a version number of
252this License, you may choose any version ever published by the Free Software
253Foundation.
254
255 10. If you wish to incorporate parts of the Program into other free
256programs whose distribution conditions are different, write to the author
257to ask for permission. For software which is copyrighted by the Free
258Software Foundation, write to the Free Software Foundation; we sometimes
259make exceptions for this. Our decision will be guided by the two goals
260of preserving the free status of all derivatives of our free software and
261of promoting the sharing and reuse of software generally.
262
263 NO WARRANTY
264
265 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
266FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
267OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
268PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
269OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
270MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
271TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
272PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
273REPAIR OR CORRECTION.
274
275 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
276WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
277REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
278INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
279OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
280TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
281YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
282PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
283POSSIBILITY OF SUCH DAMAGES.
284
285 END OF TERMS AND CONDITIONS
286
4287
288 How to Apply These Terms to Your New Programs
289
290 If you develop a new program, and you want it to be of the greatest
291possible use to the public, the best way to achieve this is to make it
292free software which everyone can redistribute and change under these terms.
293
294 To do so, attach the following notices to the program. It is safest
295to attach them to the start of each source file to most effectively
296convey the exclusion of warranty; and each file should have at least
297the "copyright" line and a pointer to where the full notice is found.
298
299 <one line to give the program's name and a brief idea of what it does.>
300 Copyright (C) <year> <name of author>
301
302 This program is free software; you can redistribute it and/or modify
303 it under the terms of the GNU General Public License as published by
304 the Free Software Foundation; either version 2 of the License, or
305 (at your option) any later version.
306
307 This program is distributed in the hope that it will be useful,
308 but WITHOUT ANY WARRANTY; without even the implied warranty of
309 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
310 GNU General Public License for more details.
311
312 You should have received a copy of the GNU General Public License
313 along with this program; if not, write to the Free Software
314 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
315
316
317Also add information on how to contact you by electronic and paper mail.
318
319If the program is interactive, make it output a short notice like this
320when it starts in an interactive mode:
321
322 Gnomovision version 69, Copyright (C) year name of author
323 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
324 This is free software, and you are welcome to redistribute it
325 under certain conditions; type `show c' for details.
326
327The hypothetical commands `show w' and `show c' should show the appropriate
328parts of the General Public License. Of course, the commands you use may
329be called something other than `show w' and `show c'; they could even be
330mouse-clicks or menu items--whatever suits your program.
331
332You should also get your employer (if you work as a programmer) or your
333school, if any, to sign a "copyright disclaimer" for the program, if
334necessary. Here is a sample; alter the names:
335
336 Yoyodyne, Inc., hereby disclaims all copyright interest in the program
337 `Gnomovision' (which makes passes at compilers) written by James Hacker.
338
339 <signature of Ty Coon>, 1 April 1989
340 Ty Coon, President of Vice
341
342This General Public License does not permit incorporating your program into
343proprietary programs. If your program is a subroutine library, you may
344consider it more useful to permit linking proprietary applications with the
345library. If this is what you want to do, use the GNU Library General
346Public License instead of this License.
347
348--------------------------------------------------------------------------------
349Adium uses libezv by Andrew Wellington, which is distributed under the
350following license:
351
352Libezv
353Copyright (c) 2004 Andrew Wellington.
354All rights reserved.
355
356Redistribution and use in source and binary forms, with or without modification,
357are permitted provided that the following conditions are met:
358
3591. Redistributions of source code must retain the above copyright notice, this
360list of conditions and the following disclaimer.
3612. Redistributions in binary form must reproduce the above copyright notice,
362this list of conditions and the following disclaimer in the documentation and/or
363other materials provided with the distribution.
364
365THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
366WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
367MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
368SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
369EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
370OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
371INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
372CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
373IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
374OF SUCH DAMAGE.
375--------------------------------------------------------------------------------
376Adium uses zhm, the Zephyr Host Manager, alongside libpurple to provide Zephyr
377connectivity. It is distributed under the MIT License as follows:
378
379Permission is hereby granted, free of charge, to any person obtaining a copy
380of this software and associated documentation files (the "Software"), to deal
381in the Software without restriction, including without limitation the rights
382to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
383copies of the Software, and to permit persons to whom the Software is
384furnished to do so, subject to the following conditions:
385
386The above copyright notice and this permission notice shall be included in
387all copies or substantial portions of the Software.
388
389THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
390IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
391FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
392AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
393LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
394OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
395THE SOFTWARE.
5\ No newline at end of file396\ No newline at end of file
6397
=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Purple'
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/ApplicationIcon.png'
7Binary 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 differ398Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Asleep.png'
8Binary 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 differ399Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Awake.png'
9Binary 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 differ400Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Flap.png'
10Binary 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 differ401Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist'
--- applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/adium-dock-themes/Purple/IconPack.plist 2010-05-06 10:16:27 +0000
@@ -0,0 +1,125 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>Description</key>
6 <dict>
7 <key>Creator</key>
8 <string>Created by Adam Betts</string>
9 <key>LinkURL</key>
10 <string>http://www.artofadambetts.com/</string>
11 <key>Title</key>
12 <string>Adiumy Purple</string>
13 </dict>
14 <key>State</key>
15 <dict>
16 <key>Invisible</key>
17 <dict>
18 <key>Overlay</key>
19 <false/>
20 <key>Animated</key>
21 <false/>
22 <key>Image</key>
23 <string>Invisible.png</string>
24 </dict>
25 <key>InvisibleAlert</key>
26 <dict>
27 <key>Animated</key>
28 <true/>
29 <key>Images</key>
30 <array>
31 <string>InvisibleFlap.png</string>
32 <string>Invisible.png</string>
33 </array>
34 <key>Overlay</key>
35 <false/>
36 <key>Delay</key>
37 <real>0.5</real>
38 </dict>
39 <key>Alert</key>
40 <dict>
41 <key>Animated</key>
42 <true/>
43 <key>Delay</key>
44 <real>0.5</real>
45 <key>Images</key>
46 <array>
47 <string>Flap.png</string>
48 <string>Awake.png</string>
49 </array>
50 <key>Overlay</key>
51 <false/>
52 </dict>
53 <key>ApplicationIcon</key>
54 <dict>
55 <key>Animated</key>
56 <false/>
57 <key>Image</key>
58 <string>ApplicationIcon.png</string>
59 <key>Overlay</key>
60 <false/>
61 </dict>
62 <key>Away</key>
63 <dict>
64 <key>Animated</key>
65 <false/>
66 <key>Image</key>
67 <string>../Shared Images/Away.png</string>
68 <key>Overlay</key>
69 <true/>
70 </dict>
71 <key>Base</key>
72 <dict>
73 <key>Animated</key>
74 <false/>
75 <key>Image</key>
76 <string>Asleep.png</string>
77 <key>Overlay</key>
78 <false/>
79 </dict>
80 <key>Connecting</key>
81 <dict>
82 <key>Animated</key>
83 <true/>
84 <key>Delay</key>
85 <real>0.2</real>
86 <key>Images</key>
87 <array>
88 <string>../Shared Images/Connect1.png</string>
89 <string>../Shared Images/Connect2.png</string>
90 <string>../Shared Images/Connect3.png</string>
91 <string>../Shared Images/Connect4.png</string>
92 </array>
93 <key>Overlay</key>
94 <true/>
95 </dict>
96 <key>Idle</key>
97 <dict>
98 <key>Animated</key>
99 <false/>
100 <key>Image</key>
101 <string>../Shared Images/Idle.png</string>
102 <key>Overlay</key>
103 <true/>
104 </dict>
105 <key>Online</key>
106 <dict>
107 <key>Animated</key>
108 <false/>
109 <key>Image</key>
110 <string>Awake.png</string>
111 <key>Overlay</key>
112 <false/>
113 </dict>
114 <key>Preview</key>
115 <dict>
116 <key>Animated</key>
117 <false/>
118 <key>Image</key>
119 <string>Awake.png</string>
120 <key>Overlay</key>
121 <false/>
122 </dict>
123 </dict>
124</dict>
125</plist>
0126
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/Invisible.png'
1Binary 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 differ127Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/InvisibleFlap.png'
2Binary 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 differ128Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Away.png.png'
3Binary 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 differ129Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Purple/__temp-for-pidgin-only-Asleep.png_and_Idle.png.png'
4Binary 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 differ130Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/README.themes'
--- applets/maintained/pidgin-adium/adium-dock-themes/README.themes 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/adium-dock-themes/README.themes 2010-05-06 10:16:27 +0000
@@ -0,0 +1,3 @@
1The icon themes bundled with this applet were copied from Adium, which
2is licensed under the GPL version 2 (or later). See LICENSE.GPL2 for
3the full text
04
=== added directory 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images'
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Away.png'
1Binary 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 differ5Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect1.png'
2Binary 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 differ6Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect2.png'
3Binary 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 differ7Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect3.png'
4Binary 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 differ8Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Connect4.png'
5Binary 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 differ9Binary 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
=== added file 'applets/maintained/pidgin-adium/adium-dock-themes/Shared Images/Idle.png'
6Binary 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 differ10Binary 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
=== added file 'applets/maintained/pidgin-adium/adiumicontheme.py'
--- applets/maintained/pidgin-adium/adiumicontheme.py 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/adiumicontheme.py 2010-05-06 10:16:27 +0000
@@ -0,0 +1,82 @@
1# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program. If not, see <http://www.gnu.org/licenses/>.
14
15import plistlib
16import os
17import itertools
18
19
20class AdiumIconSetter(object):
21
22 def __init__(self, themedir, setup_timeout_function, start_timer_function,\
23 stop_timer_function, setup_icon_function):
24 self.themedirname = themedir
25 self.setup_timeout_function, self.start_timer_function, \
26 self.stop_timer_function, self.setup_icon_function = \
27 setup_timeout_function, start_timer_function,\
28 stop_timer_function, setup_icon_function
29 try:
30 self.theme = plistlib.readPlist(self.themedir("IconPack.plist"))
31 except:
32 self.theme = plistlib.readPlist(self.themedir("Info.plist"))
33
34 self.name = self.theme["Description"]["Title"]
35 self.author = self.theme["Description"]["Creator"]
36 self.status = None
37
38 def themedir(self, filename):
39 return os.path.join(self.themedirname, filename)
40
41 def get_filename_overlayed_image(self, imagebase, imageoverlay):
42 filename = self.themedir("__temp-for-pidgin-only-" + \
43 os.path.basename(imagebase)\
44 + "_and_" + os.path.basename(imageoverlay) \
45 + ".png")
46 if not os.path.isfile(filename):
47 import Image
48 ###online or Base?..
49 base = Image.open(self.themedir(imagebase)).convert('RGBA')
50 overlay = Image.open(self.themedir(imageoverlay)).convert('RGBA')
51 resultimage = Image.composite(overlay, base, overlay)
52 resultimage.save(filename)
53 return filename
54
55 def timeout_cb(self):
56 if self.theme["State"][self.status]["Overlay"]:
57 self.setup_icon_function_overlay(self.animateframes.next())
58 else:
59 self.setup_icon_function(self.animateframes.next())
60
61 def setup_icon_function_overlay(self, icon):
62 self.setup_icon_function(\
63 self.get_filename_overlayed_image(\
64 self.theme["State"]["Base"]["Image"], icon))
65
66 def set_status(self, status):
67 if self.status != status:
68 self.status = status
69 if self.theme["State"][status]["Animated"]:
70 self.setup_timeout_function(\
71 self.theme["State"][status]["Delay"])
72 self.animateframes = itertools.cycle(\
73 self.theme["State"][status]["Images"])
74 self.start_timer_function()
75 else:
76 self.stop_timer_function()
77 if self.theme["State"][status]["Overlay"]:
78 self.setup_icon_function_overlay(\
79 self.theme["State"][status]["Image"])
80 else:
81 self.setup_icon_function(\
82 self.theme["State"][status]["Image"])
083
=== added file 'applets/maintained/pidgin-adium/pidgin-adium.py'
--- applets/maintained/pidgin-adium/pidgin-adium.py 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/pidgin-adium.py 2010-05-06 10:16:27 +0000
@@ -0,0 +1,232 @@
1# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program. If not, see <http://www.gnu.org/licenses/>.
14
15# Here some imports like re, os, sys, etc.
16import os
17import gtk
18import gtk.gdk
19
20from awn.extras import awnlib
21
22import pidgindbus
23import adiumicontheme
24import subprocess
25
26applet_name = "Pidgin-Adium dock"
27applet_version = "0.0.5"
28applet_description = """An applet that place pidgin-status icon with animated \
29Adium theme to doc"""
30
31applet_logo = os.path.join(os.path.dirname(__file__), \
32 "adium-dock-themes/Green/Asleep.png")
33
34STATUS_TYPES = (('__this status not exist__', 'This icon do not exist', \
35 'This icon do not exist'), \
36 ('offline', 'Base'), \
37 ('online', 'Online'), \
38 ('unavailable', 'Idle'), \
39 ('invisible', 'Invisible'), \
40 ('away', 'Away'), \
41 ('extended away', 'Away'), \
42 ('mobile', 'Online'), \
43 ('tune', 'Preview'))
44
45
46class PidginAdiumApplet:
47 """ An applet that shows pidgin status with adium themes icon """
48
49 def __init__(self, applet):
50 self.applet = applet
51 self.connect_to_pidgin()
52
53 self.update_animation = self.applet.timing.register(\
54 self.update_animation_cb, 3, False)
55 self.pidgin_istance_search_timer = self.applet.timing.register(\
56 self.pidgin_istance_search_timer_cb, \
57 0.5, True)
58
59 self.atheme = adiumicontheme.AdiumIconSetter(\
60 os.path.join(self.get_path_to_themes(), \
61 self.get_current_theme_name()), \
62 self.update_animation.change_interval, \
63 self.update_animation.start,\
64 self.update_animation.stop, self.setup_icon)
65 self.active = False
66 self.RefreshIcon()
67 self.setup_context_menu()
68
69 self.applet.connect_size_changed(self.size_changed_cb)
70
71 self.RefreshIcon()
72 self.applet.connect("clicked", self.clicked_cb)
73
74 def clicked_cb(self, date):
75 subprocess.Popen('pidgin', shell=True)
76 if self.pidgin == None:
77 self.pidgin_istance_search_timer.start()
78
79 def pidgin_istance_search_timer_cb(self):
80 self.connect_to_pidgin()
81 if self.pidgin != None:
82 self.pidgin_istance_search_timer.stop()
83 self.RefreshIcon()
84
85 def connect_to_pidgin(self):
86 try:
87 self.pidgin = pidgindbus.Pidgin(self.message_recieve_handler, \
88 self.status_changed_handler, \
89 self.message_readed_handler, \
90 self.connecting_handler, \
91 self.signed_on_handler)
92 except:
93 self.pidgin = None
94
95 def update_animation_cb(self):
96 self.atheme.timeout_cb()
97
98 def setup_dialog_settings(self, vbox):
99 """Load the settings.
100
101 """
102 if "theme" not in self.applet.settings:
103 self.applet.settings["theme"] = "Green"
104 self.theme_setting = self.applet.settings["theme"]
105
106 combobox = gtk.combo_box_new_text()
107
108 combobox.connect('changed', self.changed_theme_cb)
109
110 directory = self.get_path_to_themes()
111 for f in os.listdir(directory):
112 if os.path.isfile(os.path.join(directory, f)):
113 pass
114 if os.path.isdir(os.path.join(directory, f)) and \
115 (f != "Shared Images"):
116 combobox.append_text(f)
117
118 def set_active_text(combobox, text):
119 model = combobox.get_model()
120 for i, item in enumerate(model):
121 if item[0] == text:
122 combobox.set_active(i)
123 break
124
125 set_active_text(combobox, self.applet.settings["theme"])
126 vbox.pack_start(gtk.Label("Select Adium theme for dock: \n \
127(themes must be placed at ~/.config/awn/pidgin-adium/adium-dock-themes)\n \
128You can download themes at \n \
129http://www.adiumxtras.com/index.php?a=search&cat_id=1"))
130 vbox.pack_start(combobox)
131
132 def changed_theme_cb(self, combobox):
133 model = combobox.get_model()
134 index = combobox.get_active()
135 if index:
136 self.applet.settings["theme"] = model[index][0]
137 self.atheme = adiumicontheme.AdiumIconSetter(\
138 os.path.join(self.get_path_to_themes(),\
139 self.get_current_theme_name()), \
140 self.update_animation.change_interval, \
141 self.update_animation.start,\
142 self.update_animation.stop, self.setup_icon)
143 self.RefreshIcon()
144 return
145
146 def setup_context_menu(self):
147 pref_dialog = self.applet.dialog.new("preferences")
148
149 self.setup_dialog_settings(pref_dialog.vbox)
150
151 self.popup_menu = self.applet.create_default_menu()
152 for i, status in enumerate(STATUS_TYPES):
153 menuitem = gtk.MenuItem(status[0])
154 self.popup_menu.append(menuitem)
155 menuitem.show()
156 menuitem.connect("activate", self.status_menu_activate_cb, i)
157 self.popup_menu.show_all()
158
159 def status_menu_activate_cb(self, numstatus):
160 print STATUS_TYPES[numstatus]
161
162 def size_changed_cb(self):
163 self.RefreshIcon()
164
165 def set_tooltip(self, tooltip):
166 self.applet.tooltip.set(tooltip)
167
168 def setup_icon(self, iconname):
169 iconw = self.applet.get_size()
170 icon = gtk.gdk.pixbuf_new_from_file_at_size(\
171 os.path.join(self.get_path_to_themes(),\
172 self.get_current_theme_name(), iconname),\
173 iconw, iconw)
174 self.applet.icon.set(icon)
175
176 def set_status(self):
177 if self.pidgin != None:
178 self.status = self.pidgin.GetStatus()
179 self.active = (self.pidgin.GetUnreadMessagesNum() != 0)
180 self.old_active = self.active
181 self.tooltip = STATUS_TYPES[self.status][0]
182 if self.active:
183 self.tooltip += " (%s)" % self.pidgin.GetUnreadMessagesNum()
184 if self.status == 4: #InvisibleAlert
185 self.atheme.set_status("InvisibleAlert")
186 else:
187 self.atheme.set_status("Alert")
188 else:
189 self.atheme.set_status(STATUS_TYPES[self.status][1])
190 else:
191 self.tooltip = "Pidgin not running. Click to run Pidgin"
192 self.atheme.set_status("Base")
193
194 def RefreshIcon(self, **args):
195 self.set_status()
196 self.set_tooltip(self.tooltip)
197
198 def get_path_to_themes(self):
199 return os.path.join(os.path.dirname(__file__), "adium-dock-themes")
200
201 def get_current_theme_name(self):
202 return self.applet.settings["theme"]
203
204 def message_recieve_handler(self, **args):
205 print ">>>>>>message from %s, '%s', total unread messages: %d" \
206 % (args['sender'], args['message'], \
207 args['unread'][0])
208 self.RefreshIcon()
209 #fixme: args)
210
211 def status_changed_handler(self, **args):
212 self.RefreshIcon()
213
214 def message_readed_handler(self, **args):
215 self.RefreshIcon()
216
217 def connecting_handler(self, **args):
218 self.atheme.set_status("Connecting")
219
220 def signed_on_handler(self, **args):
221 self.RefreshIcon()
222
223
224if __name__ == "__main__":
225 awnlib.init_start(PidginAdiumApplet, {"name": applet_name,
226 "short": "pidgin-adium",
227 "version": applet_version,
228 "description": applet_description,
229 "theme": applet_logo,
230 "author": "Sergey Klimov",
231 "copyright-year": 2010,
232 "authors": ["Sergey Klimov <dcdarv@gmail.com>"]})
0233
=== added file 'applets/maintained/pidgin-adium/pidgindbus.py'
--- applets/maintained/pidgin-adium/pidgindbus.py 1970-01-01 00:00:00 +0000
+++ applets/maintained/pidgin-adium/pidgindbus.py 2010-05-06 10:16:27 +0000
@@ -0,0 +1,181 @@
1# Copyright (C) 2010 Sergey Klimov <dcdarv@gmail.com>
2#
3# This program is free software: you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
5# the Free Software Foundation, version 2 of the License.
6#
7# This program is distributed in the hope that it will be useful,
8# but WITHOUT ANY WARRANTY; without even the implied warranty of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10# GNU General Public License for more details.
11#
12# You should have received a copy of the GNU General Public License
13# along with this program. If not, see <http://www.gnu.org/licenses/>.
14
15import gobject
16import os
17import sys
18import dbus
19from dbus.mainloop.glib import DBusGMainLoop
20
21
22def MessageRecieve(**args):
23 pass
24
25
26def StatusChanged(**args):
27 pass
28
29
30def MessageReaded(**args):
31 pass
32
33
34def Connecting(**args):
35 pass
36
37
38if __name__ == '__main__':
39 STATUS_TYPES = (('__this status not exist__', \
40 'This icon do not exist', 'This icon do not exist'), \
41 ('offline', 'Asleep.png', 'This icon do not exist'), \
42 ('online', 'Awake.png', 'Flap.png'), \
43 ('unavailable', 'Invisible.png', 'InvisibleFlap.png'), \
44 ('invisible', 'Invisible.png', 'InvisibleFlap.png'), \
45 ('away', 'Invisible.png', 'InvisibleFlap.png'), \
46 ('extended away', 'Invisible.png', 'InvisibleFlap.png'), \
47 ('mobile', 'Awake.png', 'Flap.png'), \
48 ('tune', 'Awake.png', 'Flap.png'))
49
50
51class Pidgin(object):
52 """Class to communicate pidgin"""
53 STATUS = {'_notconnected_': 0,
54 'offline': 1,
55 'online': 2,
56 'unavailable': 3,
57 'invisible': 4,
58 'away': 5,
59 'extended away': 6,
60 'mobile': 7,
61 'tune': 8}
62
63 def __init__(self, message_recieve_handler, status_changed_handler,\
64 message_readed_handler, connecting_handler, signed_on_handler):
65 """
66 message_recieve_handler is function, have args: sender, account,
67 message, unread(tuple), status_changed_hanler - function with
68 status arg
69 """
70 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
71
72 bus = dbus.SessionBus()
73 obj = bus.get_object("im.pidgin.purple.PurpleService", \
74 "/im/pidgin/purple/PurpleObject")
75 self.__purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")
76
77 #add event handlers
78 self.status_changed_handler = status_changed_handler
79 bus.add_signal_receiver(self.on_savedstatus_changed,
80 dbus_interface="im.pidgin.purple.PurpleInterface",
81 signal_name="SavedstatusChanged")
82
83 self.signed_on_handler = signed_on_handler
84 bus.add_signal_receiver(self.on_signed_on,
85 dbus_interface="im.pidgin.purple.PurpleInterface",
86 signal_name="SignedOn")
87
88 self.message_recieve_handler = message_recieve_handler
89 bus.add_signal_receiver(self.on_received_im_msg,
90 dbus_interface="im.pidgin.purple.PurpleInterface",
91 signal_name="ReceivedImMsg")
92
93
94 self.message_readed_handler = message_readed_handler
95 bus.add_signal_receiver(self.on_message_readed,
96 dbus_interface="im.pidgin.purple.PurpleInterface",
97 signal_name="ConversationUpdated")
98
99 self.connecting_handler = connecting_handler
100 bus.add_signal_receiver(self.on_connecting,
101 dbus_interface="im.pidgin.purple.PurpleInterface",
102 signal_name="AccountConnecting")
103
104 def on_savedstatus_changed(self, newstatus, oldstatus):
105 self.status_changed_handler()
106
107 def on_signed_on(self, conn):
108 self.signed_on_handler()
109
110 def on_message_readed(self, conv, type):
111 self.message_readed_handler()
112
113 def on_connecting(self, account):
114 self.connecting_handler(account=account)
115
116 def __detect_unread_conversations(self):
117 purple = self.__purple
118 im = True
119 chat = True
120 tooltip = ""
121 blink = False
122 allcount = 0
123 conversations = []
124 if im and chat:
125 convs = purple.PurpleGetConversations()
126 elif im:
127 convs = purple.PurpleGetIms()
128 elif chat:
129 convs = purple.PurpleGetChats()
130 else:
131 convs = None
132 for conv in convs:
133 count = purple.PurpleConversationGetData(conv, "unseen-count")
134 if count and count > 0:
135 blink = True
136 allcount += count
137 conversations.append(\
138 {'name': purple.PurpleConversationGetName(conv),\
139 'count': count})
140 tooltip = tooltip + "\n" + \
141 purple.PurpleConversationGetName(conv) + \
142 " (" + str(count) + ")"
143 text_representation = tooltip
144 return (allcount, conversations,
145 text_representation)
146
147 def on_received_im_msg(self, account, sender, \
148 message, conversation, flags):
149 self.message_recieve_handler(sender=sender, account=account, \
150 message=message, \
151 unread=self.__detect_unread_conversations())
152
153 def GetStatus(self):
154 """Gets current status"""
155 status = self.__purple.PurpleSavedstatusGetCurrent()
156 #get current status
157 status_type = self.__purple.PurpleSavedstatusGetType(status)
158 #get current status type
159 return status_type
160
161 def SetStatus(self, status):
162 """Sets status, status must be status name"""
163 st = self.__purple.PurpleSavedstatusGetCurrent()
164 self.__purple.PurpleSavedstatusSetType(st, self.STATUS[status])
165 self.__purple.PurpleSavedstatusActivate(st)
166
167 def GetUnreadMessages(self):
168 """Gets number of unread messages"""
169 return self.__detect_unread_conversations()
170
171 def GetUnreadMessagesNum(self):
172 """Gets number of unread messages"""
173 return self.__detect_unread_conversations()[0]
174
175
176if __name__ == '__main__':
177 p = Pidgin(MessageRecieve, StatusChanged, \
178 MessageReaded, Connecting, StatusChanged)
179 print p.GetStatus()
180 loop = gobject.MainLoop()
181 loop.run()

Subscribers

People subscribed via source and target branches