Attributes clarification ?

View: New views
1 Messages — Rating Filter:   Alert me  

Attributes clarification ?

by g_siddu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
_______________________________________________
gtk-list mailing list
gtk-list@...
http://mail.gnome.org/mailman/listinfo/gtk-list