using the gda_parameter_list_find_param (data_set, "photo") working if i do not link it with the grid. on my app, user have to select row in the grid then the selected row details will be displayed on the form.
if i simply use the form without binding param from the grid, the photo displayed correctly. but if linked to the grid. it doesn't, so what i try to do next is trying to load the plugin after the user select the row using the signal "selection-changed" which is a bad fix for me. but so far it still doesn't work (i got segmentation error. LOL)... i am still looking for a way to make it work.i really appreciate if anyone know the solutions.. thanks.. On 9/23/08, Vivien Malerba <[EMAIL PROTECTED]> wrote: > 2008/9/20 paragasu <[EMAIL PROTECTED]> > >> i have linked grid and form. (gnome_db_raw_grid/form) >> user information will be display on the form based on the selection >> made from the grid. >> >> one column in the form contain photo. so i load the picture plugin using >> >> data_set= gnome_db_basic_form_get_data_set (GNOME_DB_BASIC_FORM >> (raw_form)); >> param = gda_parameter_list_find_param (data_set, "photo"); >> g_object_set (G_OBJECT (param), "entry_plugin", "picture", NULL); >> >> doesn't work. i got warning >> >> G_IS_OBJECT (object) failed > > > It seems to fail because the gda_parameter_list_find_param (data_set, > "photo"); returned NULL (probably because the column you want is not named > "photo"). Use the column number instead: > param = GDA_PARAMETER (g_slist_nth_data (data_set->parameters), col_number); > > > Cheers, > > Vivien > _______________________________________________ gnome-db-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-db-list
