diff options
author | nyamatongwe <unknown> | 2004-01-25 09:20:23 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2004-01-25 09:20:23 +0000 |
commit | fca473b420ba29dc97136d63c7b862a7f1e2057b (patch) | |
tree | 8ca7892d841407e954ea70f94c54ef3a055172b3 | |
parent | b6249fbd78a4baf646d21d539b7980b9c19dd2b5 (diff) | |
download | scintilla-mirror-fca473b420ba29dc97136d63c7b862a7f1e2057b.tar.gz |
Patch from John Ehresman to avoid gdk warnings because of
unbalanced reference counts on widget style.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 06867623d..600a2ed3e 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -332,6 +332,7 @@ void ScintillaGTK::RealizeThis(GtkWidget *widget) { gdk_window_set_background(widget->window, &widget->style->bg[GTK_STATE_NORMAL]); gdk_window_show(widget->window); gdk_cursor_destroy(cursor); + widget->style = gtk_style_attach(widget->style, widget->window); #ifdef INTERNATIONAL_INPUT #if GTK_MAJOR_VERSION < 2 if (gdk_im_ready() && (ic_attr = gdk_ic_attr_new()) != NULL) { |