aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-01-25 09:20:23 +0000
committernyamatongwe <unknown>2004-01-25 09:20:23 +0000
commitfca473b420ba29dc97136d63c7b862a7f1e2057b (patch)
tree8ca7892d841407e954ea70f94c54ef3a055172b3
parentb6249fbd78a4baf646d21d539b7980b9c19dd2b5 (diff)
downloadscintilla-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.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) {