Escape room name for gtk/pango
This commit is contained in:
parent
9b4b19f1df
commit
c810c61c41
1 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
||||||
##
|
##
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
import time
|
import time
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
|
@ -1034,9 +1035,10 @@ class GroupchatControl(ChatControlBase):
|
||||||
sectext = _('If you close this window, you will be disconnected '
|
sectext = _('If you close this window, you will be disconnected '
|
||||||
'from this room.')
|
'from this room.')
|
||||||
|
|
||||||
|
escaped_name = re.subn("_", "__", self.name)[0]
|
||||||
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,
|
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,
|
||||||
_('Do _not ask me about closing "%s" again' %\
|
_('Do _not ask me about closing "%s" again' %\
|
||||||
self.name))
|
escaped_name))
|
||||||
|
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
retval = False
|
retval = False
|
||||||
|
|
Loading…
Add table
Reference in a new issue