edit and use treeview cell

2013-01-24 Thread Rudra Banerjee
Friends, I am writing a gtk3(in C) code, that uses treeview. store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,

Re: edit and use treeview cell

2013-01-24 Thread David Nečas
On Thu, Jan 24, 2013 at 09:41:20AM +, Rudra Banerjee wrote: g_object_set(cell, editable, TRUE, NULL); but I have no idea of how to connect the edited flag to file/buffer. It will be very helpful if someone kindly show the way...a very short example may be. Have you read the tutorial?

Re: edit and use treeview cell

2013-01-24 Thread Rudra Banerjee
On Thu, 2013-01-24 at 10:45 +0100, David Nečas wrote: Have you read the tutorial? http://scentric.net/tutorial/sec-editable-cells.html David, Thanks for your reply. Yes, I have read that tutorial. After reading that I have learned how to make the cell editable. But the problem still

Re: edit and use treeview cell

2013-01-24 Thread zz
On Thursday 24 January 2013 11:02:37 Rudra Banerjee wrote: On Thu, 2013-01-24 at 10:45 +0100, David Nečas wrote: Have you read the tutorial? http://scentric.net/tutorial/sec-editable-cells.html David, Thanks for your reply. Yes, I have read that tutorial. After reading that I have

Re: edit and use treeview cell

2013-01-24 Thread Rudra Banerjee
Thanks ZZ, your code helped me making my code more general. Thanks a lot. Now I can edit the cells well. But my final goal is to write them in a file. I will check a bit and come back if I need further help. On Thu, 2013-01-24 at 15:18 +0100, z...@excite.it wrote: On Thursday 24 January 2013

change treeview's cell height

2013-01-24 Thread Rudra Banerjee
Dear friends, How can I change cell (and hence row) height of a given row? In my treeview, I have cells of fixed width, and I want texts longer than that should be wrapped with height increased. Any solution anyone? ___ gtk-app-devel-list mailing list

Re: change treeview's cell height

2013-01-24 Thread Andrew Potter
On Thu, Jan 24, 2013 at 1:53 PM, Rudra Banerjee rudra.baner...@aol.co.ukwrote: In my treeview, I have cells of fixed width, and I want texts longer than that should be wrapped with height increased. Get a pointer to the GtkCellRendererText for the column in question; depending on how you

Re: change treeview's cell height

2013-01-24 Thread Rudra Banerjee
Andrew, If I am not demanding to much, will you mind to have a look at the treeview defination that I posted? the problem is in treeview as written, store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING,

Re: change treeview's cell height

2013-01-24 Thread Andrew Potter
On Thu, Jan 24, 2013 at 4:00 PM, Rudra Banerjee rudra.baner...@aol.co.ukwrote: gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(tree), TRUE); the rules_hint are not working, i.e. I am not getteing alternative color for each row. I'm not an expert, but it probably means your default theme does

Re: change treeview's cell height

2013-01-24 Thread Rudra Banerjee
Ok, no problem. Thanks for your time though. On Thu, 2013-01-24 at 16:21 -0800, Andrew Potter wrote: On Thu, Jan 24, 2013 at 4:00 PM, Rudra Banerjee rudra.baner...@aol.co.ukwrote: gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(tree), TRUE); the rules_hint are not working, i.e. I am not