RE: [gtkmm] Reset a value in a cell
- From: Murray Cumming Comneon com
- To: igorbounov voronezh serw ru
- Cc: igorbounov voronezh serw mps, gtkmm-list gnome org
- Subject: RE: [gtkmm] Reset a value in a cell
- Date: Wed, 9 Jul 2003 11:17:55 +0200
> From: Igor Gorbounov [mailto:igorbounov voronezh serw ru]
> Murray Cumming Comneon com wrote:
>
> >>From: Igor Gorbounov [mailto:igorbounov voronezh serw ru]
> >>Hi, All!
> >>[...]
> >>
> >Can you just read the default value at runtime and then use
> it later? I
> >don't think there's a better way, though you could ask on
> the GTK+ list
> >about default property values in general.
> >
> >
> There is a file (filetree.cc) by Daniel Elstner, distributed as an
> example in
> this mail list,
If you can show us a URL for that then we might be able to think about it
more.
> and it has a line:
> "renderer.property_foreground_gdk().reset_value();"
> so I've thought there might be a magic way to reset the value
> of a cell
> of any datatype.
> Igor Gorbounov
Hmm, yes. I don't know how or when that should be used. I suspect that it
just sets things to zero, or whatever is an appropriate "initialized" value
for that _type_ of property, rather than for that specific property.
Here is the chain of my investigations:
http://cvs.gnome.org/lxr/source/gtkmm-root/glib-src/propertyproxy.h#43
http://cvs.gnome.org/lxr/source/gtkmm-root/glib-src/propertyproxy_base.cc#14
0
http://cvs.gnome.org/lxr/source/gtkmm-root/glib-src/value.cc#37
http://developer.gnome.org/doc/API/2.0/gobject/gobject-Generic-values.html#g
-value-init
Murray Cumming
murrayc usa net
www.murrayc.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]