Don't use set_markup when it's not necessary, use set_text

This commit is contained in:
Michael Webster 2013-03-18 18:50:56 -04:00
parent cb524d5d79
commit b193600595

View File

@ -11,7 +11,6 @@ from execute import *
import xdg.DesktopEntry import xdg.DesktopEntry
import xdg.Menu import xdg.Menu
from filemonitor import monitor as filemonitor from filemonitor import monitor as filemonitor
import glib
import ctypes import ctypes
from ctypes import * from ctypes import *
@ -179,7 +178,7 @@ class easyButton( Gtk.Button ):
if "<b>" in text or "<span" in text: if "<b>" in text or "<span" in text:
label.set_markup(text) # don't remove our pango label.set_markup(text) # don't remove our pango
else: else:
label.set_markup(glib.markup_escape_text(text)) label.set_text(text)
if styles: if styles:
labelStyle = Pango.AttrList() labelStyle = Pango.AttrList()