[Gtk-sharp-list] Table layout and cross-thread calling

Walter Kempf gtk-sharp at indicium.za.net
Tue Mar 13 01:45:49 EDT 2007


Hi,

Seeing as I've dabbed in multi-threading myself (albeit not with that 
much success), I can point you to 
http://www.mono-project.com/Responsive_Applications.

If you search through the various threading issues described previously 
in this list, it seems that the Gtk.Application.Invoke(delegate {...}) 
path is the most favored (also covered in the "Responsive Applications" 
article).

Hope this helps,

Walter

Aaron Oxford wrote:
> Hi all,
>
> I'm still making great progress with my app, but I've found another couple of things that are
> confusing me.
>
> First and foremost, I seem to be getting extremely strange behaviour modifying a label from
> another thread. The code crashes more often than not. This is unusual for a threading problem
> because generally the chances of a problem occurring are very small. In any case, what is the
> accepted method for modifying Widgets from other threads?
>
> Also, the table layout seems to be playing up very badly. I declare an Nx3 table and fill it up
> with components but they all appear on top of each other, no matter what I do with packing, size
> hints or Show vs ShowAll. I'm struggling a lot with this completely uncontrollable layout
> philosophy - is there really no way to control the relative proportions of components as they
> scale? It seems that if I create two thin columns and one fat one, stretching the window leaves me
> with three columns of equal width.
>
> Apologies for posting even more newbie questions, thanks in advance for any help.
>
>   


More information about the Gtk-sharp-list mailing list