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