aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-01-25 09:20:23 +0000
committernyamatongwe <devnull@localhost>2004-01-25 09:20:23 +0000
commit7e76966f049eb73e2ee7922bf2b0d8f552810604 (patch)
tree8ca7892d841407e954ea70f94c54ef3a055172b3
parent2517cb60256f7acc7caad759a7723a2256247c65 (diff)
downloadscintilla-mirror-7e76966f049eb73e2ee7922bf2b0d8f552810604.tar.gz
Patch from John Ehresman to avoid gdk warnings because of
unbalanced reference counts on widget style.
-rw-r--r--gtk/ScintillaGTK.cxx1
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) {