Menu

#5 Support for systray size

open
nobody
None
5
2004-07-04
2004-07-04
No

I've added a function that allows me to get the current size of the
systray from within a superkaramba script. I'm using this within a
modified version of Ivica Ico Bukvic's "Borialis" theme to cause the
tray size to be extended or shrunk based on how many icons are
currently in it.

The patch is attached, and a sample of how to do this in a theme is:

def widgetUpdated(widget):
global retracted
global cols

if(retracted != 1):
if(karamba.getSystraySize(widget) != cols):
cols = karamba.getSystraySize(widget)
resizeAll(widget)

(see the Borialis theme for the code surrounding this).

I thought a better solution than using widgetUpdated would be to
use some kind of optional callback whenever the tray changes...
but my C++/qt/Python skills are a bit to feeble to do this right now.

Hope you like it, but beware that I have never coded qt or Python
and not C++ for several years, so there could be some horrible
stuff in the few lines that I wrote.

Tested on superkaramba-0.33 compiled from source on SuSE 9.1.

Luke (lukemonahan@yahoo.com.au)

Discussion

  • Luke Monahan

    Luke Monahan - 2004-07-04

    Gnu patch to be applied to the superkaramba-0.33/src directory

     
  • Luke Kenneth Casson Leighton

    Logged In: YES
    user_id=80200

    i updated and incorporated this patch into # 1358418.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.