[Glade-users] How to set data in the GtkCellRendererText?
Tristan Van Berkom
tvb at gnome.org
Fri Apr 15 19:51:49 EDT 2011
On Sat, Apr 16, 2011 at 8:13 AM, Cleber N. Borges <klebyn at yahoo.com.br> wrote:
> are there a way of to set data in the GtkCellRendererText by Glade?
> because when I make:
>
> gint column = GPOINTER_TO_INT ( g_object_get_data ( G_OBJECT ( cell ),
> "column" ) );
>
> I don't get the column number :-(
That's not expected to get the column number.
To setup cell renderers, hit the "edit" button in the toolbar
with your GtkTreeView/GtkIconView/GtkComboBox.. widget
selected (or use "edit..." from the context menu for your cell
layouting widget).
With the provided editor you should be able to:
- Add renderers and columns (for treeviews)
- Attribute the cell renderer properties to treemodel columns
- Assign cell renderer properties fixed values
- Assign a GtkListStore or GtkTreeStore
- Define GtkList/TreeStore column types
- For GtkListStore you can also define data
(GtkTreeStore does not allow data to be
defined in the GtkBuilder xml).
Cheers,
-Tristan
>
> thanks for your help
>
> Cleber
> _______________________________________________
> Glade-users maillist - Glade-users at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
>
More information about the Glade-users
mailing list