weslly / ColorPicker

Color picker for Sublime Text
http://weslly.github.io/ColorPicker
511 stars 108 forks source link

Update hexa color value seem broken - Linux / Debian Wheezy (Crunchbang) #73

Closed leNEKO closed 9 years ago

leNEKO commented 9 years ago

After color selection, the hex color value from the color picker is not sent to the editor. No error appears in the console.

Sublime build 3084 / Dev channel.

lapega commented 9 years ago

Happens the same to me on Ubuntu 14.04, ST 3083. Even if I copy or select the color in the picker window, closing the picker window will empty the clipboard.

leNEKO commented 9 years ago

Did some more investigation, the bug seems to come from the lib/linux_colorpicker.py which tell this

Traceback (most recent call last):
  File "/home/neko/.config/sublime-text-3/Packages/ColorPicker/lib/linux_colorpicker.py", line 27, in <module>
    if color_sel.run() == getattr(Gtk, 'RESPONSE_OK', Gtk.ResponseType.Ok):
AttributeError: type object 'GtkResponseType' has no attribute 'Ok'
tonjo commented 9 years ago

Found the error! In a previous commit Gtk.ResponseType.OK was changed into Gtk.ResponseType.Ok, with k in Ok lowercase. Change it back uppercase and voila ;)

leNEKO commented 9 years ago

nice, thank you