St.Table no longer exists in gnome-shell 3.18, changing to a BoxLayout

This commit is contained in:
chuma 2016-01-15 14:38:31 -05:00
parent 7232c8a21d
commit d26caaf67e

View File

@ -54,7 +54,7 @@ const TeaTimeFullscreenNotification = new Lang.Class({
// a table imitating a vertical box layout to hold the texture and
// a label underneath it
this._layout = new St.Table();
this._layout = new St.BoxLayout({vertical:true, y_align:Clutter.ActorAlign.CENTER});
this._bin.set_child(this._layout);
// find all the textures
@ -78,13 +78,13 @@ const TeaTimeFullscreenNotification = new Lang.Class({
this._texture = new Clutter.Texture({ reactive: true, keep_aspect_ratio: true });
this._texture.connect("button-release-event", Lang.bind(this, this.hide));
this._layout.add(this._texture, {row: 0, col: 0});
this._layout.add_child(this._texture);
this._timeline = new Clutter.Timeline({ duration: 2000, repeat_count: -1, progress_mode: Clutter.AnimationMode.LINEAR });
this._timeline.connect("new-frame", Lang.bind(this, this._newFrame));
this._label = new St.Label({ text: _("Your tea is ready!"), style_class: "dash-label" });
this._layout.add(this._label, {row: 1, col: 0});
this._layout.add_child(this._label);
this._lightbox = new imports.ui.lightbox.Lightbox(Main.uiGroup); // Seems not to work on Gnome 3.10 { fadeInTime: 0.5, fadeOutTime: 0.5 }
this._lightbox.highlight(this._bin);