[Gtk-sharp-list] yet another ListStore / TreeView question

Mathias Bruce mathias.bruce@spray.se
Thu, 10 Jun 2004 17:31:13 GMT


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_Lycos_0080961086888673_ID
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 8bit

You were right, I was accessing it from another thread. I tried using ThreadNotify, and it worked like charm.
Thanks a lot!
/Mathias

------ Ursprungligt meddelande ------------------- 
Från: Todd Berman <tberman@sevenl.net> 
Datum: Tue, 08 Jun 2004 22:08:45 -0400 
Ämne: Re: [Gtk-sharp-list] yet another ListStore / TreeView question 

My best guess is that you are touching gtk from a thread that isnt the 
main thread. You can't do that. Look at Gtk.ThreadNotify, or GLib.Idle, 
or Gtk.Timeout to get back to the main thread.

--Todd

Mathias Bruce wrote:
> Hi,
> I've run into some trouble using the ListStore / TreeView components of gtk#, and was hoping someone could help
me out.
> 
> When I, during the course of a programs execution, for example .Clear() my ListStore and put some new values into
> it, the TreeView should refresh the GUI automatically, shouldn't it? Mine doesn't seem to do that - I have to
> either move my mouse above it to update or, in the worst cases, the entire Gtk.Window stops redrawing itself. I can
> for example click buttons in the window that output information to the console, but they show no "graphical" signs
> of actually getting clicked.
> 
> I extracted the parts in the source code concerning the ListStore / TreeView parts from my project to a small test
> application of its own, and it worked perfectly. The only difference is that in the larger project, the TreeView is
> contained in a number of HBox'es, VBox'es, Frame's and EventBox'es, but that shouldn't change anything, should it?
> 
> I know that is a very fuzzy question, but I'd be very happy for any hints as to what could be problem. Oh, and huge
> thanks for your great efforts developing this stuff!
> 
> Best regards,
> Mathias Bruce
> 
> Skicka kärlek, värme, grattis, ondska och humor! Sprayklubbens vykort har allt i känslor.  http://vykort.spray.se
> 

_______________________________________________
Gtk-sharp-list maillist  -  Gtk-sharp-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

____________________________________________________________
  För alla singlar - singelkryssen lättar ankar igen den 23 oktober. Boka nu!
  http://www.spray.se/datekryss


--=_NextPart_Lycos_0080961086888673_ID--