diff options
Diffstat (limited to 'examples/fixed')
-rw-r--r-- | examples/fixed/Makefile | 8 | ||||
-rw-r--r-- | examples/fixed/fixed.c | 8 |
2 files changed, 10 insertions, 6 deletions
diff --git a/examples/fixed/Makefile b/examples/fixed/Makefile index 4fe88024b..941531b20 100644 --- a/examples/fixed/Makefile +++ b/examples/fixed/Makefile @@ -1,8 +1,14 @@ CC = gcc +CFLAGS = -Wall \ + -DG_DISABLE_DEPRECATED \ + -DGDK_DISABLE_DEPRECATED \ + -DGDK_PIXBUF_DISABLE_DEPRECATED \ + -DGTK_DISABLE_DEPRECATED + fixed: fixed.c - $(CC) `pkg-config --cflags gtk+-2.0` fixed.c -o fixed `pkg-config --libs gtk+-2.0` + $(CC) fixed.c -o fixed $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs` clean: rm -f *.o fixed diff --git a/examples/fixed/fixed.c b/examples/fixed/fixed.c index 645f976cf..83d6990d7 100644 --- a/examples/fixed/fixed.c +++ b/examples/fixed/fixed.c @@ -1,4 +1,3 @@ -/* example-start fixed fixed.c */ #include <gtk/gtk.h> @@ -35,7 +34,7 @@ int main( int argc, gtk_window_set_title(GTK_WINDOW(window), "Fixed Container"); /* Here we connect the "destroy" event to a signal handler */ - gtk_signal_connect (GTK_OBJECT (window), "destroy", + g_signal_connect (GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (gtk_main_quit), NULL); /* Sets the border width of the window. */ @@ -53,7 +52,7 @@ int main( int argc, /* When the button receives the "clicked" signal, it will call the * function move_button() passing it the Fixed Container as its * argument. */ - gtk_signal_connect (GTK_OBJECT (button), "clicked", + g_signal_connect (GTK_OBJECT (button), "clicked", GTK_SIGNAL_FUNC (move_button), fixed); /* This packs the button into the fixed containers window. */ @@ -69,6 +68,5 @@ int main( int argc, /* Enter the event loop */ gtk_main (); - return(0); + return 0; } -/* example-end */ |