mirror of
https://github.com/elementary/gala.git
synced 2024-12-26 10:44:46 +03:00
Fix type-argument mismatches of GLib.(S)List variables found by newer valac
This commit is contained in:
parent
be16d4a0cb
commit
c9c6338d0d
@ -147,7 +147,7 @@ namespace Gala
|
||||
|
||||
new_window.change_workspace_by_index (index, false);
|
||||
|
||||
unowned List<WindowActor> actors = Compositor.get_window_actors (new_window.get_screen ());
|
||||
unowned List<unowned WindowActor> actors = Compositor.get_window_actors (new_window.get_screen ());
|
||||
foreach (unowned Meta.WindowActor actor in actors) {
|
||||
if (actor.is_destroyed ())
|
||||
continue;
|
||||
@ -242,7 +242,7 @@ namespace Gala
|
||||
// Assign each window to the closest available slot
|
||||
var tmplist = windows.copy ();
|
||||
while (tmplist.length () > 0) {
|
||||
unowned List<TilableWindow?> link = tmplist.nth (0);
|
||||
unowned List<unowned TilableWindow?> link = tmplist.nth (0);
|
||||
var window = link.data;
|
||||
var rect = window.rect;
|
||||
|
||||
|
@ -63,7 +63,7 @@ namespace Gala
|
||||
unowned Meta.Display display = window.get_display ();
|
||||
var children = get_children ();
|
||||
|
||||
GLib.SList<unowned Meta.Window> windows = new GLib.SList<unowned Meta.Window> ();
|
||||
GLib.SList<Meta.Window> windows = new GLib.SList<Meta.Window> ();
|
||||
foreach (unowned Actor child in children) {
|
||||
unowned WindowClone tw = (WindowClone) child;
|
||||
windows.prepend (tw.window);
|
||||
@ -149,7 +149,7 @@ namespace Gala
|
||||
unowned Meta.Display display = screen.get_display ();
|
||||
var children = get_children ();
|
||||
|
||||
GLib.SList<unowned Meta.Window> windows = new GLib.SList<unowned Meta.Window> ();
|
||||
GLib.SList<Meta.Window> windows = new GLib.SList<Meta.Window> ();
|
||||
foreach (unowned Actor child in children) {
|
||||
unowned WindowClone tw = (WindowClone) child;
|
||||
windows.prepend (tw.window);
|
||||
|
@ -31,7 +31,7 @@ namespace Gala
|
||||
WindowIcon? current_window = null;
|
||||
|
||||
Actor window_clones;
|
||||
List<Actor> clone_sort_order;
|
||||
List<unowned Actor> clone_sort_order;
|
||||
|
||||
WindowActor? dock_window;
|
||||
Actor dock;
|
||||
|
Loading…
Reference in New Issue
Block a user