@ -49,7 +49,7 @@ import gettext
from gi . repository import Gtk
from gi . repository import Gtk
from gi . repository import GObject
from gi . repository import GObject
from gi . repository import Pango
from gi . repository import GLib
import math
import math
from sugar3 . graphics import style
from sugar3 . graphics import style
@ -346,9 +346,6 @@ class _TimeoutIcon(Gtk.Alignment):
self . set_app_paintable ( True )
self . set_app_paintable ( True )
self . _text = Gtk . Label ( )
self . _text = Gtk . Label ( )
self . _text . set_alignment ( 0.5 , 0.5 )
self . _text . set_alignment ( 0.5 , 0.5 )
attrlist = Pango . AttrList ( )
attrlist . insert ( Pango . AttrWeight ( Pango . Weight . BOLD ) )
self . _text . set_attributes ( attrlist )
self . add ( self . _text )
self . add ( self . _text )
self . _text . show ( )
self . _text . show ( )
self . connect ( ' draw ' , self . __draw_cb )
self . connect ( ' draw ' , self . __draw_cb )
@ -375,7 +372,7 @@ class _TimeoutIcon(Gtk.Alignment):
context . fill_preserve ( )
context . fill_preserve ( )
def set_text ( self , text ) :
def set_text ( self , text ) :
self . _text . set_ text( str ( text ) )
self . _text . set_ markup( ' <b> %s </b> ' % GLib . markup_escape_ text( str ( text ) ) )
class TimeoutAlert ( Alert ) :
class TimeoutAlert ( Alert ) :