Re: delete-event of GtkWidget

2007-01-22 Thread Dan H.
Enrico Tröger wrote: > Hm, I use -Wall for compiling with gcc. And this code doesn't produce a > warning: > g_signal_connect (dialog, "delete_event", G_CALLBACK(gtk_widget_hide), > NULL); > And how could it? The gcc can't know which return type the definition > of the delete_event expects, can it

Re: delete-event of GtkWidget

2007-01-22 Thread Enrico Tröger
On Mon, 22 Jan 2007 09:13:03 +0100, "Dan H." <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > > Yes, I misused gtk_widget_hide and already fixed my code. > > [...] > > > Obviously, I just wondered about the different behaviour of > > different systems. I tested it also under Windows and there

Re: delete-event of GtkWidget

2007-01-22 Thread Dan H.
Enrico Tröger wrote: > Yes, I misused gtk_widget_hide and already fixed my code. [...] > Obviously, I just wondered about the different behaviour of different > systems. I tested it also under Windows and there it is like in Debian, > the widget is still functional even though only by accident o

Re: delete-event of GtkWidget

2007-01-21 Thread Enrico Tröger
On Sun, 21 Jan 2007 12:24:45 +, [EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote: > > On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > > > > > -BEGIN PGP SIGNED MESSAGE- > > > Hash

Re: delete-event of GtkWidget

2007-01-21 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote: > On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > > On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote

Re: delete-event of GtkWidget

2007-01-20 Thread Yeti
On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote: > > If you don't handle the delete event, the widget gets marked for > > destroy. Later it gets the destroy event (at this point the widget is > > no longer quite functional: think of it as a last cleanup thing). > > Then it goes away.

Re: delete-event of GtkWidget

2007-01-20 Thread Enrico Tröger
On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote: > > Hi all, > > > > when I write big dialogs, I create it only once, keep the pointer to > > the dialog and show it ever

Re: delete-event of GtkWidget

2007-01-19 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote: > Hi all, > > when I write big dialogs, I create it only once, keep the pointer to > the dialog and show it everytime I need it. In the response callback I > just use gtk_widget_hide to le