- new section on Events - change all delete_event callbacks to include a
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org> * 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:
parent
99fdc828eb
commit
7953813453
13
ChangeLog
13
ChangeLog
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
@ -1,3 +1,16 @@
|
||||
Fri May 29 13:53:57 BST 1998 Tony Gale <gale@gtk.org>
|
||||
|
||||
* 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.
|
||||
|
||||
1998-05-26 Federico Mena Quintero <federico@nuclecu.unam.mx>
|
||||
|
||||
* gdk/gdktypes.h (GdkCrossingMode): New enumeration for the "mode"
|
||||
|
2531
docs/gtk_tut.sgml
2531
docs/gtk_tut.sgml
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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,
|
||||
|
@ -12,7 +12,7 @@ void callback (GtkWidget *widget, gpointer *data)
|
||||
}
|
||||
|
||||
/* another callback */
|
||||
void delete_event (GtkWidget *widget, gpointer *data)
|
||||
void delete_event (GtkWidget *widget, GdkEvent *event, gpointer *data)
|
||||
{
|
||||
gtk_main_quit ();
|
||||
}
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
@ -31,7 +31,7 @@ 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();
|
||||
}
|
||||
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -11,7 +11,7 @@ void callback (GtkWidget *widget, gpointer *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 ();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user