[gnome-shell] dateMenu: Set _delegate on non-menu-item menu child
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Set _delegate on non-menu-item menu child
- Date: Thu, 13 Jul 2017 15:26:49 +0000 (UTC)
commit c1758c4d6949ff9b597e60f7ec2696ae506e1739
Author: Florian Müllner <fmuellner gnome org>
Date: Sat Jun 17 18:14:20 2017 +0200
dateMenu: Set _delegate on non-menu-item menu child
PopupMenu needs special-treatment of certain types of menu items,
which it determines via children's _delegate property. However as
the calendar drop-down is very unmenu-ish, we use regular actors
rather than PopupMenuItems and the missing _delegate property
triggers a warning. Just add it as the bare minimum to make
PopupMenu happy.
https://bugzilla.gnome.org/show_bug.cgi?id=781471
js/ui/dateMenu.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 1ce3779..f891ae3 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -474,6 +474,8 @@ const DateMenuButton = new Lang.Class({
let layout = new FreezableBinLayout();
let bin = new St.Widget({ layout_manager: layout });
+ // For some minimal compatibility with PopupMenuItem
+ bin._delegate = this;
this.menu.box.add_child(bin);
hbox = new St.BoxLayout({ name: 'calendarArea' });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]