aboutsummaryrefslogtreecommitdiff
path: root/src/list-stack.vala
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2023-05-05 05:19:44 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-05-07 20:52:12 +0200
commit0718f264357a13b1a55cadcb7eb6a5774b7dd7eb (patch)
tree9c44342564d431dfaf24cd8f61d5d63c44171eed /src/list-stack.vala
parentc9b2de2b43d1575a85b5d0344c4a0bd1eb9f93fa (diff)
downloadarctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.tar.gz
arctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.tar.bz2
arctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.zip
Fix casting issues
Diffstat (limited to 'src/list-stack.vala')
-rw-r--r--src/list-stack.vala7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/list-stack.vala b/src/list-stack.vala
index 8f6e371..63bde28 100644
--- a/src/list-stack.vala
+++ b/src/list-stack.vala
@@ -1,6 +1,7 @@
/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 4 -*-
*
* Copyright (C) 2011,2012 Canonical Ltd
+ * Copyright (C) 2023 Robert Tari
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
@@ -16,6 +17,7 @@
*
* Authors: Michael Terry <michael.terry@canonical.com>
* Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+ * Robert Tari <robert@tari.in>
*/
public class ListStack : Gtk.Fixed
@@ -75,7 +77,10 @@ public class ListStack : Gtk.Fixed
unowned List<weak Gtk.Widget> prev = children.last ().prev;
if (prev != null)
- (prev.data as GreeterList).greeter_box.pop ();
+ {
+ GreeterList pList = (GreeterList) prev.data;
+ pList.greeter_box.pop ();
+ }
}
public override void size_allocate (Gtk.Allocation allocation)