Notices


Reply
Thread Tools
Posts: 52 | Thanked: 55 times | Joined on Dec 2009
#1
I have been playing around with the hildon desktop widget API and created something of limited utility: fat-label.

All this does is display some text you can specify. That's it! You can add as many as you'd like though. I find it useful to label desktops and whatnot.

Let me know what you think. Thanks!
Attached Files
File Type: deb fat-label_0.2_armel.deb (8.4 KB, 250 views)
 

The Following 4 Users Say Thank You to coreyoconnor For This Useful Post:
Posts: 72 | Thanked: 31 times | Joined on Oct 2009 @ Germany
#2
Originally Posted by coreyoconnor View Post
I have been playing around with the hildon desktop widget API and created something of limited utility: fat-label.

All this does is display some text you can specify. That's it! You can add as many as you'd like though. I find it useful to label desktops and whatnot.

Let me know what you think. Thanks!
Funny, might be useful.
 
Posts: 52 | Thanked: 55 times | Joined on Dec 2009
#3
Doh. One obvious bug: Does not retain the text across restarts.

Not sure how best to do that. I suppose using gconf?
 
Posts: 329 | Thanked: 142 times | Joined on Oct 2009
#4
Originally Posted by coreyoconnor View Post
Doh. One obvious bug: Does not retain the text across restarts.

Not sure how best to do that. I suppose using gconf?
Text file? It's much more easier and would probably save you a lot of headache hunting down potential quirks
__________________
I don't mean to crush your hopes, I just can't help it
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#5
Originally Posted by coreyoconnor View Post
I suppose using gconf?
I like using GConf as you can set defaults on install, sanely, using a schema file; and you can also watch keys for changes.

If, however, you like text files, GKeyFile is also nice.
 
Posts: 52 | Thanked: 55 times | Joined on Dec 2009
#6
I think gconf is the way to go for this. I think this would enable some other application ( like a script ) to modify the displayed text via gconf. Not sure what good this would do ( Not sure if anything fat-label does is useful haha ) but who knows! Better to use the functionality I'd get for free using gconf than not ;-)
 
Posts: 52 | Thanked: 55 times | Joined on Dec 2009
#7
Aight. I added support for retaining the set text via gconf. Might have to restart for the widget update to take effect.

All updates happen via gconf as well. So if you really wanted to you could modify the text in another application via gconf and the widget will update accordingly. EG:

Code:
gconftool-2 --type string -s /apps/blimpsgo90-fat-label/bg90_fat_label.desktop-0/text foo
Will update the first instance of fat-label to have the text foo. I'm not sure how best to communicate to the user what the instance ID is for a given instance of the widget. Till next update I suppose...

Oh. No support for retaining color yet. Or changing the size of the label for that matter.
Attached Files
File Type: deb fat-label_0.3_armel.deb (9.9 KB, 120 views)
 
fpp's Avatar
Posts: 2,853 | Thanked: 968 times | Joined on Nov 2005
#8
...or you could just use the Desktop Command Execution (DCE) widget, with the command:
echo "your text"
:-)
__________________
maemo blog
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:21.