Proposed patch for "Bug 399018 - Notes entry pane does not wrap text"



Hello list,

Just posting my proposed patch for this bug:
http://bugzilla.gnome.org/show_bug.cgi?id=399018

It changes the horizontal scrollbar policy for the "Notes" scroll window
to automatic, which fixes the problem of text not wrapping properly.
This also has the effect of producing a horizontal scrollbar when a word
is larger than the visible area, for both the Notes dialog and Notes
sidebar item - currently, such a word triggers this bug in the dialog,
and in the sidebar item text floats off into space with no scrollbar.


--- a/src/nautilus-notes-viewer.c 
+++ b/src/nautilus-notes-viewer.c 
@@ -328,7 +328,7 @@
         gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW
(details->note_text_field),
                                      GTK_WRAP_WORD);
 	gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sidebar),
-					GTK_POLICY_NEVER,
+					GTK_POLICY_AUTOMATIC,
 					GTK_POLICY_AUTOMATIC);
 	gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sidebar),
                                              GTK_SHADOW_IN);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]