how to align text to right in GtkCellRendererText




Hi!

I add a text column to GtkTreeView using code
renderer = gtk_cell_renderer_text_new ();
    column = gtk_tree_view_column_new_with_attributes (col_titles[i],
                                                       renderer,
                                                       "text",
                                                       cols[i],
                                                       NULL);
    gtk_tree_view_column_set_sort_column_id (column, cols_sort[i]);
    gtk_tree_view_append_column (treeview, column);

is there a way to display the text in such a column aligned to the right?

thanks in advance
hs



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