indicator-workspaces icon indicating copy to clipboard operation
indicator-workspaces copied to clipboard

Cannot access the preferences when more than 9 workspaces are manually named

Open Dinduks opened this issue 9 years ago • 2 comments

Hi,

When I use gsettings set org.gnome.desktop.wm.preferences workspace-names to name more than 9 workspaces (e.g. with the "['1','2','3','4','5','6','7','8','9','10','11','12']" argument), trying to access the preferences triggers this error:

Traceback (most recent call last):
  File "./indicator-workspaces", line 67, in create_workspace_preferences
    self.workspaces_preferences
AttributeError: 'IndicatorWorkspaces' object has no attribute 'workspaces_preferences'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "./indicator-workspaces", line 69, in create_workspace_preferences
    self.workspaces_preferences = WorkspacesPreferences(self)
  File "./indicator-workspaces", line 186, in __init__
    self.entry_workspaces[index].set_text(workspace_name)
IndexError: list index out of range

Thank you.

Samy

Dinduks avatar May 01 '15 01:05 Dinduks

Thanks for the report! Easy fix but I am on holiday with limited internet for another week!

Pull request welcome otherwise I'll fix it when I'm back.

Thanks again!

dyson avatar May 09 '15 07:05 dyson

As far as I understand, the error occurs because no entry-workspace-N, where N > 9, is defined in the indicator-workspaces-preferences.glade file.
Since you say it's easy to fix, I'll let you do it because I don't wanna break anything! :smile:

Thank you!

Dinduks avatar May 09 '15 14:05 Dinduks