Re: change treeview's cell height
- From: Andrew Potter <agpotter gmail com>
- To: GTK Devel List <gtk-app-devel-list gnome org>
- Subject: Re: change treeview's cell height
- Date: Thu, 24 Jan 2013 15:42:30 -0800
On Thu, Jan 24, 2013 at 3:33 PM, Rudra Banerjee <rudra banerjee 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!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]