diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-01-03 19:26:36 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-01-03 19:26:36 +0000 |
commit | 44ec61dd97f1e159457b24458cf86ec39660efd7 (patch) | |
tree | 036b478f431462c22a8e0464d58854b2e86f4233 /examples/helloworld | |
parent | 6803d93d38eb7f1cf09b89eeaf0cb414ab001d15 (diff) | |
download | gtk+-44ec61dd97f1e159457b24458cf86ec39660efd7.tar.gz |
Re-extract.
2005-01-03 Matthias Clasen <mclasen@redhat.com>
* examples/*: Re-extract.
* docs/tutorial/gtk-tut.sgml: Small corrections.
Diffstat (limited to 'examples/helloworld')
-rw-r--r-- | examples/helloworld/helloworld.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/examples/helloworld/helloworld.c b/examples/helloworld/helloworld.c index 8f81097592..ffc19cb31b 100644 --- a/examples/helloworld/helloworld.c +++ b/examples/helloworld/helloworld.c @@ -1,18 +1,17 @@ -#include <config.h> #include <gtk/gtk.h> /* This is a callback function. The data arguments are ignored * in this example. More on callbacks below. */ -void hello( GtkWidget *widget, - gpointer data ) +static void hello( GtkWidget *widget, + gpointer data ) { g_print ("Hello World\n"); } -gint delete_event( GtkWidget *widget, - GdkEvent *event, - gpointer data ) +static gboolean delete_event( GtkWidget *widget, + GdkEvent *event, + gpointer data ) { /* If you return FALSE in the "delete_event" signal handler, * GTK will emit the "destroy" signal. Returning TRUE means @@ -29,8 +28,8 @@ gint delete_event( GtkWidget *widget, } /* Another callback */ -void destroy( GtkWidget *widget, - gpointer data ) +static void destroy( GtkWidget *widget, + gpointer data ) { gtk_main_quit (); } |