Commit bdf66d7b authored by Marco Trevisan's avatar Marco Trevisan 🎺 Committed by Florian Müllner

popupMenu: Implement vfunc's for key focus in/out

As per the fact the menu item is an object we can just vfunc's.
This is not possible for events as specific union object is passed instead of
just the Clutter.Event.

parent 4258ae3e
......@@ -95,9 +95,6 @@ var PopupBaseMenuItem = GObject.registerClass({
if (params.reactive && params.hover)
this.connect('notify::hover', this._onHoverChanged.bind(this));
this.connect('key-focus-in', this._onKeyFocusIn.bind(this));
this.connect('key-focus-out', this._onKeyFocusOut.bind(this));
get actor() {
......@@ -161,11 +158,13 @@ var PopupBaseMenuItem = GObject.registerClass({
return Clutter.EVENT_PROPAGATE;
_onKeyFocusIn(actor) {
vfunc_key_focus_in() {
_onKeyFocusOut(actor) {
vfunc_key_focus_out() {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment