Zomg! Tooltips! (Or, Plasma is pretty darn easy to hack on)

Another little unimportant feature that I did. ™

Two days ago something inspired me to try hacking on Plasma. While I was glancing through KDE’s bugzilla looking for a certain bug, I glanced over and saw that there was a wishlist about the QuickLaunch plasmoid not having tooltips. “That’s strange…” I though, “Lots of plasmoids have tooltips, and QuickLaunch definitely would seem like one of those applets that would/should have tooltips.”

Later that day I had this:

With guidance from the awesome dudes on #plasma I got my patch all up in the reviewboard for review: http://reviewboard.kde.org/r/418/
A few hours later it got reviewed, and 48 hours ago it got committed to the KDE svn repository; my first “real” contribution, which went from my head to the KDE repo in less than 12 hours flat.

Plasma is pretty easy to hack on, imo. Most of my prior coding experience had been with PyQt/PyKDE programming in python. C++ took a little getting used to I suppose, (I did do one or two handy-dandy patches for Adept in the past though) but the Plasma API is nice to work with, and the other applets were fine examples which made implementing the tooltips easy. The hardest part was actually not making the tooltip, but rather getting the info about the name of the application shown in QuickLaunch from the desktop file to the tooltip. Luckily there’s another applet that also does this, the Icon plasmoid. ;-) With a few pointers from that I had the whole thing compilin’ and displaying nice tooltips in under an hour.

The feature’s nothing really big, and won’t appear until KDE 4.3, but for some reason I felt compelled to share my experience. I guess I just think that this sort of stuff is fun; I hope I can find other things that I am capable of doing to do. :-) I think it’s cool how I could just go and implement a feature like that, myself being a novice when it comes to C++. (Though maybe I’m improving? I wouldn’t want to give myself too much credit now :P) When I said that I’d like to blog about something Plasma related last time, I had no idea I’d be blogging about this…

Anyways, go out and test the Beta of Kubuntu 9.04, it’s shaping up to be a real dozy! :D

About these ads

5 Responses to Zomg! Tooltips! (Or, Plasma is pretty darn easy to hack on)

  1. Jonas says:

    Heh, now that the quicklaunch applet is working properly again I hope you didn’t break it again ;)Seriously though, if you want something more fun to hack with: how about “Right-click on the launcher to get a mini k-menu to make it easier to add launchers”…that’s the one thing (after your add-on) that I miss from the KDE3.x equivalent.Great to have that tooltip back (says I without having tried it yet)!

  2. lure says:

    Congrats for first commit. Now request KDE SVN account and I am already looking forward for new contributions from you.

  3. tathosh says:

    Hello,

    you made a great hacking with this feature. I’d just like to ask whether you would be willing to hack with other feature called “Force row settings”. This setting is available in Task Manager, and it would be geat to have such feature in Quicklaunch. Currently when I want two rows of icons in Quicklaunch, I have to increase the height of the Panel (and it is not nice to have very high panel).

    I have also created an idea in KDE Brainstorm Forum about this feature (http://forum.kde.org/force-row-settings-t-45474.html).

    It would be great, if you could implement this feature.

    Thanks for your help.

  4. J&D says:

    < HREF="http://www.groad.tw/" REL="nofollow">網頁設計<>,< HREF="http://www.sexy288.com/" REL="nofollow">情趣用品<>,< HREF="http://www.egg168.com/" REL="nofollow">情趣用品<>,< HREF="http://www.sexy5899.com/" REL="nofollow">情趣用品<>,< HREF="http://www.sexy5988.com/" REL="nofollow">情趣用品<><>< HREF="http://0951.rich178.net/" REL="nofollow">A片下載<>,< HREF="http://0951.rich178.net/p01.htm" REL="nofollow">成人影片下載<>,< HREF="http://0951.rich178.net/p02.htm" REL="nofollow">免費A片下載<><>< HREF="http://www.egg168.com/020/" REL="nofollow">色情遊戲<>,< HREF="http://www.egg168.com/019/" REL="nofollow">寄情築園小遊戲<>,< HREF="http://www.egg168.com/013/" REL="nofollow">情色文學<>,< HREF="http://www.egg168.com/017/" REL="nofollow">一葉情貼圖片區<>,< HREF="http://www.egg168.com/002/" REL="nofollow">情惑用品性易購<>,< HREF="http://www.egg168.com/003/" REL="nofollow">情人視訊網<>,< HREF="http://www.egg168.com/005/" REL="nofollow">辣妹視訊<>,< HREF="http://www.egg168.com/006/" REL="nofollow">情色交友<>,< HREF="http://www.egg168.com/007/" REL="nofollow">成人論壇<>,< HREF="http://www.egg168.com/008/" REL="nofollow">情色論壇<>,< HREF="http://www.egg168.com/009/" REL="nofollow">愛情公寓<>,< HREF="http://www.egg168.com/010/" REL="nofollow">情色<>,< HREF="http://www.egg168.com/011/" REL="nofollow">舊情人<>,< HREF="http://www.egg168.com/012/" REL="nofollow">情色貼圖<>,< HREF="http://www.egg168.com/015/" REL="nofollow">色情聊天室<>,< HREF="http://www.egg168.com/016/" REL="nofollow">色情小說<>,< HREF="http://www.egg168.com/a01/" REL="nofollow">做愛<>,< HREF="http://www.egg168.com/a02/" REL="nofollow">做愛影片<>,< HREF="http://www.egg168.com/a03/" REL="nofollow">性愛<>
    <>< HREF="http://www.sexy288.com/a01/" REL="nofollow">免費視訊聊天室<>,< HREF="http://www.sexy288.com/b01/" REL="nofollow">aio交友愛情館<>,< HREF="http://www.sexy288.com/a02" REL="nofollow">愛情公寓<>,< HREF="http://www.sexy288.com/a03" REL="nofollow">一葉情貼圖片區<>,< HREF="http://www.sexy288.com/a04" REL="nofollow">情色貼圖<>,< HREF="http://www.sexy288.com/a05" REL="nofollow">情色文學<>,< HREF="http://www.sexy288.com/a06" REL="nofollow">色情聊天室<>,< HREF="http://www.sexy288.com/a08/" REL="nofollow">情色小說<>,< HREF="http://www.sexy288.com/a09" REL="nofollow">情色電影<>,< HREF="http://www.sexy288.com/a10" REL="nofollow">情色論壇<>,< HREF="http://www.sexy288.com/a11" REL="nofollow">成人論壇<>,< HREF="http://www.sexy288.com/a12" REL="nofollow">辣妹視訊<>,< HREF="http://www.sexy288.com/a13" REL="nofollow">視訊聊天室<>,< HREF="http://www.sexy288.com/a14" REL="nofollow">情色視訊<>,< HREF="http://www.sexy288.com/a07" REL="nofollow">免費視訊<>,< HREF="http://www.sexy288.com/a15" REL="nofollow">免費視訊聊天<>,< HREF="http://www.sexy288.com/a16" REL="nofollow">視訊交友網<>,< HREF="http://www.sexy288.com/a17" REL="nofollow">視訊聊天室<>,< HREF="http://www.sexy288.com/a18" REL="nofollow">視訊美女<>,< HREF="http://www.sexy288.com/a19" REL="nofollow">視訊交友<>,< HREF="http://www.sexy288.com/a20" REL="nofollow">視訊交友90739<>,< HREF="http://www.sexy288.com/a21/" REL="nofollow">UT聊天室<>,< HREF="http://www.sexy288.com/a22/" REL="nofollow">聊天室<>,< HREF="http://www.sexy288.com/a23/" REL="nofollow">豆豆聊天室<>,< HREF="http://www.sexy288.com/a24/" REL="nofollow">尋夢園聊天室<>,< HREF="http://www.sexy288.com/a25/" REL="nofollow">聊天室尋夢園<>,< HREF="http://www.sexy288.com/a26/" REL="nofollow">080聊天室<>,< HREF="http://www.sexy288.com/a27/" REL="nofollow">080苗栗人聊天室<>,< HREF="http://www.sexy288.com/a28/" REL="nofollow">女同志聊天室<>,< HREF="http://www.sexy288.com/a29/" REL="nofollow">上班族聊天室<>,< HREF="http://www.sexy288.com/a30/" REL="nofollow">小高聊天室<> 
    <>< HREF="http://www.sexy288.com/b02/" REL="nofollow">AV<>,< HREF="http://www.sexy288.com/b03/" REL="nofollow">AV女優<><>< HREF="http://www.rich178.net/" REL="nofollow">視訊<>,< HREF="http://www.rich178.net/" REL="nofollow">影音視訊聊天室<><>< HREF="http://www.imm176.com/" REL="nofollow">影音視訊聊天室<><>< HREF="http://www.sexy176.com/" REL="nofollow">視訊<>,< HREF="http://www.sexy176.com/" REL="nofollow">影音視訊聊天室<><>< HREF="http://111610.gi2qp.com/" REL="nofollow">免費視訊聊天<>,< HREF="http://90739.gi2qp.com/" REL="nofollow">辣妹視訊<>,< HREF="http://108438.gi2qp.com/" REL="nofollow">視訊交友網<>,< HREF="http://107128.gi2qp.com/" REL="nofollow">美女視訊<>,< HREF="http://113880.gi2qp.com/" REL="nofollow">視訊交友<>,< HREF="http://115250.gi2qp.com/" REL="nofollow">視訊交友90739<>,< HREF="http://115745.gi2qp.com/" REL="nofollow">成人聊天室<>,< HREF="http://115764.gi2qp.com/" REL="nofollow">視訊聊天室<>,< HREF="http://117205.gi2qp.com/" REL="nofollow">視訊聊天<>,< HREF="http://115745.gi2qp.com/" REL="nofollow">視訊聊天室<>,< HREF="http://119661.gi2qp.com/" REL="nofollow">情色視訊<>,< HREF="http://119663.gi2qp.com/" REL="nofollow">情人視訊網<>,< HREF="http://123143.gi2qp.com/" REL="nofollow">視訊美女<><>< HREF="http://129242.gi2qp.com/" REL="nofollow">一葉情貼圖片區<>,< HREF="http://129244.gi2qp.com/" REL="nofollow">免費視訊聊天室<>,< HREF="http://129245.gi2qp.com/" REL="nofollow">免費視訊<>,< HREF="http://131264.gi2qp.com/" REL="nofollow">ut聊天室<>,< HREF="http://131265.gi2qp.com/" REL="nofollow">聊天室<>,< HREF="http://131266.gi2qp.com/" REL="nofollow">豆豆聊天室<>,< HREF="http://131267.gi2qp.com/" REL="nofollow">尋夢園聊天室<>,< HREF="http://131268.gi2qp.com/" REL="nofollow">聊天室尋夢園<>,< HREF="http://132176.gi2qp.com/" REL="nofollow">影音視訊聊天室<>,
    <>< HREF="http://134673.gi2qp.com/" REL="nofollow">辣妹視訊<>,< HREF="http://135227.gi2qp.com/" REL="nofollow">美女視訊<>,< HREF="http://135228.gi2qp.com/" REL="nofollow">視訊交友網<>,< HREF="http://137852.gi2qp.com/" REL="nofollow">視訊聊天室<>,< HREF="http://137959.gi2qp.com/" REL="nofollow">視訊交友<>,< HREF="http://137964.gi2qp.com/" REL="nofollow">視訊美女<>,< HREF="http://139693.gi2qp.com/" REL="nofollow">免費視訊<>,< HREF="http://146931.gi2qp.com/" REL="nofollow">免費視訊聊天<>,< HREF="http://152519.gi2qp.com/" REL="nofollow">視訊交友90739<>,< HREF="http://154127.gi2qp.com/" REL="nofollow">免費視訊聊天室<>,< HREF="http://154148.gi2qp.com/" REL="nofollow">成人聊天室<>,< HREF="http://154292.gi2qp.com/" REL="nofollow">視訊聊天<>,< HREF="http://154703.gi2qp.com/" REL="nofollow">視訊交友aooyy<><>< HREF="http://154774.gi2qp.com/" REL="nofollow">哈啦聊天室<>,< HREF="http://156239.gi2qp.com/" REL="nofollow">辣妺視訊<>,< HREF="http://156541.gi2qp.com/" REL="nofollow">A片<>,< HREF="http://156542.gi2qp.com/" REL="nofollow">色情A片<>,< HREF="http://156745.gi2qp.com/" REL="nofollow">視訊<>,< HREF="http://158171.gi2qp.com/" REL="nofollow">080視訊聊天室<>,< HREF="http://158174.gi2qp.com/" REL="nofollow">視訊美女34c<>,< HREF="http://158180.gi2qp.com/" REL="nofollow">視訊情人高雄網<>,< HREF="http://158181.gi2qp.com/" REL="nofollow">視訊交友高雄網<>,< HREF="http://158199.gi2qp.com/" REL="nofollow">0204貼圖區<>,< HREF="http://158200.gi2qp.com/" REL="nofollow">sex520免費影片<>,< HREF="http://158209.gi2qp.com/" REL="nofollow">情色貼圖<>,< HREF="http://159399.gi2qp.com/" REL="nofollow">視訊ukiss<>

  5. Keith Z-G says:

    Out of curiosity, since you say your main experience has been PyQt/PyKDE, is there any really decent tutorials (or at least comprehensive documentation) out there?

    I’ve been trying to get into it myself, but the scant few tutorials out there seem to be for Qt3/KDE3 (and although KDE 3 remains my favourite DE, the times, they are a’ changing), and although the few Techbase articles up there about PyKDE/PyQt and writing Plasmoids with Python are pretty good, well, there just aren’t that many so their coverage is a bit hit-and-miss.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 25 other followers

%d bloggers like this: