Move drawing functions from shell-global into new shell-drawing.c file
Just to avoid shell-global.c bloat.
This commit is contained in:
@ -162,9 +162,9 @@ ClockWidget.prototype = {
|
||||
|
||||
_updateCairo: function(time) {
|
||||
let global = Shell.Global.get();
|
||||
global.clutter_cairo_texture_draw_clock(this.collapsedActor,
|
||||
time.getHours() % 12,
|
||||
time.getMinutes());
|
||||
Shell.draw_clock(this.collapsedActor,
|
||||
time.getHours() % 12,
|
||||
time.getMinutes());
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user