Re: custom treemodels and treeview padding
- From: Bob Caryl <bob fis-cal com>
- To: Jonathon Jongsma <jonathon jongsma gmail com>
- Cc: gtkmm <gtkmm-list gnome org>
- Subject: Re: custom treemodels and treeview padding
- Date: Fri, 16 Jun 2006 12:48:35 -0500
Just a shot in the dark here: Is your custom Gtk::TreeModel based on a
Gtk::TreeStore or a Gtk::ListStore? If it's a Gtk::TreeStore then I'd
guess that the "weird padding" is reserving space to place the expansion
toggle symbol for a row that is an expandable parent.
Once again, just a guess.
Bob Caryl
Jonathon Jongsma wrote:
I've been working a bit on a custom treemodel based on standard C++
containers and I've got the basics working, but when I add it to a
treeview, I get some weird padding in the beginning of the column.
For example, see this screenshot:
http://download.gna.org/colorscheme/etc/customtreemodel/Screenshot-testcustomtreemodel.png
I tried running the example that's in the gtkmm source tree and the
first column also seems to have this extra padding, although the
subsequent columns don't:
http://download.gna.org/colorscheme/etc/customtreemodel/gtkmm-example.png
Does anybody have any suggestions for what might be causing this and
what I might try to fix it? Or has anybody implemented a custom
treemodel where this behavior doesn't exist?
If you're interested in playing with the code, you can download it from here:
http://download.gna.org/colorscheme/etc/customtreemodel/customtreemodel-0.0.2.tar.gz
Any tips would be greatly appreciated.
Thanks,
Jonner
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]