Re: switch_page signal
- From: "Matthew Walker" <mwalker kydance net>
- To: <gtk-app-devel-list gnome org>
- Subject: Re: switch_page signal
- Date: Sun, 28 Jul 2002 17:20:07 -0600 (MDT)
I would guess it's because as it destroys each page of the notebook, it has
to switch pages.
Michal ROMAN said:
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.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]