Red Hat Bugzilla – Bug 752573
gnome-shell-extension-workspace-indicator display incorrect
Last modified: 2011-12-22 22:26:38 EST
Created attachment 532681 [details]
Corrects confusing button and menu display.
Description of problem:
The extension's display in the panel and menu conflict when no application is open after the first time an application has been opened and then closed.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Login. "Workspace 1" is displayed in the Panel. Click the extension on the panel; it displays "Workspace 1" in the menu as active.
2. Open an application. "Workspace 1" is displayed in the Panel. Click the extension on the panel; it displays "Workspace 1" in the menu as active and displays "Workspace 2".
3. Close the application. "Workspace 2" is displayed in the Panel. Click the extension on the panel; it displays "Workspace 1" ONLY in the menu and as not active.
4. Open an application. Workspace 1" is displayed in the Panel. Click the extension on the panel; it displays "Workspace 1" in the menu as active and "Workspace 2" as in step 2.
The display on the panel and the entry displayed in the menu are inconsistent and incorrect. Only one workspace exists and references to workspaces 1 and 2 are displayed.
The panel display and the menu should appear the same as at login when the last application is closed in workspace 1 and there are no other applications open in other workspaces.
global.screen.get_active_workspace().index() is returning 1 when global.screen.n_workspaces is 1 when closing an application leaves no applications open in any workspace. This appears to not be a problem except when global.screen.get_active_workspace().index() is used during construction of the indicator's button and menu as described above. Logically when the workspace 1 (index 0) is deleted upon closing its last application; workspace 2 (index 1) may be considered the active workspace and is correct if it has an open application. In fact when another application is opened workspace 2 becomes workspace 1. From a human factors standpoint if you only have one workspace it should be workspace one.
Created attachment 536009 [details]
Updated patch to 3.2.0-2
Today gnome-shell-extensions-3.2.0-2.fc16 came down as an update and returned my workspace-indicator extension to the same broken state originally reported.
I have attached an updated patch made with sources from gnome-shell-extensions-3.2.0-2.fc16.src.rpm.
Please note I made a minor change in the way the workspace is indicated on the panel. It appears more in accord with the appearance of the other items displayed on the panel.
Did you ever report the bug upstream? If yes, could you provide the bug number in the GNOME bug tracker?
I did not report the bug upstream to the gnome bugzilla.
If you prefer that I report it upstream I will do so, just let me know. I re-installed the extension and tested today to be sure it still has the problem. It is still broken.
In the gnome shell repository for the extensions (git://git.gnome.org/gnome-shell-extensions) I found the bug I reported here has been corrected. The extension in the repository displays the active workspace correctly.
I opened Gnome Bugzilla - Bug # 666033 (with a patch) requesting an enhancement to save panel space. The patch simply changes the extension to remove the word "Workspace" from the panel display and adds a light gray background to high-light the active workspace number on the panel.
gnome-shell-extensions-3.2.3-1.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gnome-shell-extensions-3.2.3-1.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
gnome-shell-extensions-3.2.3-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.