mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
minor fixes
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
This commit is contained in:
parent
105434ae4f
commit
47ebb9739a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
@ -34,13 +34,13 @@
|
||||
|
||||
<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 <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -8806,7 +8806,7 @@ static GtkItemFactoryEntry entries[] = {
|
||||
{ "/File/tear1", NULL, NULL, 0, "<Tearoff>" },
|
||||
{ "/File/_New", "<CTRL>N", new_file, 1, "<Item>" },
|
||||
{ "/File/_Open...", "<CTRL>O", open_file, 1, "<Item>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "<Seperator>" },
|
||||
{ "/File/sep1", NULL, NULL, 0, "<Separator>" },
|
||||
{ "/File/_Quit", "<CTRL>Q", quit_program, 0, "<Item>"} };
|
||||
</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 &lt;gtk/gtk.h&gt;
|
||||
#include &lt;strings.h&gt;
|
||||
#include <gtk/gtk.h>
|
||||
#include <strings.h>
|
||||
|
||||
/* Obligatory basic callback */
|
||||
static void print_hello( GtkWidget *w,
|
||||
|
@ -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`
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user