Re: destroy a widget while keeping the window with Glade

2012-10-07 Thread Tristan Van Berkom
On Sun, Oct 7, 2012 at 2:57 PM, Frank Cox thea...@melvilletheatre.com wrote: I've just started playing with Glade and once again I'm wondering if I'm using the wrong approach to get stuff done, since I can't find anything that tells me how to do this. So far, I've been creating a main

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread jcupitt
On 6 October 2012 15:48, Filip Lamparski matka.pooha...@gmail.com wrote: However, the thumbnail loading process takes a long time, so I want to put it into another process, with the GUI displaying a spinner or a progress bar until the loading finishes. Sorry, I don't use Python much, but in C

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Filip Lamparski
I specifically want to avoid using GLib's threading machinery in order to use multiprocessing, since later I want to add multithreading to the thumbnail loading process itself in order to utilise multiple cores more efficiently. That is because at first run, I have to download 128 images, and the

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread jcupitt
Sorry I missed the process bit. To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to your gtk main loop as an event source. You obviously can't use any gtk/glib stuff in your worker, you'd need to just make a .jpg, then do all the

gtk_tree_model_get end of Line marker

2012-10-07 Thread Arne Pagel
Dear all, because of my lazy programming style I sometimes forget or overwirte the comma before the -1 end of line marker for the gtk_tree_model_get or gtk_tree_store_set function. This error can usually not be detected by the c-compilers, so that I had to spend some really unnecessary time

Re: destroy a widget while keeping the window with Glade

2012-10-07 Thread Frank Cox
On Sun, 7 Oct 2012 16:59:48 +0900 Tristan Van Berkom wrote: Just right click on any widget in Glade's palette and chose Add as toplevel Glade/GtkBuilder do not restrict you to using toplevel GtkWindows in your xml. Well, whaddayaknow bout 'dat! Thanks loads! -- MELVILLE THEATRE ~ Real D

Re: gtk_tree_model_get end of Line marker

2012-10-07 Thread David Nečas
On Sun, Oct 07, 2012 at 05:43:52PM +0200, Arne Pagel wrote: because of my lazy programming style I sometimes forget or overwirte the comma before the -1 end of line marker for the gtk_tree_model_get or gtk_tree_store_set function. This error can usually not be detected by the c-compilers, so

Re: [Pixman] debuging wxruby

2012-10-07 Thread Søren Sandmann
Svend Haugaard Sørensen s...@demosophia.net writes: On Sun, 07 Oct 2012 05:10:18 +0200 sandm...@cs.au.dk (Søren Sandmann) wrote: Svend Haugaard Sørensen s...@demosophia.net writes: The top of the stack dump look like this. #0 0xb47a6d9d in _pixman_lookup_composite_function

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Filip Lamparski
On 7 October 2012 12:58, jcup...@gmail.com wrote: To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to your gtk main loop as an event source. Is there any way I could do that? I looked at GLib's main loop and Gtk's main loop,

Re: [Pixman] debuging wxruby

2012-10-07 Thread Søren Sandmann
Svend Haugaard Sørensen s...@demosophia.net writes: Most likely the issue is the same as in this bug: https://bugs.freedesktop.org/show_bug.cgi?id4335 where some other library is using the TLS model initial-exec, which then conflicts with pixman using the dynamic model. And how do we

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Simon Feltman
On Sun, Oct 7, 2012 at 12:29 PM, Filip Lamparski matka.pooha...@gmail.com wrote: On 7 October 2012 12:58, jcup...@gmail.com wrote: To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to your gtk main loop as an event source. Is

Re: Best way to busy-wait in Python 3 / Gtk+ 3?

2012-10-07 Thread Michael Torrie
On 10/07/2012 08:41 PM, Simon Feltman wrote: On Sun, Oct 7, 2012 at 12:29 PM, Filip Lamparski matka.pooha...@gmail.com wrote: On 7 October 2012 12:58, jcup...@gmail.com wrote: To have the load in another process, use a pipe to send worker results back to the main process, and add the pipe to