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 579747 - Implement 'desktop contexts' framework
Implement 'desktop contexts' framework
Status: RESOLVED WONTFIX
Product: gnome-shell
Classification: Core
Component: extensions
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
: 608856 650867 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2009-04-21 16:38 UTC by Milan Bouchet-Valat
Modified: 2013-05-24 15:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Required patch against metacity-clutter (4.44 KB, patch)
2009-04-21 16:40 UTC, Milan Bouchet-Valat
none Details | Review
New patch for metacity-clutter (7.70 KB, patch)
2009-04-22 22:08 UTC, Milan Bouchet-Valat
needs-work Details | Review

Description Milan Bouchet-Valat 2009-04-21 16:38:48 UTC
I've committed base code for that framework here:
http://www.gitorious.org/projects/gnome-shell/repos/mainline/logs/activities

For now, there's no GUI. Activities are ShellActivity structs, managed by a ShellActivities object, with properties like their int ID, their name and associated workspaces. You can create/remove them, or set them as current (when their workspace is active), a timestamp allows to track misalignments. Everything is stored in GConf. The current implementation actually follows the design I explained in http://live.gnome.org/GnomeShell/Activities.

Updating activities when workspaces change requires the attached patch against metacity-clutter. It's quite trivial, even if it's a little more complex than my previous version, because this has to be watched from both screen and workspaces objects.

Next step should be to add controls so that you can associate activities to a workspace. My present plan is to add a list under the workspaces in the overlay. Clicking on an activity would start it in a new workspace, and drag-dropping it to an existing workspace would associate them. But that's only an idea...

Comments welcome.
Comment 1 Milan Bouchet-Valat 2009-04-21 16:40:15 UTC
Created attachment 133055 [details] [review]
Required patch against metacity-clutter

The patch is required for things to "work", but if it's not present you will only get a runtime warning for invalid signals.
Comment 2 Milan Bouchet-Valat 2009-04-22 22:08:20 UTC
Created attachment 133151 [details] [review]
New patch for metacity-clutter

The old one was actually missing a marshal function. I had to modify autoconf.in and Automake.am to use GLib marshal feature. Surprising that it wasn't present yet...
Comment 3 Milan Bouchet-Valat 2009-05-28 23:20:29 UTC
After discussing with Jon McCann, we agreed a more obvious name had to be chosen for that concept, before we get completely confused, in debates and in the code. So I've proposed Desktop contexts, which seems to be more explicit. Code updates should follow.
Comment 4 Milan Bouchet-Valat 2009-05-29 11:14:04 UTC
Renaming is done, the branch is now http://www.gitorious.org/gnome-shell/mainline/commits/desktop-contexts. You can get it with:
git remote add -f gitorious git://gitorious.org/gnome-shell/mainline.git
git checkout gitorious/desktop-contexts
Comment 5 Dan Winship 2010-01-20 22:15:46 UTC
(bugzilla spam: populating the new "extensions" component with bugs discussing features that are not part of the core spec, but could be implemented externally once the extension system is done.)
Comment 6 Milan Bouchet-Valat 2010-02-08 21:00:30 UTC
*** Bug 608856 has been marked as a duplicate of this bug. ***
Comment 7 Owen Taylor 2010-11-14 21:52:56 UTC
Comment on attachment 133151 [details] [review]
New patch for metacity-clutter

Marking patch needs-work since it would clearly not apply to the current code.
Comment 8 Milan Bouchet-Valat 2011-06-01 09:24:17 UTC
*** Bug 650867 has been marked as a duplicate of this bug. ***
Comment 9 Florian Müllner 2013-05-24 15:49:10 UTC
I'll tentatively close this - the extensions component is used for bugs against gnome-shell-extensions nowadays, and I doubt potential extension authors will browse bugzilla for ideas. Also it doesn't look like anyone has put any work into this in four years ...