User:Generalantilles/rm you

Hey, it's rm_you!

Check out Advanced Backlight Statusbar Applet!



Emails from Timeless concerning GTK stuff with applets:

On Wed, May 7, 2008 at 7:38 AM, Adam Harwell <aharwell at trinity.edu> wrote:

>> The binary package osso-statusbar-sound contains a statusbar applet that can

>> be used to control the volume level of the system. It consists primarily of

>> some GtkContainer or HildonContainer object that can be used as a

>> popup/popdown menu. That object then contains a "hildon_hvolumebar" as well

>> as a menu item of some kind that launches the sound configuration

>> controlpanel applet.

>>

>> Currently I am using a "hildon_desktop_popup_window". This sort of works,


what follows is JavaScript notation based on C GObject code.


function SoundWindow() {

var box = new gtk["vbox"];

gtk["container"].add (this, box);

box.pack([volumebar, ...]);

}

SoundWindow.prototype = {

type_hint: GDK_WINDOW_TYPE_HINT_MENU,

name: "hildon-status-bar-popup",

resizable: false,

decorated: false,

/* i think this is the cute border you're asking about, and yes, it

seems like it's just hard coded into the C */

border_width: 20,

keep_above: true

}



fwiw, the same general approach is used by the display applet.

>> but it lacks the nice thick border and rounded corners that the default

>> sound applet uses, as well as some intelligent autoclose functions. Can you

>> find out if there is some kind of hildon container that is being used for

>> the default sound applet?