comparison src/ui.h @ 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 4691c5936c01
children b8eafeb874a1
comparison
equal deleted inserted replaced
5104:a20a644e0da4 5105:4cfc49e31c2e
40 #include "stock.h" 40 #include "stock.h"
41 41
42 #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \ 42 #define GAIM_DIALOG(x) x = gtk_window_new(GTK_WINDOW_TOPLEVEL); \
43 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG) 43 gtk_window_set_type_hint(GTK_WINDOW(x), GDK_WINDOW_TYPE_HINT_DIALOG)
44 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED) 44 #define GAIM_WINDOW_ICONIFIED(x) (gdk_window_get_state(GTK_WIDGET(x)->window) & GDK_WINDOW_STATE_ICONIFIED)
45
46 /* This is backwards-compatibility code for old versions of GTK+ (2.2.1 and
47 * earlier). It defines the new wrap behavior (unknown in earlier versions)
48 * as the old (slightly buggy) wrap behavior.
49 */
50 #ifndef GTK_WRAP_WORD_CHAR
51 #define GTK_WRAP_WORD_CHAR GTK_WRAP_WORD
52 #endif
45 53
46 #define DEFAULT_FONT_FACE "Helvetica" 54 #define DEFAULT_FONT_FACE "Helvetica"
47 55
48 #define BROWSER_NETSCAPE 0 56 #define BROWSER_NETSCAPE 0
49 #define BROWSER_KONQ 1 57 #define BROWSER_KONQ 1