Re: change treeview's cell height



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 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!
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]