aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 21:35:41 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2012-05-24 21:35:41 +0000
commit373e0925f3d809e948651f9239c111034ef17920 (patch)
treed40cf043ba4a0a1701d30801c0daac815d82b702 /ui
parent9ea08d6b122297c163f9100bdcc589aa4fad4a46 (diff)
Enable word wrapping for capture-file comments.
svn path=/trunk/; revision=42835
Diffstat (limited to 'ui')
-rw-r--r--ui/gtk/edit_packet_comment_dlg.c3
-rw-r--r--ui/gtk/summary_dlg.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/ui/gtk/edit_packet_comment_dlg.c b/ui/gtk/edit_packet_comment_dlg.c
index 2349d4f692..2549442400 100644
--- a/ui/gtk/edit_packet_comment_dlg.c
+++ b/ui/gtk/edit_packet_comment_dlg.c
@@ -171,8 +171,6 @@ edit_packet_comment_dlg (GtkAction *action _U_, gpointer data _U_)
gtk_widget_show (edit_or_add_pkt_comment_dlg);
-
-
}
static void
@@ -213,6 +211,7 @@ edit_capture_dlg_launch (void)
gtk_widget_show (vbox);
view = gtk_text_view_new ();
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
/* Get the comment */
diff --git a/ui/gtk/summary_dlg.c b/ui/gtk/summary_dlg.c
index 2900ee7410..c23f239314 100644
--- a/ui/gtk/summary_dlg.c
+++ b/ui/gtk/summary_dlg.c
@@ -270,6 +270,7 @@ summary_open_cb(GtkWidget *w _U_, gpointer d _U_)
gtk_widget_show (comment_vbox);
comment_view = gtk_text_view_new ();
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(comment_view), GTK_WRAP_WORD);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (comment_view));
if(summary.opt_comment == NULL) {
gtk_text_buffer_set_text (buffer, "", -1);