#NEWLINE# def mash_name_for_glib( name , joiner = '-' ) : #NEWLINE# #INDENT# res = '' #NEWLINE# for c in name : #NEWLINE# #INDENT# if c . isupper ( ) : #NEWLINE# #INDENT# res += ( joiner + c . lower ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res += c #NEWLINE# #UNINDENT# #UNINDENT# return res