thumbnailBox: Stop using Shell.GenericContainer
This is another straight port from Shell.GenericContainer. The important thing to notice is that the calculation is broken if the StThemeNode helpers (adjust_preferred_* and adjust_for_*) aren't used. The downside of this patch is that it removed the skip_paint from the thumbnails. Keeping it would add an unecessarily large amount of code. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/153
This commit is contained in:
@ -250,7 +250,7 @@ var ThumbnailsSlider = new Lang.Class({
|
||||
this.actor.request_mode = Clutter.RequestMode.WIDTH_FOR_HEIGHT;
|
||||
this.actor.reactive = true;
|
||||
this.actor.track_hover = true;
|
||||
this.actor.add_actor(this._thumbnailsBox.actor);
|
||||
this.actor.add_actor(this._thumbnailsBox);
|
||||
|
||||
Main.layoutManager.connect('monitors-changed', this._updateSlide.bind(this));
|
||||
global.workspace_manager.connect('active-workspace-changed',
|
||||
@ -258,7 +258,7 @@ var ThumbnailsSlider = new Lang.Class({
|
||||
global.workspace_manager.connect('notify::n-workspaces',
|
||||
this._updateSlide.bind(this));
|
||||
this.actor.connect('notify::hover', this._updateSlide.bind(this));
|
||||
this._thumbnailsBox.actor.bind_property('visible', this.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||
this._thumbnailsBox.bind_property('visible', this.actor, 'visible', GObject.BindingFlags.SYNC_CREATE);
|
||||
},
|
||||
|
||||
_getAlwaysZoomOut() {
|
||||
|
Reference in New Issue
Block a user