Re: [gnome-db] Connection Widget / Other stuff

On Tue, 2002-01-29 at 17:31, Cleber Rodrigues Rosa Junior wrote:
> > In those 2 functions, you'll just add/remove GtkMenuItem's from the
> > GnomeDbConnectionSelector (which is a GtkOptionMenu-based class), and
> > have the strings displayed be something like 'DSN username', or
> > whatever.
> I like the display idea, but maybe username DSN makes more sense...
yes, username DSN looks better.

> > 
> > It is very important that we use strings and not GdaConnection's, since
> > the connection selector is used in the frontend, where there are no
> > GdaConnection's open at all. 
> How can I access a connection based on a string?
you've got the data source name, the username and the password, so you
can just open a connection with that information. The GNOME-DB
components, what they do is to keep a list of opened connections, and
just reuse the already open ones.

> After all this talk, it seems to me that my idea of a GnomeDbConnection
> would serve a different purpose, and would not fit into a
> GnomeDbConnectionSelector after all. Maybe it should be called
> GnomeDbConnectionMonitor, meaning what I really want from it.
yes, that GnomeDbConnectionMonitor widget makes a lot of sense to me. I
was just hesitant on how the GnomeDbConnection widget would fit in
GnomeDbConnectionSelector. But, as a separated widget, and calling it
GnomeDbConnectionMonitor, my vote is 'go ahead and implement it' :-)

Rodrigo Moya <rodrigo gnome-db org> - <rodrigo ximian com> -

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