diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-16 23:52:30 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-02-16 23:52:30 +0000 |
commit | b3d5f148e6c0e2cb688403655c7800b762e33602 (patch) | |
tree | 1056439dd24e464adbabc5c374182a886c669345 /examples/pixmap | |
parent | 554838e4f602d59f5be241d1da188934d51d49c3 (diff) | |
download | gdk-pixbuf-b3d5f148e6c0e2cb688403655c7800b762e33602.tar.gz |
More work on #71430.
* examples/*/Makefile (CFLAGS): add deprecation guards.
* docs/tutorial/gtk-tut.sgml, examples/*/*.c: make most examples
deprecation-clean; the major offenders right now are the examples
that make heavy use of completely deprecated or broken widgets:
list, tree, text, pixmap, paned and progressbar. These will have
to be redone from scratch.
* demos/Makefile.am (INCLUDES): add -DGDK_PIXBUF_DISABLE_DEPRECATED.
Diffstat (limited to 'examples/pixmap')
-rw-r--r-- | examples/pixmap/Makefile | 10 | ||||
-rw-r--r-- | examples/pixmap/pixmap.c | 2 |
2 files changed, 9 insertions, 3 deletions
diff --git a/examples/pixmap/Makefile b/examples/pixmap/Makefile index 7e421f7cb..34c625ed6 100644 --- a/examples/pixmap/Makefile +++ b/examples/pixmap/Makefile @@ -1,8 +1,16 @@ CC = gcc +#CFLAGS = -Wall \ +# -DG_DISABLE_DEPRECATED \ +# -DGDK_DISABLE_DEPRECATED \ +# -DGDK_PIXBUF_DISABLE_DEPRECATED \ +# -DGTK_DISABLE_DEPRECATED + +CFLAGS = + pixmap: pixmap.c - $(CC) `pkg-config --cflags gtk+-2.0` pixmap.c -o pixmap `pkg-config --libs gtk+-2.0` + $(CC) pixmap.c -o pixmap $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs` clean: rm -f *.o pixmap diff --git a/examples/pixmap/pixmap.c b/examples/pixmap/pixmap.c index 8834c9e2b..71af08e58 100644 --- a/examples/pixmap/pixmap.c +++ b/examples/pixmap/pixmap.c @@ -1,4 +1,3 @@ -/* example-start pixmap pixmap.c */ #include <gtk/gtk.h> @@ -87,4 +86,3 @@ int main( int argc, return 0; } -/* example-end */ |