Monday, September 01, 2008

Tracker and vala goodness

I was just today looking at some examples of tracker use and stumbled on hum-gtk - a gtk music player that combines three very-close-at-heart projects together: gstreamer, vala and tracker. It's a simple app, the picture speaks louder than any description:



But the true greatness comes when you look at the source code of it. I dare you - do take a look at it:

http://hum-gtk.googlecode.com/svn/trunk/

You can see that you can make a decent music player (yeah, it's the 0.1 stage, so no-one is expecting a miracle) with just tiny amount of code.


Oh, by the way, I've published a new version of theme maker that has lot's of good fixes and font support and I'm now working on including icon support to the diablo.

https://garage.maemo.org/frs/?group_id=36
[edit] The screenshot is from the 0.1 version that was written on c. The code is still very neat, but not just vala. http://hum-gtk.googlecode.com/svn/branches/0.1/src/

9 comments:

  1. Well, vala version isn't quite working yet, but the c code of the 0.1 version isn't too complicated either:
    http://hum-gtk.googlecode.com/svn/branches/0.1/src/

    ReplyDelete
  2. Urho -

    If you're re-adding icon support to ThemeMaker, please keep in mind that most icons (including the tasknav and statusbar icons) are themeable; you don't have to replace Nokia's icons, as you've done in some previous versions.

    The first step is to add the following line to ThemeMaker's gtkrc file:
    gtk-icon-theme-name = "THEME_NAME"

    Install the icons in /usr/share/icons/THEME_NAME (following the directory structure found in /usr/share/icons/hicolor/)

    Finally, create an index.theme file based on the one in the hicolor directory. (Or see here for details.)

    When switching between themes with icon sets, the user must restart in order to reload certain icons (Maemo bug 3659). Still, this is obviously preferable to having only one icon set installed at a time with no way to switch to another (short of reinstalling/uninstalling themes).

    Also worth considering: since most icons are already themeable, Nokia could make theme creation a lot easier by putting the icons into the theme template, or a separate icon template (which we're doing for our next release).

    ReplyDelete
  3. Thanks for the help Ian. I'm now doing it exactly as you suggested.

    ReplyDelete
  4. Urho,

    Thanks for the mention (I'm the author of Hum). I have a kinda-almost-working version on my hard drive written in Vala, but I had put it on hold due to funkiness in Vala's DBus bindings and lots of turmoil in my personal life. Hum has gotten a little attention in the past week or so, much to my surprise, and so I'm resurrecting the Vala version.

    I'll let you know when I gather things together and check in all the new code. I'd love to have some help hacking on it!

    ReplyDelete
  5. Brian, I should get in touch with you then. Tell me what is going on with dbus bindings and I'm sure Jürg Billeter will be more than happy to fix the issues.

    ReplyDelete
  6. Anonymous00:43

    When the Wow Gold wolf finally found the Buy Wow Goldhole in the chimney he crawled wow gold cheap down and KERSPLASH right into that kettle of water and that was cheap wow gold the end of his troubles with the big bad wolf.
    The next day the cheapest wow gold little pig invited his mother over . She said "You see it is just as I told you. The way to get along in the world is to do world of warcraft gold things as well as you can." Fortunately for that little pig, he buy cheap wow gold learned that lesson. And he just lived happily ever after!
    buy wow gold

    ReplyDelete
  7. Anonymous23:48

    Weaknesses of World Of Warcraft Gold the client-server model used by World of Warcraft have been wow power levelingexploited in order to crash the cluster of servers that wow8goldmake up a realm. Exploits also include characters being able to instantly Cheapest Wow Goldchange location or teleport. The situationbecame worse cheap wow goldwhen trying to coordinate activities across a number of playersor guilds on the same realm.World of Warcraft Lead Producer, stated that new realms would be introduced to warhammer goldrelieve the burden on existing ones. Existing realms would be upgraded.

    Although the game wow gold follows a similar model to others in the genreand was noted for having wow gold cheapmany familiar concepts from roleplaying games, the new approaches gold4powerto reduce pauses between game encounters was well liked. At various times, World of Warcraft players have experienced problems with connecting to and logging in to wow gold for sale the game. Sudden server crashes that would force realms offline also occurred.

    ReplyDelete
  8. AYpearl engaged inwholesale jewelry,handmade

    jewelry
    ,fashion jewelry,including wholesale pearl,wholesale gemstone,wholesale crystal,wholesale coral,wholesale shell,wholesale turquoise,wholesale swarovski and so on.

    ReplyDelete
  9. You smart and buy Sword of the New World Vis, you play the game is right, Sword of the New World Gold. you have a wonderful time, buy vis, I have it cheap snw vis, I buy Sword of the New World money.

    I find job Tales Of Pirates gold, this is a nice work andTales Of Pirates money. I do not want to rely on my parents cheap Tales Of Pirates gold, They look after me so long time, they pay me too much and very tired buy Tales Of Pirates Gold.

    ReplyDelete