Commit d89af4af authored by Gaute Hope's avatar Gaute Hope
Browse files

Update applet to use SVG, does it work ? Changed applet icon size to 24x24

* Update applet to use SVG, does it work ?
* src/scheduleapplet.py: Changed applet icon size to 24x24

svn path=/trunk/; revision=1074
parent 1136b8d8
......@@ -2,6 +2,8 @@
* src/at.py, src/gnome-schedule.py, src/scheduleapplet.py: Unsets the POSIXLY_CORRECT variable in at script when manually set by gnome-schedule.
* Added manual_poscorrect to at datafiles, needed for parsing in case the environment changes.
* Update applet to use SVG, does it work ?
* src/scheduleapplet.py: Changed applet icon size to 24x24
2008-02-06 Gaute Hope <eg@gaute.vetsj.com>
......
......@@ -21,6 +21,6 @@
<oaf_attribute name="name" type="string" _value="Gnome schedule"/>
<oaf_attribute name="description" type="string" _value="Configures your scheduled tasks"/>
<oaf_attribute name="panel:category" type="string" _value="System tools"/>
<oaf_attribute name="panel:icon" type="string" value="@prefix@/share/pixmaps/gnome-schedule.png"/>
<oaf_attribute name="panel:icon" type="string" value="@prefix@/share/pixmaps/gnome-schedule/gnome-schedule.svg"/>
</oaf_server>
</oaf_info>
......@@ -114,10 +114,10 @@ class ScheduleApplet(gnomeapplet.Applet):
def __loadIcon__(self):
if self.debug_flag:
if os.access("../icons/gnome-schedule.svg", os.F_OK):
self.iconPixbuf = gtk.gdk.pixbuf_new_from_file_at_size ("../icons/gnome-schedule.svg", 52, 52)
self.iconPixbuf = gtk.gdk.pixbuf_new_from_file_at_size ("../icons/gnome-schedule.svg", 18, 18)
else:
try:
self.iconPixbuf = gtk.gdk.pixbuf_new_from_file_at_size (config.getImagedir() + "/gnome-schedule.svg", 52, 52)
self.iconPixbuf = gtk.gdk.pixbuf_new_from_file_at_size (config.getImagedir() + "/gnome-schedule.svg", 24, 24)
except:
print _("ERROR: Could not load icon")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment