GtkTreeView matters...
| From: | André Jansen | Date: | Thu, 28 Sep 2006 23:13:43 +0000 |
| Subject: | GtkTreeView matters... | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-7292@lists.php.net to get a copy of this message | ||
Hi all,
First of all, I really haven't been able how to figure out how to get a
column in a GtkTreeView to display its contents right-aligned (for
numeric values). I am probably overlooking something, I dug through the
docs for Gtk2 also, but no luck.
On a related note: Types and sorting.
If I have a string value and I set the column type in the GtkListStore to
"Gtk::TYPE_STRING", the column sorts as expected. If I have an integer
value and I set the column type to "Gtk::TYPE_LONG", it also works OK,
that is (100, 90, 5) sorts as (5, 90, 100) rather than (100, 5, 90) which
would be the case if the values were interpreted as strings.
Now what if I want to sort a column with floating point values? I
understand that a "Gtk::TYPE_FLOAT" column type does not exist.
Thanks in advance for any pointers,
Regards,
--
André
===========================================================
Put the Fun back in dysfunctional!