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/helloworld2 | |
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/helloworld2')
-rw-r--r-- | examples/helloworld2/helloworld2.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/helloworld2/helloworld2.c b/examples/helloworld2/helloworld2.c index 3a8a1627e8..a62c88210f 100644 --- a/examples/helloworld2/helloworld2.c +++ b/examples/helloworld2/helloworld2.c @@ -1,19 +1,18 @@ -#include <config.h> #include <gtk/gtk.h> /* Our new improved callback. The data passed to this function * is printed to stdout. */ -void callback( GtkWidget *widget, - gpointer data ) +static void callback( GtkWidget *widget, + gpointer data ) { g_print ("Hello again - %s was pressed\n", (gchar *) data); } /* another callback */ -gint delete_event( GtkWidget *widget, - GdkEvent *event, - gpointer data ) +static gboolean delete_event( GtkWidget *widget, + GdkEvent *event, + gpointer data ) { gtk_main_quit (); return FALSE; |