[gtk-list] Accessing struct fields [was: Re: Method to query toggle button state?]



Jimmie Mayfield <mayfield@sackheads.org> wrote,

> On Tue, Feb 23, 1999 at 01:24:05AM +0100, Anders Melchiorsen wrote:
> > "Manuel M. T. Chakravarty" <chak@is.tsukuba.ac.jp> wrote:
> > 
> > Would someone mind checking out the gtk_toggle_button_get_active() function?
> 
> Ahh.  Indeed.  Apparently this made it into the 1.1.14 release (I've
> been using 1.1.12...guess it's time to upgrade).

This however does not address the point I wanted to make.
Fact is that GTK+ frequently requires read and/or write
access to struct fields for which there is no gtk_*_get_* or
gtk_*_set_* function available (eg, for most fields of
adjustment objects).  My questions are

* is there any good reason for this (apart from that nobody
  bothered to implement it yet) and if not

* would patches adding such functions been accepted into the 
  distribution.

Regarding the second point, the proposal (made by someone on
the lists) to have a macro and a function encapsulating that
macro as a trade off between efficiency and ease of adding
bindings for high-level languages seems reasonable to me.

Would any of the developers care to comment on this?

Manuel

PS: I think, the ease of adding bindings for other languages 
    than C is a major plus for GTK+, so it should be
    worthwhile to think this through.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]