[Gtk-sharp-list] Future Direction of GTK#

Rodrigo Moya rodrigo@ximian.com
29 Nov 2002 12:29:30 +0100

On Fri, 2002-11-29 at 04:09, Daniel Morgan wrote:
> What do you mean by "trusted"?
> Basically, one feature in the model I would like to see is a generic data
> binding infrastructure like System.Windows.Forms and
> System.Web.UI.WebControls has.  For instance: a TextBox, ComboBox, DataList,
> and a DataGrid can be binded to a data source.  The GTK# widget would
> automagically update itself with data from the data source.  I created a
> DataGrid for SQL# which uses classes and interfaces found in
> System.ComponentModel as a way for data to bind to a widget magically
> without any knowledge of the data source.
well, that is exactly what libgnomedb does, for which there are already
GTK# bindings. Of course, I suppose what you mean is that you want to
bind a data source to a 'normal' widget (that is, a GTK widget, not a
gnome-db widget). For this thing, I suppose the best way would be to add
the stuff to gnome-db (gtk_list_set_model, gtk_combo_box_set_model, etc)
and just provide C# bindings for those functions (GtkBoundList,
GtkBoundComboBox, etc).

If not, you've got 2 other choices:

* add the stuff to GTK# directly, making use of GDA# for the data
* start from scratch and redo a lot of the already done stuff in

Apart from this, I think a very good idea would be to add support to
gnome-db# for the widgets to work not only with the GDA# structures, but
with System.Data ones. Doing subclasses of the already existing
gnome-db# classes would be a nice idea. Thus, people would be able to
use gnome-db# either with gda# (as right now) or with System.Data

Rodrigo Moya <rodrigo@ximian.com>