From b9b8d358b3de9d17ea514c8f62675f431e0c3199 Mon Sep 17 00:00:00 2001 From: Olaf Leidinger Date: Mon, 4 Nov 2013 20:23:08 +0100 Subject: [PATCH] remove unnecessary complexity for elder gnome-shell --- src/extension.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/extension.js b/src/extension.js index 1d90b18..3c56bb7 100644 --- a/src/extension.js +++ b/src/extension.js @@ -124,18 +124,11 @@ const PopupTeaMenuItem = new Lang.Class({ if (this.actor instanceof St.BoxLayout) { // will be used for gnome-shell 3.10 and possibly above where this.actor is BoxLayout - this.actor.add(this.tealabel, { expand: true }); this.actor.add(this.timelabel); } else { - this.actor2 = new St.BoxLayout({ style_class: 'popup-menu-item', - reactive: true, - track_hover: true, - can_focus: true, - accessible_role: imports.gi.Atk.Role.MENU_ITEM }); - this.actor2.add(this.tealabel, { expand: true }); - this.actor2.add(this.timelabel); - this.addActor(this.actor2, {expand: true}); + this.addActor(this.tealabel, {expand: true }); + this.addActor(this.timelabel, {expand: false }); } } });