summaryrefslogtreecommitdiff
path: root/gtk/gtkvscrollbar.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>1997-12-18 02:17:14 +0000
committerOwen Taylor <otaylor@src.gnome.org>1997-12-18 02:17:14 +0000
commitd5d01a5af9aaa11762d7ba86760796df00af3786 (patch)
treec12bb7c7980b3177456cab8987755a976297b205 /gtk/gtkvscrollbar.c
parent65e63db01e93820093c2eb5169d5f8c0be3fe4e5 (diff)
downloadgdk-pixbuf-d5d01a5af9aaa11762d7ba86760796df00af3786.tar.gz
It's all in the changelog. Well, almost all.
-owt
Diffstat (limited to 'gtk/gtkvscrollbar.c')
-rw-r--r--gtk/gtkvscrollbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c
index f27261752..053131e65 100644
--- a/gtk/gtkvscrollbar.c
+++ b/gtk/gtkvscrollbar.c
@@ -146,7 +146,9 @@ gtk_vscrollbar_realize (GtkWidget *widget)
attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL | GDK_WA_COLORMAP;
widget->window = gdk_window_new (widget->parent->window, &attributes, attributes_mask);
+
range->trough = widget->window;
+ gdk_window_ref (range->trough);
attributes.x = widget->style->klass->xthickness;
attributes.y = widget->style->klass->ythickness;