switch_page signal
- From: Michal ROMAN <michal roman nov sk>
- To: gtk-app-devel-list gnome org
- Subject: switch_page signal
- Date: 28 Jul 2002 21:49:28 +0200
Hi all,
I have small program:
void on_notebook1_switch_page (GtkNotebook *notebook,
GtkNotebookPage *page, gint page_num, gpointer user_data)
{
g_print ("switch page\n");
}
gboolean on_window1_delete_event (GtkWidget *widget,
GdkEvent *event, gpointer user_data)
{
g_print ("delete event\n");
return FALSE;
}
void on_window1_destroy (GtkObject *object, gpointer user_data)
{
g_print ("destroy\n");
}
int main (int argc, char *argv[])
{
gtk_init (&argc, &argv);
window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
...
notebook1 = gtk_notebook_new ();
...
gtk_signal_connect (GTK_OBJECT (window1), "delete_event",
GTK_SIGNAL_FUNC (on_window1_delete_event),
NULL);
gtk_signal_connect (GTK_OBJECT (window1), "destroy",
GTK_SIGNAL_FUNC (on_window1_destroy),
NULL);
gtk_signal_connect (GTK_OBJECT (notebook1), "switch_page",
GTK_SIGNAL_FUNC (on_notebook1_switch_page),
NULL);
gtk_widget_show (window1);
gtk_main ();
return 0;
}
If I close window I get followed output:
delete event
destroy
switch page
switch page
Why is called switch_page signal after destroy signal?
Thanks.
MR.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]