Enable word wrapping for capture-file comments.

svn path=/trunk/; revision=42835
This commit is contained in:
Jeff Morriss 2012-05-24 21:35:41 +00:00
parent 9ea08d6b12
commit 373e0925f3
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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);