Re: extension js help: var? Is not a constructer
- From: Craig Rob l300lvl <atz3 yahoo ca>
- To: "Jasper St. Pierre" <jstpierre mecheye net>
- Cc: Gnome Shell List <gnome-shell-list gnome org>
- Subject: Re: extension js help: var? Is not a constructer
- Date: Fri, 07 Sep 2012 15:40:46 -0500
Thanks, at least it still works somehow lol. Anyways, what I was trying
to do is update the "Lame Extensions Manager" that works with 3.4 from
here:
https://github.com/bsaleil/Lame-Extension-manager/tree/master/ExtManager ilikepepper tk
I'm trying to add a popup menu so everything is added to that, as it
currently is all added to the menu and theres no scroll-bar making this
sort of pointless. Ive requested this at least once but the original
author hasnt responded or updated this recently.
The problem is, everything is being added to the menu, and creating a
sub menu causes it to behave as though it wasn't originally added to the
menu, making no sense to me. I tried creating the submenu where the
everything is added to the menu but that results in each entry acting as
a sub-menu, so it doesnt work there.
I'm missing something, somewhere, and its frustrating.
> On Thu, Sep 6, 2012 at 4:24 PM, Craig Rob l300lvl <atz3 yahoo ca> wrote:
> > I'm driving myself crazy trying to figure out why I get an error about
> > popMenu not being a constructer. Looking glass says:
> > Failed to evaluate init function:TypeError: PopupMenu.PopupSubMenuItem
> > is not a constructor.
> >
> > Basically I'm trying to create a PopupSubMenuItem that "menuItem"(which
> > creates a Switch item) is then added to. Why would it see popMenu as a
> > var?
> >
> > let popMenu = new PopupMenu.PopupSubMenuItem(_("List"));
> > this.menu.addMenuItem(popMenu);
> > menuItem = new
> > PopupMenu.PopupSwitchMenuItem(_(thisName),init_val);
> > popMenu.menu.addMenuItem(menuItem);
> >
> > Any knowledge here would be very appreciated.
>
> It's a PopupSubMenuMenuItem....
>
> ... why are you staring at me? I didn't name it.
>
> > _______________________________________________
> > gnome-shell-list mailing list
> > gnome-shell-list gnome org
> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]