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

Reply via email to