Re: [gnome-db] DBGrid



On Thu, 2001-11-29 at 21:53, Juan Andrés Bentancour wrote:
> En jue, 2001-11-29 a 10:37, Rodrigo Moya escribio:
> > On Thu, 2001-11-29 at 00:00, Juan Andrés Bentancour wrote:
> > > Hello !
> > > 
> > > How can I set a DbGrid widget to only let single row's selection ??
> > > I tried with:
> > >   gtk_clist_set_selection_mode ( GTK_CLIST(GNOME_DB_GRID
> > > (dbgrid1)->grid),
> > >                                   GTK_SELECTION_SINGLE );
> > > 
> > this won't work, since GnomeDbGrid is not a GtkCList. It does contain
> > one, but it's not a CList.
> > 
> > Anyway, you can't do that, but it's so easy that I'll add a
> > 
> > gnome_db_grid_set_selection_mode
> > 
> > function this evening. Or if you want to do it yourself, and send a
> > patch, that would be great. You just have to edit gnome-db-grid.c and
> > add that function which should just call gtk_clist_set_selection_mode on
> > the GnomeDbGrid's internal GtkCList.
> > 
> > If there's no patch from you this evening, I'll add it myself :-)
> > 
> 
> here is the patch for gnome-db-grid .
> 
committed.

Thanks a lot :-)
-- 
Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com>
http://www.gnome-db.org/ - http://www.ximian.com/



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