Update easybuttons.py
Solving for bug: https://bugs.launchpad.net/linuxmint/+bug/1266751
This commit is contained in:
parent
0feb06e795
commit
c2c0e5fae2
@ -278,7 +278,7 @@ class ApplicationLauncher( easyButton ):
|
|||||||
icon = self.getIcon( Gtk.IconSize.DND )
|
icon = self.getIcon( Gtk.IconSize.DND )
|
||||||
if icon:
|
if icon:
|
||||||
iconName, s = icon.get_icon_name()
|
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)
|
gtk.gtk_drag_source_set_icon_name( hash(self), c)
|
||||||
|
|
||||||
self.connectSelf( "focus-in-event", self.onFocusIn )
|
self.connectSelf( "focus-in-event", self.onFocusIn )
|
||||||
|
Loading…
Reference in New Issue
Block a user