GObject and threads

2010-07-08 Thread Jaroslav Šmíd
I need to connect to multiple GObject's signals in my secondary thread. Object is created in the primary (main) thread. Both threads have glib loop running. Problem is that the signal connected in secondary thread is actually executed from primary thread (that created gobject). How can I achieve th

liststore manipulation question

2010-07-08 Thread Wallace . Owen
How do I ask for the previous entry in a list store given the current selection? Here's what I'm trying to do: I've got a list store that I want the user to be able to reorder. The list has two fields: It's ordinal rank and it's name. I'm allowing the user to sort on any field so he can peruse

Re: liststore manipulation question

2010-07-08 Thread Tadej Borovšak
Hi. You'll probably want to do something like this in your functions (replace my data parameter with whatever you're using to get widget's inside callback): static void move_up (GtkButton *button, Data *data) { GtkTreeIter current, prev; GtkTreePath *path; G

Re: liststore manipulation question

2010-07-08 Thread Wallace . Owen
Thanks. That looks like what I want. // Wally On Thu, 2010-07-08 at 20:50 +0200, Tadej Borovšak wrote: > Hi. > > You'll probably want to do something like this in your functions (replace my > data parameter with whatever you're using to get widget's inside callback): > > static void > move_