[gtk+/gtk-2-24] docs: Fix gdk_pixmap_new arguments in tutorial
- From: William Jon McCann <mccann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-24] docs: Fix gdk_pixmap_new arguments in tutorial
- Date: Wed, 22 Jan 2014 06:11:36 +0000 (UTC)
commit 8e721922f116df1821361248164f1a5bd06c6c6e
Author: William Jon McCann <william jon mccann gmail com>
Date: Wed Jan 22 01:08:39 2014 -0500
docs: Fix gdk_pixmap_new arguments in tutorial
https://bugzilla.gnome.org/show_bug.cgi?id=708119
docs/tutorial/gtk-tut.sgml | 26 ++++++++++++++------------
1 files changed, 14 insertions(+), 12 deletions(-)
---
diff --git a/docs/tutorial/gtk-tut.sgml b/docs/tutorial/gtk-tut.sgml
index d140cd0..d9a3b03 100755
--- a/docs/tutorial/gtk-tut.sgml
+++ b/docs/tutorial/gtk-tut.sgml
@@ -12721,18 +12721,20 @@ relevant portions onto the screen.</para>
<para>To create an offscreen pixmap, we call the function:</para>
<programlisting role="C">
-GdkPixmap* gdk_pixmap_new (GdkWindow *window,
- gint width,
- gint height,
- gint depth);
-</programlisting>
-
-<para>The <literal>window</literal> parameter specifies a GDK window that this pixmap
-takes some of its properties from. <literal>width</literal> and <literal>height</literal>
-specify the size of the pixmap. <literal>depth</literal> specifies the <emphasis>color
-depth</emphasis>, that is the number of bits per pixel, for the new window.
-If the depth is specified as <literal>-1</literal>, it will match the depth
-of <literal>window</literal>.</para>
+GdkPixmap* gdk_pixmap_new (GdkDrawable *drawable,
+ gint width,
+ gint height,
+ gint depth);
+</programlisting>
+
+<para>The <literal>drawable</literal> parameter specifies a GDK
+drawable (such as a GdkWindow) that this pixmap takes some of its
+properties from. <literal>width</literal>
+and <literal>height</literal> specify the size of the
+pixmap. <literal>depth</literal> specifies the <emphasis>color
+depth</emphasis>, that is the number of bits per pixel, for the new
+window. If the depth is specified as <literal>-1</literal>, it will
+match the depth of <literal>drawable</literal>.</para>
<para>We create the pixmap in our "configure_event" handler. This event
is generated whenever the window changes size, including when it
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]