aboutsummaryrefslogtreecommitdiff
path: root/src/menubar.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/menubar.vala
parentc9b2de2b43d1575a85b5d0344c4a0bd1eb9f93fa (diff)
downloadarctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.tar.gz
arctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.tar.bz2
arctica-greeter-0718f264357a13b1a55cadcb7eb6a5774b7dd7eb.zip
Fix casting issues
Diffstat (limited to 'src/menubar.vala')
-rw-r--r--src/menubar.vala7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/menubar.vala b/src/menubar.vala
index 00fc862..5e8b2ef 100644
--- a/src/menubar.vala
+++ b/src/menubar.vala
@@ -655,8 +655,11 @@ public class MenuBar : Gtk.MenuBar
// why we do both. Ideally this would be fixed in orca itself.
var greeter = new ArcticaGreeter ();
greeter.orca_needs_kick = true;
- Timeout.add_seconds (1, () => {
- Signal.emit_by_name ((get_toplevel () as Gtk.Window).get_focus ().get_accessible (), "focus-event", true);
+ Timeout.add_seconds (1, () =>
+ {
+ Gtk.Window pWindow = (Gtk.Window) get_toplevel ();
+ Signal.emit_by_name (pWindow.get_focus ().get_accessible (), "focus-event", true);
+
return false;
});
}