> This should be in BackgroundLoader.load: > 8 + if (current_background[0] == '#' && current_background.length <= 7) > 9 + { > 10 + Gdk.Color c; > 11 + Gdk.Color.parse (current_background, out c); > 12 + current.average_color = {c.red/65535.0f, c.green/65535.0f, > c.blue/65535.0f, 1.0f}; > 13 + }
Right... It was just an hack for my tests, then I left it there without noticing that it was just about to add one line into the loader... :)
> You should probably use a property instead of a method for get_average_color
As you prefer...
Fixed both.
« Back to merge proposal
> This should be in BackgroundLoade r.load: background[ 0] == '#' && current_ background. length <= 7) background, out c); average_ color = {c.red/65535.0f, c.green/65535.0f,
> 8 + if (current_
> 9 + {
> 10 + Gdk.Color c;
> 11 + Gdk.Color.parse (current_
> 12 + current.
> c.blue/65535.0f, 1.0f};
> 13 + }
Right... It was just an hack for my tests, then I left it there without noticing that it was just about to add one line into the loader... :)
> You should probably use a property instead of a method for get_average_color
As you prefer...
Fixed both.