View Single Post
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#369
Originally Posted by Mentalist Traceur View Post
Code:
        if self.clock.force_redraw == 1 or self.clock.get_show_seconds() or (self.old_time == None) or (self.old_time.minute != self.time.minute):
And added this under line 37 of /opt/maemo/usr/lib/advanced-clock-plugin/clock.py (moving everything down by one obviously):
Code:
        self.force_redraw = 0
Victory. From here all you need to do is add self.force_redraw = 1 in the init area of your clock style, to make it redraw every second.
I'll add an according modification.
Though, I'd prefer to use a boolean variable, so you would use "self.force_redraw = True".
I think for the time being, it should be ok if this is not set via the settings ui but is set only by clock styles needing a refresh every second.

Originally Posted by Mentalist Traceur
My status-menu.plugins file was rather heavily modified, and I've never had issues with Advanced Clock Plugin in the entire time I've had it (since you first released it).
Good to know.
Thanks for the info.

Originally Posted by Mentalist Traceur
Now that you're shipping images in with the clock styles, perhaps we can make even more optification? I mean, the images don't need to be in rootfs, right?
Actually, it is optified.
"/usr/lib/advanced-clock-plugin" is a symlink pointing to some place in /opt.

Originally Posted by skykooler
Are you doing this before the image pattern has been created? Could you post the code you had for that?
Well, as it didn't work out the way I wanted I discarded the code.
I could add it again and add an option to the settings UI for it.
By the way, what do you mean with "creating the image pattern"?
The code for playing the animation is in "/usr/lib/advanced-clock-plugin/pixbufanimationplayer.py"

Originally Posted by Bratag
For some reason after this update my decimal clocks etc now no longer work/show. Binary still shows up but everything else ... nada, regardless of the settings.

Advice?
As usual, run (as root):
Code:
DEBUG_OUTPUT=1 /usr/bin/hildon-status-menu
to see what's going on.

Edit:
Originally Posted by Mentalist Traceur
... can't the future of Advanced Clock Plugin also involve replacing Clocks and Alarms (or whatever) with a better more versatile version? (That's what I thought you were doing at first.)
Well, I am currently not planning to do this.
I am already very short of time and this project would really blow my schedule.
Having said that, my schedule is already tight enough.
__________________

Last edited by Wonko; 2011-02-02 at 08:58.
 

The Following User Says Thank You to Wonko For This Useful Post: