Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/desktop/myicon.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpgritti@gmail.com>2008-09-30 21:50:22 (GMT)
committer Marco Pesenti Gritti <mpgritti@gmail.com>2008-09-30 21:50:22 (GMT)
commitd6a7c53d38dc01f1d11664485b7aeab10691542d (patch)
treec64fc78d9a4796cd84048d1dfb60a1f94b3b21ee /src/jarabe/desktop/myicon.py
parent3425b346793a348a3492c881bb7222b5da9afb61 (diff)
Fix case of the desktop modules.
Diffstat (limited to 'src/jarabe/desktop/myicon.py')
-rw-r--r--src/jarabe/desktop/myicon.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/jarabe/desktop/myicon.py b/src/jarabe/desktop/myicon.py
new file mode 100644
index 0000000..af0f6ce
--- /dev/null
+++ b/src/jarabe/desktop/myicon.py
@@ -0,0 +1,24 @@
+# Copyright (C) 2006-2007 Red Hat, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+from sugar.graphics.icon import CanvasIcon
+from sugar import profile
+
+class MyIcon(CanvasIcon):
+ def __init__(self, size):
+ CanvasIcon.__init__(self, size=size,
+ icon_name='computer-xo',
+ xo_color=profile.get_color())