[Glade-devel] gtk_dialog_run.



This is a multi-part message in MIME format.

------=_NextPart_000_0004_01C2E41F.0EBB9A10
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: 7bit

G'day,
 
Question regarding gtk_dialog_run. I understand from the doco that it is
a very bad idea to use a gtk_widget_destroy when in this "dialog_run"
block. You should first emit a response signal and then destroy. This
all works ok. However,  I have a setup, where I need to destroy a dialog
in this "dialog_run" mode. If I emit a signal then code will be excuted
which should not.  If I destroy the dialog, I get the following output:
 
(Main:8227): GLib-GObject-WARNING **: gsignal.c:1705: instance
`0x8288318' has no handler with id `449'
 
(Main:8227): GLib-GObject-WARNING **: gsignal.c:1705: instance
`0x8288318' has no handler with id `450'
 
(Main:8227): GLib-GObject-WARNING **: gsignal.c:1705: instance
`0x8288318' has no handler with id `451'
 
(Main:8227): GLib-GObject-WARNING **: gsignal.c:1705: instance
`0x8288318' has no handler with id `452'
 
The program works fine after this. My question is, if these warnings can
"hurt". Is it just these output messages, or will it leave some traces
in memory? 
 
Thanks,
 
Bas.


------=_NextPart_000_0004_01C2E41F.0EBB9A10
Content-Type: text/html;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003>G'day,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>Question regarding=20
gtk_dialog_run. I understand from the doco that it is a very bad idea to =
use a=20
gtk_widget_destroy when in this "dialog_run" block. You should first =
emit a=20
response signal and then destroy. This all works ok. However, &nbsp;I =
have a=20
setup, where I need to destroy a dialog in this "dialog_run" mode. If I =
emit a=20
signal then code will be excuted which should not.&nbsp;&nbsp;If I =
destroy the=20
dialog, I get the following output:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>(Main:8227):=20
GLib-GObject-WARNING **: gsignal.c:1705: instance `0x8288318' has no =
handler=20
with id `449'</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>(Main:8227):=20
GLib-GObject-WARNING **: gsignal.c:1705: instance `0x8288318' has no =
handler=20
with id `450'</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>(Main:8227):=20
GLib-GObject-WARNING **: gsignal.c:1705: instance `0x8288318' has no =
handler=20
with id `451'</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>(Main:8227):=20
GLib-GObject-WARNING **: gsignal.c:1705: instance `0x8288318' has no =
handler=20
with id `452'</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D242502010-06032003>The =
program works=20
fine after this. My question is, if these warnings can "hurt". Is it =
just these=20
output messages, or will it leave some traces in memory? =
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D242502010-06032003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D242502010-06032003>Bas.</DIV>
<DIV><BR></DIV></SPAN></FONT></BODY></HTML>

------=_NextPart_000_0004_01C2E41F.0EBB9A10--





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]