Attributes clarification ?



Hi All,

Can some one please clarify what does attributes mean ?

The below code seems to confuse me

what does it mean by foreground taking the value of COLOR_COLUMN (which is 1)

enum { TEXT_COLUMN, COLOR_COLUMN, N_COLUMNS };
 ...
 {
   GtkTreeViewColumn *column;
   GtkCellRenderer   *renderer = gtk_cell_renderer_text_new ();

   column = gtk_tree_view_column_new_with_attributes ("Title",
                                                      renderer,
                                                      "text", TEXT_COLUMN,
                                                      "foreground",
COLOR_COLUMN,
                                                      NULL);
 }


-- 
Regards,
~Sid~
I have never met a man so ignorant that i couldn't learn something from him



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