Escape room name for gtk/pango

This commit is contained in:
Travis Shirk 2006-02-05 00:18:09 +00:00
parent 9b4b19f1df
commit c810c61c41
1 changed files with 3 additions and 1 deletions

View File

@ -21,6 +21,7 @@
##
import os
import re
import time
import gtk
import gtk.glade
@ -1034,9 +1035,10 @@ class GroupchatControl(ChatControlBase):
sectext = _('If you close this window, you will be disconnected '
'from this room.')
escaped_name = re.subn("_", "__", self.name)[0]
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,
_('Do _not ask me about closing "%s" again' %\
self.name))
escaped_name))
if dialog.get_response() != gtk.RESPONSE_OK:
retval = False