RE: catching destroy signal



All you should need is:

#include <gtk/gtk.h>

GdkWindow *window = ...
gboolean success = gtk_window_hide_on_delete(window);

and to use the following in the make file

CFLAGS=`gtk-config --cflags`
LINK=`gtk-config --libs`

That should work fine.  Plus im using gtk version 1.2.10.

To make sure it exists, check /usr/include/gtk-1.2/gtk/gtkwidget.h and see
if the function is defined in there, it should be on line 581.

Martyn

-----Original Message-----
From: broc stirton amd com [mailto:broc stirton amd com] 
Sent: 27 February 2002 16:46
To: gtk-app-devel-list gnome org
Subject: RE: catching destroy signal

Do I need to include something else?  I get:

warning: implicit declaration of function `gtk_window_hide_on_delete'
undefined reference to `gtk_window_hide_on_delete'

when I try to compile.  If its available I would like to use it... 

broc

-----Original Message-----
From: martyn 2 russell bt com [mailto:martyn 2 russell bt com]
Sent: Wednesday, February 27, 2002 10:41 AM
To: gtk-app-devel-list gnome org
Subject: RE: catching destroy signal


No, its in 1.2.6 and above (which is what ive been using)

-----Original Message-----
From: broc stirton amd com [mailto:broc stirton amd com] 
Sent: 27 February 2002 16:37
To: gtk-app-devel-list gnome org
Subject: RE: catching destroy signal

I am still using 1.2.10.  That function is 2.0 only, correct?  Thanks
though.

-----Original Message-----
From: martyn 2 russell bt com [mailto:martyn 2 russell bt com]
Sent: Wednesday, February 27, 2002 4:33 AM
To: gtk-app-devel-list gnome org
Subject: RE: catching destroy signal


Plus instead of hide all, why not use the function:

   gtk_window_hide_on_delete(window);

Martyn

-----Original Message-----
From: Havoc Pennington [mailto:hp redhat com] 
Sent: 27 February 2002 00:32
To: broc stirton amd com
Cc: gtk-app-devel-list gnome org
Subject: Re: catching destroy signal


broc stirton amd com writes:
I am trying to catch the destroy signal that the top-level window
gets from the window manager.  I am using:

You want to connect to delete_event and return TRUE, stopping destroy
is not possible (or at least not a good idea).

Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

_______________________________________________
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]