On Tue, Oct 24, 2006 at 12:10:39AM -0700, Andre Messerschmidt wrote:
>
> void outer_signal_handler(int iSigno, siginfo_t *pxsigInfo, void *context)
> {
> static int i=0;
>
> printf("---- Signal handler Start
> -----------------------------------------------------\n");
>
> if ((i % 2) == 0)
> {
> printf("i=%d creating\n",i);
> GtkCreateWindow();
> }
> else
> {
> printf("i=%d destroying\n",i);
> gtk_widget_destroy(GTK_WIDGET(window1));
> }
> i++;
> printf("---- Signal handler End
> -------------------------------------------------------\n");
>
> }
I doubt creation and desctruction of windows can be done
safely in a signal handler while Gtk+ main loop is running
and the program can be anywhere in Gtk+ code at the time it
is delivered.
Yeti
--
Whatever.
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list