Mercurial > pidgin
comparison src/prefs.c @ 5105:4cfc49e31c2e
[gaim-migrate @ 5468]
David Brigada (jsi) writes:
" This patch changes GTK_WRAP_WORD to GTK_WRAP_WORD_CHAR
throughout the sources. That fixes a bug where long
single-word input into GtkTextViews and similar would
cause the textview to expand, causing the window to
expand. This fix depends on a patch to GTK+ that is in
current CVS but not yet released. To address the
backwards-compatibility issue, GTK_WRAP_WORD_CHAR is
#defined to GTK_WRAP_WORD when not defined by GTK+'s
header files.
The only problem I can forsee is binary compatibility;
if Gaim is compiled under a GTK+ CVS (or a future
release) environment, and then run under a GTK+ 2.2.1
or earlier environment, behavior is undefined; the text
area will probably not wrap at all. However, source
compatibility is maintained."
basically, gaim will start wrapping text in any version of gtk2 that supports it,
and should work exactly the same in any version that still has the bug.
many thanks to David for his hard work.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 11 Apr 2003 04:23:55 +0000 |
parents | a96653493416 |
children | fefad67de2c7 |
comparison
equal
deleted
inserted
replaced
5104:a20a644e0da4 | 5105:4cfc49e31c2e |
---|---|
1896 GTK_POLICY_ALWAYS); | 1896 GTK_POLICY_ALWAYS); |
1897 | 1897 |
1898 dw->entry = gtk_text_view_new(); | 1898 dw->entry = gtk_text_view_new(); |
1899 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(dw->entry), FALSE); | 1899 gtk_text_view_set_cursor_visible(GTK_TEXT_VIEW(dw->entry), FALSE); |
1900 gtk_text_view_set_editable(GTK_TEXT_VIEW(dw->entry), FALSE); | 1900 gtk_text_view_set_editable(GTK_TEXT_VIEW(dw->entry), FALSE); |
1901 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(dw->entry), GTK_WRAP_WORD); | 1901 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(dw->entry), GTK_WRAP_WORD_CHAR); |
1902 | 1902 |
1903 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(dw->entry)); | 1903 buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(dw->entry)); |
1904 gtk_text_buffer_get_end_iter(buffer, &end); | 1904 gtk_text_buffer_get_end_iter(buffer, &end); |
1905 gtk_text_buffer_create_mark(buffer, "end", &end, FALSE); | 1905 gtk_text_buffer_create_mark(buffer, "end", &end, FALSE); |
1906 | 1906 |