[1-1-0-Merge]

Fri May 29 13:53:57 BST 1998  Tony Gale  <gale@gtk.org>
        [1-1-0-Merge]

        * docs/gtk_tut.sgml:
          - new section on Events
          - change all delete_event callbacks to include
            a GdkEvent parameter
          - clean up the formatting

        * examples - helloworld.c, helloworld2.c, notebook.c,
          packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
          rulers.c, table.c, wheelbarrow.c: change all delete_event
           callbacks to include a GdkEvent parameter.
This commit is contained in:
BST 1998 Tony Gale
1998-06-01 11:46:58 +00:00
committed by Tony Gale
parent ffefc931cb
commit fe487d27d3
19 changed files with 2837 additions and 2349 deletions

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

View File

@@ -1,3 +1,17 @@
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
[1-1-0-Merge]
* docs/gtk_tut.sgml:
- new section on Events
- change all delete_event callbacks to include
a GdkEvent parameter
- clean up the formatting
* examples - helloworld.c, helloworld2.c, notebook.c,
packbox.c, pixmap.c, progressbar.c, radiobuttons.c,
rulers.c, table.c, wheelbarrow.c: change all delete_event
callbacks to include a GdkEvent parameter.
Mon May 25 19:54:20 1998 Owen Taylor <otaylor@gtk.org>
* configure.in: x_libs=, not $x_libs=. Enough said.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -12,7 +12,7 @@ void hello (GtkWidget *widget, gpointer data)
}
gint delete_event(GtkWidget *widget, gpointer data)
gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)
{
g_print ("delete event occured\n");
/* if you return FALSE in the "delete_event" signal handler,

View File

@@ -6,13 +6,13 @@
/* Our new improved callback. The data passed to this function is printed
* to stdout. */
void callback (GtkWidget *widget, gpointer data)
void callback (GtkWidget *widget, gpointer *data)
{
g_print ("Hello again - %s was pressed\n", (char *) data);
}
/* another callback */
void delete_event (GtkWidget *widget, gpointer data)
void delete_event (GtkWidget *widget, GdkEvent *event, gpointer *data)
{
gtk_main_quit ();
}

View File

@@ -36,7 +36,7 @@ void remove_book (GtkButton *button, GtkNotebook *notebook)
gtk_widget_draw(GTK_WIDGET(notebook), NULL);
}
void delete (GtkWidget *widget, gpointer data)
void delete (GtkWidget *widget, GdkEvent *event, gpointer *data)
{
gtk_main_quit ();
}

View File

@@ -5,7 +5,7 @@
#include "gtk/gtk.h"
void
delete_event (GtkWidget *widget, gpointer data)
delete_event (GtkWidget *widget, GdkEvent *event, gpointer *data)
{
gtk_main_quit ();
}

View File

@@ -31,14 +31,14 @@ static const char * xpm_data[] = {
/* when invoked (via signal delete_event), terminates the application.
*/
void close_application( GtkWidget *widget, gpointer data ) {
void close_application( GtkWidget *widget, GdkEvent *event, gpointer *data ) {
gtk_main_quit();
}
/* is invoked when the button is clicked. It just prints a message.
*/
void button_clicked( GtkWidget *widget, gpointer data ) {
void button_clicked( GtkWidget *widget, gpointer *data ) {
printf( "button clicked\n" );
}

View File

@@ -33,7 +33,7 @@ void progress_r (void)
pstat = FALSE;
}
void destroy (GtkWidget *widget, gpointer data)
void destroy (GtkWidget *widget, GdkEvent *event, gpointer *data)
{
gtk_main_quit ();
}

View File

@@ -5,7 +5,7 @@
#include <gtk/gtk.h>
#include <glib.h>
void close_application( GtkWidget *widget, gpointer data ) {
void close_application( GtkWidget *widget, GdkEvent *event, gpointer *data ) {
gtk_main_quit();
}

View File

@@ -11,7 +11,7 @@
/* this routine gets control when the close button is clicked
*/
void close_application( GtkWidget *widget, gpointer data ) {
void close_application( GtkWidget *widget, GdkEvent *event, gpointer *data ) {
gtk_main_quit();
}

View File

@@ -5,13 +5,13 @@
/* our callback.
* the data passed to this function is printed to stdout */
void callback (GtkWidget *widget, gpointer data)
void callback (GtkWidget *widget, gpointer *data)
{
g_print ("Hello again - %s was pressed\n", (char *) data);
}
/* this callback quits the program */
void delete_event (GtkWidget *widget, gpointer data)
void delete_event (GtkWidget *widget, GdkEvent *event, gpointer *data)
{
gtk_main_quit ();
}

View File

@@ -123,7 +123,7 @@ static char * WheelbarrowFull_xpm[] = {
/* when invoked (via signal delete_event), terminates the application.
*/
void close_application( GtkWidget *widget, gpointer data ) {
void close_application( GtkWidget *widget, GdkEvent *event, gpointer *data ) {
gtk_main_quit();
}