mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
remove unnecessary complexity for elder gnome-shell
This commit is contained in:
parent
4129d0f968
commit
b9b8d358b3
@ -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 });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user