Re: GUI freeze and long blocking operation

2013-06-12 Thread Kip Warner
On Wed, 2013-06-12 at 09:50 +0100, jcup...@gmail.com wrote: > Do you need to use idle_add()? Hey John, If I start the long job function from within my assistant's "prepare" signal callback, as opposed to en-queueing it there via idle_add(), then the GUI doesn't refresh throughout the duration of

Re: Prevent sort of GtkListStore.

2013-06-12 Thread אנטולי קרסנר
I'll tell you what I do when I encounter this kind of problem. This is a general purpose "technique" for finding answers for things not well documented. If you made a web-search and there's no helpful tutorial and nothing on the mailing list archives, here's what you can do The gtkmm book provide

Re: Prevent sort of GtkListStore.

2013-06-12 Thread dE
On 06/12/13 21:24, אנטולי קרסנר wrote: I'm not sure what's the GTK equivalent, but in gtkmm (the C++ binding) it's possible to give a TreeView separate sorting which doesn't affect the data, and have multiple Views to sort the same TreeStore using different columns. I assume it's possible for Li

Re: Prevent sort of GtkListStore.

2013-06-12 Thread אנטולי קרסנר
I'm not sure what's the GTK equivalent, but in gtkmm (the C++ binding) it's possible to give a TreeView separate sorting which doesn't affect the data, and have multiple Views to sort the same TreeStore using different columns. I assume it's possible for ListStore too. The GTK API ref / tutorial p

Prevent sort of GtkListStore.

2013-06-12 Thread dE
With gtk_tree_view_column_set_sort_column_id (), it appears that GtkListStore also gets sorted. I don't want that to happen, since the data in it has to be compared. How can I do this? Thanks!! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gn

Re: GUI freeze and long blocking operation

2013-06-12 Thread jcupitt
On 12 June 2013 01:52, Kip Warner wrote: > My GtkAssistant on one page in particular performs a long operation > which would otherwise block the GUI from refreshing, if it were not for > intermittent... > > while Gtk.events_pending(): > Gtk.main_iteration() > > To start the lon