as i said in topic,i wanna make a tiny stuff needs this !
the status area is in the top right of the screen where shows the battery,times,ect..
here's what i did
let's say,the widget is a gtk_button
i know i need to use hd_status_plugin_item_set_status_area_widget (),
but it just can not make it work!
This only works for the clock statusarea-plugin.
That is why the documentation says:
Take a look at the source code of hidon-status-area, on how it
prevents other plugins from adding its own statusarea widgets.
And take a look at
status-menu.plugins:
X-Status-Area-Permanent-Item=Clock
yep,
i noticed "This function should only be used by the Clock plugin." already.
and i am looking for the hidon-status-area source code , but i didn't find anything useful.
and i also looking for the codes that implements the clock plugins.
can u provide some links ? thx thx!!
Now, all i can do is waiting for your answer
i've finished my code on the Widget yesterday.
ALL I NEED TO DO IS how to add it to the status area!
thx pal!
i am reading it .
thx
btw : is my demand implement-able if i don't know how they add a clock plugin ? let's say , add a button with label 'hello' right next to the clock.
I don't know if it is possible to add another
widget. Maybe you can only replace the
clock plugin.
dman it! i've tried another way
that is:
i convert all the characters to a image ,
and i use
hd_status_plugin_item_set_status_area_icon()
to add them , one by one
but, but! i find a problem!
the image i added is size-fixed to 16x16
but what i want is 16x32!!
i know the icon_theme has something to do with it
but i do know how to set a size for the image to be added in status.
i got a screen for you,to make my point clear.
i want the img number 9 has the size of 16widthx32hight
simple change the size parameter of gtk_icon_theme_load_icon DOESN'T WORK!!