Re: Getting a Column Number
- From: "Gabriele Greco" <gabriele greco darts it>
- To: dhk <dhkuhl optonline net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Getting a Column Number
- Date: Wed, 16 Jul 2008 10:04:59 +0200
How do you get the column number from a GtkTreeViewColumn pointer? Is
there a way to get the previous and/or next Column or column number?
Use gtk_tree_view_get_columns() to get a GList of all the column and check
the pointer of focus_column against the GList with g_list_index(), this will
return your column number.
You can also add the column number as data to your GtkTreeViewColumn objects
with something like:
g_object_set_data(column, "colnum", GINT_TO_POINTER(X))
when you create the columns...
--
Bye,
Gabry
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]