diff options
author | GMT 2002 Tony Gale <gale@gtk.org> | 2002-12-07 14:48:08 +0000 |
---|---|---|
committer | Tony Gale <gale@src.gnome.org> | 2002-12-07 14:48:08 +0000 |
commit | 47ebb9739af03b8ec8e2677fd3249303838c6035 (patch) | |
tree | 183ebd212b21a4b737ddcd5732f66e27d903bd10 /examples/pixmap | |
parent | 105434ae4f4e774f40679325a55c45bd624e0a91 (diff) | |
download | gtk+-47ebb9739af03b8ec8e2677fd3249303838c6035.tar.gz |
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
Diffstat (limited to 'examples/pixmap')
-rw-r--r-- | examples/pixmap/Makefile | 12 | ||||
-rw-r--r-- | examples/pixmap/pixmap.c | 2 |
2 files changed, 6 insertions, 8 deletions
diff --git a/examples/pixmap/Makefile b/examples/pixmap/Makefile index 34c625ed6d..3df817098d 100644 --- a/examples/pixmap/Makefile +++ b/examples/pixmap/Makefile @@ -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` diff --git a/examples/pixmap/pixmap.c b/examples/pixmap/pixmap.c index 7707a64ce3..af6a29024b 100644 --- a/examples/pixmap/pixmap.c +++ b/examples/pixmap/pixmap.c @@ -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 */ |