Update easybuttons.py

Solving for bug: https://bugs.launchpad.net/linuxmint/+bug/1266751
This commit is contained in:
VitalD 2014-02-18 17:33:18 +03:00
parent 0feb06e795
commit c2c0e5fae2

View File

@ -278,7 +278,7 @@ class ApplicationLauncher( easyButton ):
icon = self.getIcon( Gtk.IconSize.DND )
if icon:
iconName, s = icon.get_icon_name()
c = c_char_p(iconName.encode('ascii', 'ignore'))
c = c_char_p(iconName.decode('utf-8', 'ignore').encode('ascii', 'ignore'))
gtk.gtk_drag_source_set_icon_name( hash(self), c)
self.connectSelf( "focus-in-event", self.onFocusIn )