Re-extract.
2005-01-03 Matthias Clasen <mclasen@redhat.com> * examples/*: Re-extract. * docs/tutorial/gtk-tut.sgml: Small corrections.
This commit is contained in:

committed by
Matthias Clasen

parent
6803d93d38
commit
44ec61dd97
@ -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;
|
||||
|
Reference in New Issue
Block a user