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, G_TYPE_STRING, G_TYPE_STRING);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store)); 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. On Thu, 2013-01-24 at 23:47 +0000, Rudra Banerjee wrote: > 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 > > <rudra.baner...@aol.co.uk>wrote: > > > > > cell = gtk_cell_renderer_text_new (); > > > col_auth=gtk_tree_view_column_new_with_attributes ( > > > "Author", cell, > > > "text", COL_BIB_NAME, > > > NULL); > > > gtk_tree_view_column_set_sort_column_id( col_auth, ID_NAME); > > > gtk_tree_view_append_column (GTK_TREE_VIEW (tree), col_auth); > > > gtk_tree_view_column_set_max_width (col_auth,350); > > > > > > I googled the wrap_mode, but I haven't have any example. Please give me > > > a short example(even one liner) > > > > > > try: > > g_object_set(G_OBJECT(cell), "wrap-mode", PANGO_WRAP_WORD, "wrap-width", > > 10, NULL); > > > > If the cell has more than 10 characters, it might wrap. Good luck! > > _______________________________________________ > > gtk-app-devel-list mailing list > > gtk-app-devel-list@gnome.org > > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list