[balsa] Use GTK_WRAP_WORD_CHAR so that over-long words do not force over-wide window
- From: Peter Bloomfield <PeterB src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [balsa] Use GTK_WRAP_WORD_CHAR so that over-long words do not force over-wide window
- Date: Wed, 19 Aug 2009 22:49:02 +0000 (UTC)
commit fde9bc45fce35adb897f8156f931f8a2ecedfd77
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Aug 19 18:48:19 2009 -0400
Use GTK_WRAP_WORD_CHAR so that over-long words do not force over-wide window
ChangeLog | 9 +++++++++
src/balsa-mime-widget-message.c | 2 +-
src/balsa-mime-widget-text.c | 2 +-
src/balsa-mime-widget-vcalendar.c | 2 +-
4 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 89463dd..6c1d179 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-08-19 Peter Bloomfield
+
+ * src/balsa-mime-widget-message.c (bm_header_widget_new): use
+ GTK_WRAP_WORD_CHAR so that over-long words do not force
+ over-wide window.
+ * src/balsa-mime-widget-text.c (balsa_mime_widget_new_text):
+ ditto.
+ * src/balsa-mime-widget-vcalendar.c: ditto.
+
2009-08-11 Peter Bloomfield
* src/balsa-print-object-header.c (header_add_list): do not
diff --git a/src/balsa-mime-widget-message.c b/src/balsa-mime-widget-message.c
index e234e03..466ec8a 100644
--- a/src/balsa-mime-widget-message.c
+++ b/src/balsa-mime-widget-message.c
@@ -500,7 +500,7 @@ bm_header_widget_new(BalsaMessage * bm, GtkWidget * buttons)
gtk_text_view_set_editable(view, FALSE);
gtk_text_view_set_left_margin(view, BMW_HEADER_MARGIN_LEFT);
gtk_text_view_set_right_margin(view, BMW_HEADER_MARGIN_RIGHT);
- gtk_text_view_set_wrap_mode(view, GTK_WRAP_WORD);
+ gtk_text_view_set_wrap_mode(view, GTK_WRAP_WORD_CHAR);
buffer = gtk_text_view_get_buffer(view);
diff --git a/src/balsa-mime-widget-text.c b/src/balsa-mime-widget-text.c
index 8ee306e..9005738 100644
--- a/src/balsa-mime-widget-text.c
+++ b/src/balsa-mime-widget-text.c
@@ -230,7 +230,7 @@ balsa_mime_widget_new_text(BalsaMessage * bm, LibBalsaMessageBody * mime_body,
gtk_text_view_set_editable(GTK_TEXT_VIEW(mw->widget), FALSE);
gtk_text_view_set_left_margin(GTK_TEXT_VIEW(mw->widget), 2);
gtk_text_view_set_right_margin(GTK_TEXT_VIEW(mw->widget), 15);
- gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(mw->widget), GTK_WRAP_WORD);
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(mw->widget), GTK_WRAP_WORD_CHAR);
/* set the message font */
bm_modify_font_from_string(mw->widget, balsa_app.message_font);
diff --git a/src/balsa-mime-widget-vcalendar.c b/src/balsa-mime-widget-vcalendar.c
index b2cb5b9..885ccb0 100644
--- a/src/balsa-mime-widget-vcalendar.c
+++ b/src/balsa-mime-widget-vcalendar.c
@@ -149,7 +149,7 @@ balsa_mime_widget_new_vcalendar(BalsaMessage * bm,
gtk_text_buffer_set_text(tbuf, text, -1); \
tview = gtk_text_view_new_with_buffer(tbuf); \
gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(tview), \
- GTK_WRAP_WORD); \
+ GTK_WRAP_WORD_CHAR); \
gtk_table_attach(table, tview, 1, 2, row, row + 1, \
GTK_FILL|GTK_EXPAND, GTK_FILL|GTK_EXPAND, \
4, 2); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]