From 7727fa6e8a8a02718f07df9d886218e2c21a24e9 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Sat, 11 May 2013 13:43:18 -0400 Subject: [PATCH] Fix icon name encoding error when converting to ctypes --- usr/lib/linuxmint/mintMenu/plugins/easybuttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 5eb4dbd..2bac34c 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -285,7 +285,7 @@ class ApplicationLauncher( easyButton ): del icon else: if self.iconName: - c = c_char_p(self.iconName) + c = c_char_p(self.iconName.encode('ascii', 'ignore')) gtk.gtk_drag_source_set_icon_name( hash(self), c) self.connectSelf( "focus-in-event", self.onFocusIn ) @@ -408,7 +408,7 @@ class ApplicationLauncher( easyButton ): del icon else: if self.iconName: - c = c_char_p(self.iconName) + c = c_char_p(self.iconName.encode('ascii', 'ignore')) gtk.gtk_drag_source_set_icon_name( hash(self), c) def startupFileChanged( self, *args ):