Active Topics

 



Notices


Reply
Thread Tools
bzbnd's Avatar
Posts: 209 | Thanked: 76 times | Joined on Mar 2010
#361
Originally Posted by Hootenholler View Post
Just to say that as of the latest version, (0.15.0) "Clocks & Alarms" is no longer showing in the status menu.
Yes , Hi is right
 
Posts: 456 | Thanked: 1,580 times | Joined on Dec 2009
#362
Originally Posted by Hootenholler View Post
Just to say that as of the latest version, (0.15.0) "Clocks & Alarms" is no longer showing in the status menu.
Uhh, my bad...
I reverted the installation procedure to the old one for version 0.15.1 which I just uploaded to extras-devel.
The "Clock & Alarms" entry is indeed a must-have.

Unfortunately, this means for some (those with some custom modifications to "/etc/hildon-desktop/status-menu.plugins") again that Advanced Clock Plugin won't work.
But for the big majority this restores the previous functionality.

Apparently, these are the trade-offs one has to accept.
At least until there is a better solution which applies to all of us.
__________________
 

The Following User Says Thank You to Wonko For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#363
Wonko: Which issue do you mean? The clock applet button disappearing from the menu? No, this update hasn't fixed it. (To be clear, this is the stock button that's in the hildon status menu. That clock applet. The normal advanced clock plugin in the status area still works.) I know I can replace the .desktop files, I can figure that out. Am i really the only one for whom that applet vanished?NVM, I started typing this like 45 minutes before posting, and had massive distractions in between, so in the meantime people had time to answer.

To be clear this is what I meant:
Name:  Screenshot-20110201-174618.jpg
Views: 409
Size:  22.4 KB
Note the absence of the normal button that you can click to get to the Clock menu. Like I said, I can easily switch the .desktop files around, I'm just wondering if this has happened to anyone else. Also, I'm on the Community SSU by the way. (Clock works just fine though.)

Now, I may have a basic patch for you, to make it possible for a clock style to specify that it is to be redrawn every second even when only minutes are shown (necessary for mine, because I have all the cpu/mem/internet-traffic bars updating every second, but I'm sure other people might come up with clock styles like mine..).

I changed line 165 in /usr/lib/hildon-desktop/advanced-clock-plugin.py from:
Code:
        if self.clock.get_show_seconds() or (self.old_time == None) or (self.old_time.minute != self.time.minute):
to:
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. Not extensively tested, but works with all thenormal styles I tried it with (I haven't messed with klingon fonts or the picture-using ones).

- Edit -

You can ignore the first part, I see the issue has been identified already.

Last edited by Mentalist Traceur; 2011-02-02 at 00:21. Reason: People posted while I typed.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#364
Also wait what?

Unfortunately, this means for some (those with some custom modifications to "/etc/hildon-desktop/status-menu.plugins") again that Advanced Clock Plugin won't work.
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). Did other people with custom .plugins files get messed up before? I don't remember this happening, but even if it did, first-hand evidence of me never having problems says the problem isn't custom status-menu.plugins files themselves, but something specific.

That said, while you're at this way of replacing that .desktop file with this one, 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.)
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 482 | Thanked: 550 times | Joined on Oct 2010
#365
Originally Posted by Wonko View Post
@skykooler
Yes, that's the issue I meant with respect to transparent areas in animations.
As for a quick fix:
Would it be possible to surround the images with some kind of frame such that there are no transparent areas in the animation?

I tried to find a better solution ever since I am aware of this issue.
Though, unfortunately I didn't find a satisfying solution yet.
I had one approach that used a rectangle on a cairo context to "overdraw" the last animation frame with "transparency" (basically erase a rectangular area in which the animation happens) prior to drawing the next animation frame.
Though, this approach caused the animation to flicker.

Maybe someone with more expertise in (py)gtk pixbuf and drawable/drawing area has a better idea?
Are you doing this before the image pattern has been created? Could you post the code you had for that?
 
Posts: 2,014 | Thanked: 1,581 times | Joined on Sep 2009
#366
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?
__________________
Class .. : Power Poster, Potential Coder
Humor .. : [*********] Alignment: Chaotic Evil
Patience : [***-------] Weapon(s): +2 Logic Mace
Agro ... : |*****-----] Relic(s) : G1, N900

 
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#367
Originally Posted by msa View Post
a small feature request:
it would be nice if one could set the default maemo-clock. i dont want to uninstall this just to get the maemo clock back.
I think you should be able to combine using the fill option, the font changing, and the font resizing, to get exactly the equivalent of the default clock. Or something very very close.

- Edit -

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?

BTW: Since I let the latest update to it's thing, Wonko, I see that it fixed the Clock and Alarms status menu button with the new update. So just some verification for you, it should properly revert back for them.

Now that I've figured out how to do this keep-updating-clock thing, I'm probably within a day or two of spare fiddling time to releasing the clock style I've been working on for like two months now. It's a bit abysmal how long it's taken, but hey, I went from someone with no coding ability to someone who can actually sorta-kinda do basic Python stuff.

And all thanks to you, Wonko, for liking my original 'make your status menu binary clock have the option to show normal numbers too'.

Last edited by Mentalist Traceur; 2011-02-02 at 02:59.
 

The Following User Says Thank You to Mentalist Traceur For This Useful Post:
Posts: 188 | Thanked: 53 times | Joined on May 2010
#368
hmmm. made some test images for a flipclock, worsk fine, but the seconds digits are not cycling, they're just static. anyone have advice??
 
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:
Posts: 2,225 | Thanked: 3,822 times | Joined on Jun 2010 @ Florida
#370
Yes, I agree, it doesn't need to be a settings thing - not the way I ended up implementing it (if enough clock styles arise that have this optionally, it could be useful in settings, but until there's heavy demand/need for it, it's fine being manually set in code by the clock style).

And I also agree with you on the True/False thing. I just screwed it up as a boolean initially when I figured out how to do it. (I used "true" instead of "True", which caused errors, and I wanted to make sure it worked at all, so I didn't fiddle too much with figuring out the right way of doing it. The post you just made cleared that up though.)
 
Reply


 
Forum Jump


All times are GMT. The time now is 16:59.