by
Changes to one file · Browse files at 8f0bc3015998 Showing diff from parent 656abc4710e5 ba19c0fdb0e4 Diff from another changeset...
@@ -17,6 +17,9 @@ class CmdDialog(gtk.Dialog):
def __init__(self, cmdline, progressbar=True, width=520, height=400):
title = 'hg ' + ' '.join(cmdline[1:])
+ if len(title) > 80:
+ title = toutf(title[:80] + '...')
+ title = toutf(title.replace('\n', ' '))
gtk.Dialog.__init__(self,
title=title,
flags=gtk.DIALOG_MODAL,
@@ -50,8 +53,7 @@ hbox = gtk.HBox()
self.status_text = gtk.Label()
- text = toutf(' '.join(cmdline).replace('\n', ' '))
- self.status_text.set_text(text)
+ self.status_text.set_text(title)
self.status_text.set_alignment(0, 0.5)
self.status_text.set_ellipsize(pango.ELLIPSIZE_END)
hbox.pack_start(self.status_text, True, True, 3)
|
Loading...