From 85133b2c442889a14fe86037a22d18f69e8e1e96 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 10 Dec 2007 22:18:46 +0000 Subject: Use gtk_widget_get_parent_window() instead of widget->parent->window. * docs/tutorial/gtk-tut.sgml: Use gtk_widget_get_parent_window() instead of widget->parent->window. svn path=/trunk/; revision=19152 --- docs/tutorial/gtk-tut.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/tutorial/gtk-tut.sgml') diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml index aab6305983..9fc39c1695 100755 --- a/docs/tutorial/gtk-tut.sgml +++ b/docs/tutorial/gtk-tut.sgml @@ -2851,7 +2851,7 @@ values set to 0.0 (which isn't very useful in this case). In order to avoid confusing yourself, you probably want to create your adjustment with a page_size of 0.0 so that its upper value actually corresponds to the highest -value the user can select. The _new_with_range() variants take care of creating +value the user can select. The _new_with_range()�variants take care of creating a suitable adjustment. (If you're already thoroughly confused, read the section on Adjustments again for an explanation of what exactly adjustments do and how to create and @@ -5519,7 +5519,7 @@ example code. /* - * Copyright (C) 1998 Cesar Miquel, Shawn T. Amundson, Mattias Grönlund + * Copyright (C) 1998 Cesar Miquel, Shawn T. Amundson, Mattias Gr�nlund * Copyright (C) 2000 Tony Gale * * This program is free software; you can redistribute it and/or modify @@ -11943,7 +11943,7 @@ gtk_dial_realize (GtkWidget *widget) attributes.colormap = gtk_widget_get_colormap (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); + widget->window = gdk_window_new (gtk_widget_get_parent_window (widget), &attributes, attributes_mask); widget->style = gtk_style_attach (widget->style, widget->window); -- cgit v1.2.1