Index: widget/src/gtk2/gtk2drawing.c
===================================================================
RCS file: /cvsroot/mozilla/widget/src/gtk2/gtk2drawing.c,v
retrieving revision 1.21
diff -p -u -B -u -p -U10 -r1.21 gtk2drawing.c
--- widget/src/gtk2/gtk2drawing.c	13 Jul 2006 17:40:49 -0000	1.21
+++ widget/src/gtk2/gtk2drawing.c	8 Sep 2006 12:51:55 -0000
@@ -1232,21 +1232,21 @@ static gint
 moz_gtk_tooltip_paint(GdkDrawable* drawable, GdkRectangle* rect,
                       GdkRectangle* cliprect)
 {
     GtkStyle* style;
 
     ensure_tooltip_widget();
     style = gtk_rc_get_style_by_paths(gtk_settings_get_default(),
                                       "gtk-tooltips", "GtkWindow",
                                       GTK_TYPE_WINDOW);
 
-    gtk_style_attach(style, gTooltipWidget->window);
+    gTooltipWidget->style = gtk_style_attach(style, gTooltipWidget->window);
     TSOffsetStyleGCs(style, rect->x, rect->y);
     gtk_paint_flat_box(style, drawable, GTK_STATE_NORMAL, GTK_SHADOW_OUT,
                        cliprect, gTooltipWidget, "tooltip",
                        rect->x, rect->y, rect->width, rect->height);
 
     return MOZ_GTK_SUCCESS;
 }
 
 static gint
 moz_gtk_frame_paint(GdkDrawable* drawable, GdkRectangle* rect,
