]> Pileus Git - ~andy/gtk/commitdiff
minor fixes
authorGMT 2002 Tony Gale <gale@gtk.org>
Sat, 7 Dec 2002 14:48:08 +0000 (14:48 +0000)
committerTony Gale <gale@src.gnome.org>
Sat, 7 Dec 2002 14:48:08 +0000 (14:48 +0000)
Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>

        * docs/tutorial/gtk-tut.sgml: minor fixes

        * examples/pixmap: don't use deprecated function

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/tutorial/gtk-tut.sgml
examples/pixmap/Makefile
examples/pixmap/pixmap.c

index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index d18a82f1ac69e31d473033351e5a154c0d3da75d..37201097f54896c646ffad8051a553e32025123e 100644 (file)
@@ -1,3 +1,9 @@
+Sat Dec  7 14:45:50 GMT 2002  Tony Gale <gale@gtk.org>
+
+       * docs/tutorial/gtk-tut.sgml: minor fixes
+
+       * examples/pixmap: don't use deprecated function
+
 Fri Dec  6 19:00:59 2002  Owen Taylor  <otaylor@redhat.com>
 
        * demos/gtk-demo/testview.c tests/testgtk.c
index 6b0fee39b2b4c63567fda1dd39776f5ba2dfc6c6..1e5a5d2a8cc2b7b23577c1c141a8c252f8bcb3df 100755 (executable)
@@ -5,7 +5,7 @@
 <book id="gtk-tut">
 
 <bookinfo>
-    <date>October 27, 2002</date>
+    <date>December 7, 2002</date>
     <title>GTK+ 2.0 Tutorial</title>
     <authorgroup>
       <author>
 
 <para>A copy of this tutorial in SGML and HTML is distributed with each
 source code release of GTK+. For binary distributions, please check with
-you vendor.</para>
+your vendor.</para>
 
 <para>A copy is available online for reference at <ulink 
-url="http://www.gtk.org/tutorial">http://www.gtk.org/tutorial</ulink>.</para>
+url="http://www.gtk.org/tutorial/">http://www.gtk.org/tutorial</ulink>.</para>
 
 <para>A packaged verion of this tutorial is available from
-<ulink url="ftp://ftp.gtk.org/pub/gtk/tutorial">
+<ulink url="ftp://ftp.gtk.org/pub/gtk/tutorial/">
 ftp://ftp.gtk.org/pub/gtk/tutorial</ulink> which contains the tutorial in
 various different formats. This
 package is primary for those people wanting to have the tutorial
@@ -1307,7 +1307,7 @@ it. Compile it yourself and play with it.</para>
 <title>Packing Demonstration Program</title>
 
 <programlisting role="C">
-<!-- example-start packbox packbox.c -->
+/* example-start packbox packbox.c */
 
 #include &lt;stdio.h&gt;
 #include &lt;stdlib.h&gt;
@@ -8806,7 +8806,7 @@ static GtkItemFactoryEntry entries[] = {
   { "/File/tear1",    NULL,      NULL,         0, "&lt;Tearoff&gt;" },
   { "/File/_New",     "&lt;CTRL&gt;N", new_file,     1, "&lt;Item&gt;" },
   { "/File/_Open...", "&lt;CTRL&gt;O", open_file,    1, "&lt;Item&gt;" },
-  { "/File/sep1",     NULL,      NULL,         0, "&lt;Seperator&gt;" },
+  { "/File/sep1",     NULL,      NULL,         0, "&lt;Separator&gt;" },
   { "/File/_Quit",    "&lt;CTRL&gt;Q", quit_program, 0, "&lt;Item&gt;"} };
 </programlisting>
 </sect3>
@@ -8927,10 +8927,10 @@ section.</para>
 <para>Here is an example using the GTK item factory.</para>
 
 <programlisting role="C">
-/* example-start menu itemfactory.c */
+<!-- example-start menu itemfactory.c -->
 
-#include &amp;lt;gtk/gtk.h&amp;gt;
-#include &amp;lt;strings.h&amp;gt;
+#include &lt;gtk/gtk.h&gt;
+#include &lt;strings.h&gt;
 
 /* Obligatory basic callback */
 static void print_hello( GtkWidget *w,
index 34c625ed6d750790903fd10c1afdf93ac51233cc..3df817098d3bad6a2af12729a7d532537245e002 100644 (file)
@@ -1,13 +1,11 @@
 
 CC = gcc
 
-#CFLAGS = -Wall                                \
-#      -DG_DISABLE_DEPRECATED          \
-#      -DGDK_DISABLE_DEPRECATED        \
-#      -DGDK_PIXBUF_DISABLE_DEPRECATED \
-#      -DGTK_DISABLE_DEPRECATED
-
-CFLAGS =
+CFLAGS = -Wall                         \
+       -DG_DISABLE_DEPRECATED          \
+       -DGDK_DISABLE_DEPRECATED        \
+       -DGDK_PIXBUF_DISABLE_DEPRECATED \
+       -DGTK_DISABLE_DEPRECATED
 
 pixmap: pixmap.c 
        $(CC) pixmap.c -o pixmap $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`
index 7707a64ce3cb20c2fb71d9b7690c8f1fdeb6c999..af6a29024b6dd00dc99574c6fcd6d4decf31777d 100644 (file)
@@ -69,7 +69,7 @@ int main( int   argc,
                                            (gchar **)xpm_data);
 
     /* a pixmap widget to contain the pixmap */
-    pixmapwid = gtk_pixmap_new (pixmap, mask);
+    pixmapwid = gtk_image_new_from_pixmap (pixmap, mask);
     gtk_widget_show (pixmapwid);
 
     /* a button to contain the pixmap widget */