Commit 2a573943 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

replace newlines with spaces to avoid multiple lines in the combo box.

2005-10-20  Sven Neumann  <sven@gimp.org>

	* plug-ins/helpbrowser/dialog.c (title_changed): replace newlines
	with spaces to avoid multiple lines in the combo box.
parent 1616a01a
2005-10-20 Sven Neumann <sven@gimp.org>
* plug-ins/helpbrowser/dialog.c (title_changed): replace newlines
with spaces to avoid multiple lines in the combo box.
2005-10-20 Sven Neumann <sven@gimp.org>
* app/tools/gimpforegroundselectoptions.[ch]
......
......@@ -819,7 +819,17 @@ title_changed (HtmlDocument *doc,
if (new_title)
{
title = g_strstrip (g_strdup (new_title));
gchar *c;
title = g_strdup (new_title);
for (c = title; *c; c++)
{
if (*c == '\n' || *c == '\r')
*c = ' ';
}
title = g_strstrip (title);
if (! strlen (title))
{
g_free (title);
......@@ -827,8 +837,8 @@ title_changed (HtmlDocument *doc,
}
}
history_add (GTK_COMBO_BOX (data), current_uri,
title ? title : _("Untitled"));
history_add (GTK_COMBO_BOX (data),
current_uri, title ? title : _("Untitled"));
if (title)
queue_set_title (queue, title);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment