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 > wrote: > > > gtk_tree_view_set_rules_hint (GTK_TREE_VIEW(tree), TRUE); > > the rules_hint are not working, i.e. I am not getteing alternative

Re: change treeview's cell height

2013-01-24 Thread Andrew Potter
On Thu, Jan 24, 2013 at 4:00 PM, Rudra Banerjee wrote: > 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 not pay attention to tha

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 Rudra Banerjee
Thanks a lot! worked great! On Thu, 2013-01-24 at 15:42 -0800, Andrew Potter wrote: > On Thu, Jan 24, 2013 at 3:33 PM, Rudra Banerjee > wrote: > > > cell = gtk_cell_renderer_text_new (); > > col_auth=gtk_tree_view_column_new_with_attributes ( > >

Re: change treeview's cell height

2013-01-24 Thread Andrew Potter
On Thu, Jan 24, 2013 at 3:33 PM, Rudra Banerjee wrote: > cell = gtk_cell_renderer_text_new (); > col_auth=gtk_tree_view_column_new_with_attributes ( >"Author", cell, >"text", COL_BIB_NAME, >

Re: change treeview's cell height

2013-01-24 Thread Rudra Banerjee
Thanks for your reply. Can you kindly give a short example? I have defined my tree as: store = gtk_list_store_new (NUM_COLS, G_TYPE_STRING, 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 1:53 PM, Rudra Banerjee wrote: > 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 construct your TreeView the

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 gt

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 11:

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 t

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 con

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 tutori

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,