summaryrefslogtreecommitdiff
path: root/examples/label
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2002-02-16 23:52:30 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2002-02-16 23:52:30 +0000
commitb3d5f148e6c0e2cb688403655c7800b762e33602 (patch)
tree1056439dd24e464adbabc5c374182a886c669345 /examples/label
parent554838e4f602d59f5be241d1da188934d51d49c3 (diff)
downloadgtk+-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/label')
-rw-r--r--examples/label/Makefile8
-rw-r--r--examples/label/label.c6
2 files changed, 9 insertions, 5 deletions
diff --git a/examples/label/Makefile b/examples/label/Makefile
index 3cf6d95736..f59b4bb1d1 100644
--- a/examples/label/Makefile
+++ b/examples/label/Makefile
@@ -1,8 +1,14 @@
CC = gcc
+CFLAGS = -Wall \
+ -DG_DISABLE_DEPRECATED \
+ -DGDK_DISABLE_DEPRECATED \
+ -DGDK_PIXBUF_DISABLE_DEPRECATED \
+ -DGTK_DISABLE_DEPRECATED
+
label: label.c
- $(CC) `pkg-config --cflags gtk+-2.0` label.c -o label `pkg-config --libs gtk+-2.0`
+ $(CC) label.c -o label $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs`
clean:
rm -f *.o label
diff --git a/examples/label/label.c b/examples/label/label.c
index 5711a4c98f..66420166ae 100644
--- a/examples/label/label.c
+++ b/examples/label/label.c
@@ -1,4 +1,3 @@
-/* example-start label label.c */
#include <gtk/gtk.h>
@@ -15,7 +14,7 @@ int main( int argc,
gtk_init(&argc, &argv);
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- gtk_signal_connect (GTK_OBJECT (window), "destroy",
+ g_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC(gtk_main_quit),
NULL);
@@ -97,6 +96,5 @@ int main( int argc,
gtk_main ();
- return(0);
+ return 0;
}
-/* example-end */