Re: libglade+gnome-db example (was Re: Connecting by data source?)



Brian Jepson wrote:

>
> Does it make sense for gnome-db-combo to have this functionality (at least
> repositioning the recordset on the selection)?  In my example, I only
> reposition it when I want to query the underlying data, but it might be
> nice that anytime I do gnome_db_combo_get_recordset, I get a recordset
> that is positioned on the current selection.
>

As there will be cases where this is unwanted (when sharing the recordset with
other widgets, for example), I've added a function gnome_db_combo_sync() which
will do what you say. So, the best way I can think of to use this feature will be
to connect to the GnomeDbCombo's "selection_changed" signal, and, in the callback,
call gnome_db_combo_sync() and then gnome_db_combo_get_recordset().







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