[Gtk-sharp-list] set widget properties before autoconnect

Parrish M Myers parrishmyers@yahoo.com
Wed, 7 Jan 2004 09:24:23 -0800 (PST)


--0-532550996-1073496263=:15701
Content-Type: text/plain; charset=us-ascii

Hi,
 
Does anyone have an example of how to use either of these functions:
 
Glade.XML.HandleWidgetProp(Gtk.Widget, string, string) or
Glade.XML.SetValueFromString(IntPtr, string, GLib.Value)
 
I think the second one is the function I want... What I am tring to do is use a glade file to construct an info dialog, but before I call autoconnect (which I think build the dialog from the file, connects signals, etc...) I want to change the value of the Gtk.Label widget before the dialog gets created.  Otherwise I get this uncomfortable blink in the dialog as it resizes when I set the Gtk.Label string after the window is shown.
 
Thanks.


-----------------------------------------------------------
Academia is a little like child   | Parrish M. Myers
rearing, it provides a chance at  | The Wacked Jester
immortality without the stretch   | parrishmyers@yahoo.com
marks  -- (unknown source)        |
-----------------------------------------------------------

---------------------------------
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
--0-532550996-1073496263=:15701
Content-Type: text/html; charset=us-ascii

<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Does anyone have an example of how to use either of these functions:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Glade.XML.HandleWidgetProp(Gtk.Widget, string, string) or</DIV>
<DIV>Glade.XML.SetValueFromString(IntPtr, string, GLib.Value)</DIV>
<DIV>&nbsp;</DIV>
<DIV>I think the second one is the function I want... What I am tring to do is use a glade file to construct an info dialog, but before I call autoconnect (which I think build the dialog from the file, connects signals, etc...) I want to change the value of the Gtk.Label widget before the dialog gets created.&nbsp; Otherwise I get this uncomfortable blink in the dialog as it resizes when I set the Gtk.Label string after the window is shown.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks.</DIV><BR><BR>-----------------------------------------------------------<br>Academia is a little like child   | Parrish M. Myers<br>rearing, it provides a chance at  | The Wacked Jester<br>immortality without the stretch   | parrishmyers@yahoo.com<br>marks  -- (unknown source)        |<br>-----------------------------------------------------------<p><hr SIZE=1>
Do you Yahoo!?<br>
Yahoo! Hotjobs: <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/hotjobs/mail_footer_email/evt=21482/*http://hotjobs.sweepstakes.yahoo.com/signingbonus">Enter the "Signing Bonus" Sweepstakes</a>
--0-532550996-1073496263=:15701--