Re: how to align text to right in GtkCellRendererText



On Mon, Mar 14, 2005 at 08:16:36AM +0100, Hubert Sokolowski wrote:

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?

Set renderer "xalign" property to 1.0.

thanks, that works.



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