diff --git a/src/ChangeLog b/src/ChangeLog index bce857cd4..5a955910c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2002-08-24 Pavel Roskin + * dlg.c (x_set_dialog_title): Force uniform spacing. + From Andrew Borodin + * utilunix.c (check_error_pipe): Check error_pipe[0], not stdout. From Pavel Tsekov diff --git a/src/dlg.c b/src/dlg.c index e35b59d2a..9bf45f4f5 100644 --- a/src/dlg.c +++ b/src/dlg.c @@ -974,8 +974,10 @@ int dlg_select_nth_widget (Dlg_head *h, int n) } void -x_set_dialog_title (Dlg_head *h, const char *title) +x_set_dialog_title (Dlg_head * h, const char *title) { - h->title = g_strdup (title); + char *t = g_strstrip (g_strdup (title)); + h->title = g_strconcat (" ", t, " ", NULL); + g_free (t); }