![]() |
Load-Applet (on_button?)
Hi, something in Load-Applet pisses me off (besides that it doesn't always show applications using 100% CPU), it is that when I select the button of the panel (statusbar applet...) doesn't light up according to theme like the rest of the panel icons do. How do I solved this? I looked a bit around in the source but I don't have a clue because I don't see anything wrong in it compared to other applications or the Maemo Diablo reference documentation.
|
Re: Load-Applet (on_button?)
Didn't look at the sources but it probably needs something like this:
Code:
button.set_name("hildon-navigator-button-one") |
Re: Load-Applet (on_button?)
That is equiv to gtk_widget_set_name
This is set early in the C file. I think it is something else. Maybe it is artifact from older Maemo not correct ported to newer Maemo. But I don't see a difference with advanced-backlight which would explain the problem... |
Re: Load-Applet (on_button?)
Are we talking about load-applet_0.8.2-3? I don't see anything about gtk_widget_set_name or "hildon-navigator-button-one" there.
|
Re: Load-Applet (on_button?)
Hmm you're right, there is no gtk_window_* defined. But hildon-navigator-button-one is not used in advanced-backlight either.
Advanced Backlight does this Quote:
Quote:
But then still, gtk_widget_set_name just sets the name of the widget, why would that be related to the applet/panel being active? |
Re: Load-Applet (on_button?)
I've been wondering the same actually, glad you brought this up. My hunch is this:
Quote:
Quote:
|
Re: Load-Applet (on_button?)
Quote:
|
Re: Load-Applet (on_button?)
Quote:
I did this to the source, compiled fine but the load applet doesn't display then. If using classes is the right way, then the whole source will have to be changed to reflect that... Code:
--- load-applet-0.8.2.orig/load-applet.c
|
Re: Load-Applet (on_button?)
API changes between maemo 3.2 and maemo 4.0
Quote:
|
Re: Load-Applet (on_button?)
IIRC, you don't get this functionality for free. For example, the Advanced Backlight Applet toggles the icon based on the active/inactive state of the "menu." I can point you at the code if I must, but it's in there.
EDIT: Here's the call: gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->button), ... There's other code to help set this up of course... |
All times are GMT. The time now is 22:12. |
vBulletin® Version 3.8.8