Re: [gnome-db] gnome-combo - how to get the selection
- From: Rodrigo Moya <rodrigo gnome-db org>
- To: Dru <andru treshna com>
- Cc: DANIEL ESPINOSA <esodan yahoo com mx>, gnome-db <gnome-db-list gnome org>
- Subject: Re: [gnome-db] gnome-combo - how to get the selection
- Date: Fri, 19 Mar 2004 17:01:20 +0100
On Sat, 2004-03-20 at 04:20 +1300, Dru wrote:
> >
> >
> >>Is it correct, becouse gcc send me and error? and of
> >>course I try to use
> >>
> >>gtk_entry_get_text() to get the text, but the last
> >>line of code don't work.
> >>
> >>Pleas Help Me!
> >>
> >>I'm using the next code but it send a error:
> >>
> >>GdaDataModel *data_model;
> >>
> >>GString *sql = g_string_new(NULL);
> >>
> >>g_string_assign(sql, _("SELECT nombre FROM obras WHERE
> >>proy="));
> >>g_string_append(sql,"'");
> >>//Is the next correct?
> >>
> >>g_string_append(sql,gtk_entry_get_text((proyecto->combo->entry)));
> >>
> >>
> >>
> >again, use GTK_COMBO (proyecto)->entry
> >
> >we should probably add a gnome_db_combo_get_selection function though,
> >to make all this easier.
> >
> >cheers
> >
> >
> >
>
> it all changes with gtkcombobox now. I wouldn't worry about it till you
> impliment
> gtk 2.6. and gtk_db_combo_get_selection could be confused with
> GTK_COMBO(proyecto)->list, get_text or get_entry is proberly more approp
> name.
yes, we should change that widget to be based on the GTK 2.4 one.
cheers
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]