Awn

Comment 1 for bug 253417

Revision history for this message
haytjes (h4writer) wrote :

I think the problem is:
- All these settings are in AwnSettings and get updated when in AwnSettings itself when it change in GKeyFile or Gconf.
- To know if the bar should repainted there is another awn_config_notify_add to that key
- The function of the last awn_config_add get's first launched
- Then AwnSettings get the his notify that it should update the key.
So the bar gets repainted with the old values.

There are several ways to fix it, but in general the value should first get updated and afterwards the bar should repaint.
- In the request to repaint the bar also adjust the value in AwnSettings. This sounds rather ugly, because the value gets set two times.
- Make sure the function first added in awn_config_notify_add gets called first. (So FIFO). Because now it is LIFO. Should solve this problem, because the awn_config_notify_add in AwnSettings are added first.
- Make a notify system in AwnSettings. That way you don't use awn_config_notify_add, but ask AwnSettings to notify if a key is updated in AwnSettings. That way the values are already updated before the notifies in AwnSettings get called.

More input from the devs is required to solve this bug...