Re: how to get the parent of a selected row in treeview?

2010-04-26 Thread Arthur 1989
thank you.I will try to implement it. On Mon, Apr 26, 2010 at 7:12 PM, Tadej Borovšak wrote: > Hi. > > You can obtain parent iter like this: > 1a. converting GtkTreeIter that you got from > gtk_tree_view_selection_get_selected() into GtkTreePath using > gtk_tree_model_get_path() > 1b. get sele

Re: how to get the parent of a selected row in treeview?

2010-04-26 Thread Tadej Borovšak
Hi. You can obtain parent iter like this: 1a. converting GtkTreeIter that you got from gtk_tree_view_selection_get_selected() into GtkTreePath using gtk_tree_model_get_path() 1b. get selected path directly using gtk_tree_view_selection_get_selected_rows() 2. get parent path using gtk_tree_path_

how to get the parent of a selected row in treeview?

2010-04-26 Thread Arthur 1989
Hi, i create a tree model using following codes: //~~ GtkTreeStore *treestore; GtkTreeIter toplevel, child; treestore = gtk_tree_store_new(1, G_TYPE_STRING); gtk_tree_store_append(treestore, &toplevel, NULL); gtk_tree_store_set(treestore, &toplevel, 0, "Linux"

Re: Default values for spin buttons in Glade

2010-04-26 Thread Tadej Borovšak
Hi. > Is there a way to set the default value without an adjustment? The only other > solution I can think of is to create the adjustment in code and then apply it > to the spin button at runtime. You can use latest released version of glade (I think it's 3.7) or git master. Both have this issu

Re: Default values for spin buttons in Glade

2010-04-26 Thread Jozef Legény
I use gtk_spin_button_set_value() in my code. It should do the trick, and it takes the spin button as a parameter rather than the adjustment. If I understood the system of adjustments right they should get updated at the same time. On Sat, Apr 24, 2010 at 10:46 AM, dfg dfg wrote: > > Thanks for

Re: gtk_list_store from XML UI not storing strings

2010-04-26 Thread John Emmas
Just testing Please forgive me hi-jacking this thread. I'm testing to see if my post gets through. During the past week, three of my posts have been mysteriously lost when I tried to ask questions on this (and other) gtk mailing lists. Just wondering if it works if I reply to an existin