enable wrapping so the text doesn't scroll out horizontally.

2008-02-11  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimptexteditor.c (gimp_text_editor_new): enable
	wrapping so the text doesn't scroll out horizontally.


svn path=/trunk/; revision=24861
This commit is contained in:
Michael Natterer
2008-02-11 17:02:50 +00:00
committed by Michael Natterer
parent 34ea5ae14f
commit 3c10d32272
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-02-11 Michael Natterer <mitch@gimp.org>
* app/widgets/gimptexteditor.c (gimp_text_editor_new): enable
wrapping so the text doesn't scroll out horizontally.
2008-02-11 Sven Neumann <sven@gimp.org>
* plug-ins/pygimp/plug-ins/pyconsole.py: formatting.

View File

@ -205,6 +205,8 @@ gimp_text_editor_new (const gchar *title,
gtk_widget_show (scrolled_window);
editor->view = gtk_text_view_new ();
gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (editor->view),
GTK_WRAP_WORD_CHAR);
gtk_container_add (GTK_CONTAINER (scrolled_window), editor->view);
gtk_widget_show (editor->view);