diff options
Diffstat (limited to 'examples/pixmap')
-rw-r--r-- | examples/pixmap/pixmap.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/examples/pixmap/pixmap.c b/examples/pixmap/pixmap.c index bb48c41837..8834c9e2b3 100644 --- a/examples/pixmap/pixmap.c +++ b/examples/pixmap/pixmap.c @@ -29,18 +29,24 @@ static const char * xpm_data[] = { /* when invoked (via signal delete_event), terminates the application. */ -void close_application( GtkWidget *widget, GdkEvent *event, gpointer data ) { +gint close_application( GtkWidget *widget, + GdkEvent *event, + gpointer data ) +{ gtk_main_quit(); + return(FALSE); } /* is invoked when the button is clicked. It just prints a message. */ -void button_clicked( GtkWidget *widget, gpointer data ) { - printf( "button clicked\n" ); +void button_clicked( GtkWidget *widget, + gpointer data ) { + g_print( "button clicked\n" ); } -int main( int argc, char *argv[] ) +int main( int argc, + char *argv[] ) { /* GtkWidget is the storage type for widgets */ GtkWidget *window, *pixmapwid, *button; |