зеркало из https://github.com/mono/mail-archives.git
160 строки
6.0 KiB
HTML
160 строки
6.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] Problem with DeleteEvent
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:mikkel%40linet.dk">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="004720.html">
|
|
<LINK REL="Next" HREF="004721.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] Problem with DeleteEvent
|
|
</H1>
|
|
<B>Mikkel Kruse Johnsen
|
|
</B>
|
|
<A HREF="mailto:mikkel%40linet.dk"
|
|
TITLE="[Gtk-sharp-list] Problem with DeleteEvent">mikkel@linet.dk
|
|
</A><BR>
|
|
<I>Thu, 19 Aug 2004 09:09:22 +0200</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="004720.html">[Gtk-sharp-list] Problem with DeleteEvent
|
|
</A></li>
|
|
<LI> Next message: <A HREF="004721.html">[Gtk-sharp-list] Tooltips in general
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4726">[ date ]</a>
|
|
<a href="thread.html#4726">[ thread ]</a>
|
|
<a href="subject.html#4726">[ subject ]</a>
|
|
<a href="author.html#4726">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>--Boundary_(ID_pbXdjRh1oR1kVdPlTH3Kaw)
|
|
Content-type: text/plain; charset=UTF-8
|
|
Content-transfer-encoding: 8BIT
|
|
|
|
Hi
|
|
|
|
I don't think you can do that in delete-event, since the window is
|
|
already deleted, but I think you can hook into destroy-event and test it
|
|
there, return TRUE to not futher call delete-event or FALSE to continue
|
|
with delete-event.
|
|
|
|
/Mikkel
|
|
|
|
On Wed, 2004-08-18 at 19:12, miguel díaz wrote:
|
|
|
|
><i> hi all,
|
|
</I>><i> in my window delete event i want to test if a text
|
|
</I>><i> view has changed before exiting the application but
|
|
</I>><i> when i run the programm, it ignores it, my warning
|
|
</I>><i> dialog does not appear and mono throw this message:
|
|
</I>><i>
|
|
</I>><i> ...gdk warning: gdk_property_delete:general case not
|
|
</I>><i> implemented
|
|
</I>><i> ...gdk warning: window unexpectedly destroyed
|
|
</I>><i>
|
|
</I>><i> can anyone tell me what is wrong? here my code
|
|
</I>><i>
|
|
</I>><i> public void WindowDelete (object obj, DeleteEventArgs
|
|
</I>><i> args)
|
|
</I>><i> {
|
|
</I>><i> if(contentsModified == true){
|
|
</I>><i> new WarningDialog();
|
|
</I>><i> Application.Quit();
|
|
</I>><i> }
|
|
</I>><i> else{
|
|
</I>><i> Application.Quit();
|
|
</I>><i> }
|
|
</I>><i>
|
|
</I>><i> }
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i>
|
|
</I>><i> ___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! <A HREF="http://uk.messenger.yahoo.com">http://uk.messenger.yahoo.com</A>
|
|
</I>><i> _______________________________________________
|
|
</I>><i> Gtk-sharp-list maillist - <A HREF="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</A>
|
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</A>
|
|
</I>
|
|
--Boundary_(ID_pbXdjRh1oR1kVdPlTH3Kaw)
|
|
Content-type: text/html; charset=utf-8
|
|
Content-transfer-encoding: 7BIT
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
|
|
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
|
|
</HEAD>
|
|
<BODY>
|
|
Hi<BR>
|
|
<BR>
|
|
I don't think you can do that in delete-event, since the window is already deleted, but I think you can hook into destroy-event and test it there, return TRUE to not futher call delete-event or FALSE to continue with delete-event.<BR>
|
|
<BR>
|
|
/Mikkel<BR>
|
|
<BR>
|
|
On Wed, 2004-08-18 at 19:12, miguel d&#237;az wrote:
|
|
<BLOCKQUOTE TYPE=CITE>
|
|
<PRE><FONT COLOR="#737373"><I>hi all,
|
|
in my window delete event i want to test if a text
|
|
view has changed before exiting the application but
|
|
when i run the programm, it ignores it, my warning
|
|
dialog does not appear and mono throw this message:
|
|
|
|
...gdk warning: gdk_property_delete:general case not
|
|
implemented
|
|
...gdk warning: window unexpectedly destroyed
|
|
|
|
can anyone tell me what is wrong? here my code
|
|
|
|
public void WindowDelete (object obj, DeleteEventArgs
|
|
args)
|
|
{
|
|
if(contentsModified == true){
|
|
new WarningDialog();
|
|
Application.Quit();
|
|
}
|
|
else{
|
|
Application.Quit();
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
___________________________________________________________ALL-NEW Yahoo! Messenger - all new features - even more fun! </FONT><A HREF="<A HREF="http://uk.messenger.yahoo.com"">http://uk.messenger.yahoo.com"</A>><U><A HREF="http://uk.messenger.yahoo.com</U">http://uk.messenger.yahoo.com</U</A>></A>
|
|
<FONT COLOR="#737373">_______________________________________________
|
|
Gtk-sharp-list maillist - <A HREF="mailto:Gtk-sharp-list@lists.ximian.com">Gtk-sharp-list@lists.ximian.com</A></FONT>
|
|
<A HREF="<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list"">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list"</A>><U><A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</U">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</U</A>></I></A></PRE>
|
|
</BLOCKQUOTE>
|
|
</BODY>
|
|
</HTML>
|
|
|
|
--Boundary_(ID_pbXdjRh1oR1kVdPlTH3Kaw)--
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="004720.html">[Gtk-sharp-list] Problem with DeleteEvent
|
|
</A></li>
|
|
<LI> Next message: <A HREF="004721.html">[Gtk-sharp-list] Tooltips in general
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#4726">[ date ]</a>
|
|
<a href="thread.html#4726">[ thread ]</a>
|
|
<a href="subject.html#4726">[ subject ]</a>
|
|
<a href="author.html#4726">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|