[Glade-users] How can I call an element of one window from another window?



This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C04E88.6FA0DE0A
Content-Type: text/plain

I'm trying to set callback functions in one window of an application
so they have an effect on objects in other windows (all the same
executable of course). The only way I've found up until now is to
make the different window widgets as global variables within
main.c, and creating them as extern globals in other sources,
so I can access their different elements:

window1->container_widget5->entry3 (as an example) where
window1 is a global everywhere. I've been browsing at the GTK+
docs I've been able to find but nothing seems to indicate to
me what the best course of action is yet.

Any ideas?

Thanks!

Emmanuel Gravel

------_=_NextPart_001_01C04E88.6FA0DE0A
Content-Type: text/html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12">
<TITLE>How can I call an element of one window from another window?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">I'm trying to set callback functions in one window of an application</FONT>
<BR><FONT SIZE=2 FACE="Arial">so they have an effect on objects in other windows (all the same</FONT>
<BR><FONT SIZE=2 FACE="Arial">executable of course). The only way I've found up until now is to</FONT>
<BR><FONT SIZE=2 FACE="Arial">make the different window widgets as global variables within</FONT>
<BR><FONT SIZE=2 FACE="Arial">main.c, and creating them as extern globals in other sources,</FONT>
<BR><FONT SIZE=2 FACE="Arial">so I can access their different elements:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">window1-&gt;container_widget5-&gt;entry3 (as an example) where</FONT>
<BR><FONT SIZE=2 FACE="Arial">window1 is a global everywhere. I've been browsing at the GTK+</FONT>
<BR><FONT SIZE=2 FACE="Arial">docs I've been able to find but nothing seems to indicate to</FONT>
<BR><FONT SIZE=2 FACE="Arial">me what the best course of action is yet.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Any ideas?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Emmanuel Gravel</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C04E88.6FA0DE0A--






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