After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 672326 - Example extension created using gnome-shell-extension-tool fails with TypeError
Example extension created using gnome-shell-extension-tool fails with TypeError
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2012-03-18 05:43 UTC by Parag AN
Modified: 2012-03-18 10:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnome-shell-extension-tool: Fix example extension for 3.3.90 API (983 bytes, patch)
2012-03-18 06:04 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Parag AN 2012-03-18 05:43:46 UTC
On Fedora 17 Alpha, I was trying to learn to create gnome-shell extension. I used command "gnome-shell-extension --create-extension". I named it like Example and it got UUID as Example@f17alpha. I enabled it using gnome-tweak-tool and check its debug log. Error said "TypeError: Main.panel._rightBox.insert_actor is nota function"

Also, debug log said missing 'url' entry in metadata.json

Was there any change in gnome-shell-3.3.90 version? I thought default creation of extension will work. But look like template has not changed to compatible with gnome-shell-3.3.90 version.

How to fix code to make default extension work?
Comment 1 Jasper St. Pierre (not reading bugmail) 2012-03-18 06:04:15 UTC
Created attachment 210030 [details] [review]
gnome-shell-extension-tool: Fix example extension for 3.3.90 API

insert_actor was replaced with the standard Clutter insert_child_at_index
Comment 2 drago01 2012-03-18 10:33:16 UTC
Review of attachment 210030 [details] [review]:

Looks good.
Comment 3 Jasper St. Pierre (not reading bugmail) 2012-03-18 10:43:38 UTC
Attachment 210030 [details] pushed as ceb17dc - gnome-shell-extension-tool: Fix example extension for 3.3.90 API