Fix type-argument mismatches of GLib.(S)List variables found by newer valac

This commit is contained in:
Rico Tzschichholz 2018-11-08 14:25:30 +01:00
parent be16d4a0cb
commit c9c6338d0d
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;