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 590778 - Add ShellGenericContainer, which makes it possible to write containers in JS
Add ShellGenericContainer, which makes it possible to write containers in JS
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 590779 (view as bug list)
Depends on:
Blocks: 588474
 
 
Reported: 2009-08-04 20:12 UTC by Colin Walters
Modified: 2009-08-05 15:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add ShellGenericContainer, which makes it possible to write containers in JS (12.13 KB, patch)
2009-08-04 20:12 UTC, Colin Walters
reviewed Details | Review

Description Colin Walters 2009-08-04 20:12:14 UTC
Subclass ClutterGroup (to avoid having to implement all of dispose,
raise, lower, add, etc.), and have it proxy the allocation requests
out into signals.  We have to group up the two out parameters
into a struct unfortunately.

Included example code in the C file source for now.
Comment 1 Colin Walters 2009-08-04 20:12:17 UTC
Created attachment 139899 [details] [review]
Add ShellGenericContainer, which makes it possible to write containers in JS
Comment 2 Colin Walters 2009-08-04 20:14:32 UTC
*** Bug 590779 has been marked as a duplicate of this bug. ***
Comment 3 Dan Winship 2009-08-05 13:14:48 UTC
>+  ShellGenericContainerAllocation *alloc = g_new0 (ShellGenericContainerAllocation, 1);

gslice!

Looks good. Presumably it can be extended with more signals in the future for additional functionality?
Comment 4 Colin Walters 2009-08-05 15:40:31 UTC
Yep, should be straightforward to add more.  Thanks for review!