libgnomedb3.0: WARNING **: could expand "" into list of field
- From: paragasu <paragasu gmail com>
- To: gtk-app-devel-list gnome org
- Subject: libgnomedb3.0: WARNING **: could expand "" into list of field
- Date: Mon, 1 Sep 2008 02:44:25 -0700
i am very new into this gtk and libgnomedb. this is my first attempt
write one, i have one
function.
[snip]
GtkWidget *page_1(GdaConnection *conn)
{
GtkWidget *vbox;
GdaQuery *query;
GdaDict *dict = gda_dict_new();
gda_dict_set_connection(dict, conn);
query = gda_query_new_from_sql(dict, "SELECT * FROM account", NULL);
GdaDataModel *acc_list_model = gda_data_model_query_new(query);
g_object_unref(query);
query = gda_query_new_from_sql(dict,
"SELECT * from account"
"WHERE acc_id=##/*name=:'acc_id' type:gint descr:'account id'*/",
NULL);
GdaDataModel *payment_model = gda_data_model_query_new(query);
g_object_unref(query);
GdaParameterList *params =
gda_data_model_query_get_parameter_list(GDA_DATA_MODEL_QUERY(payment_model));
GdaParameter *param = gda_parameter_list_find_param(params, "acc_id");
GtkWidget *grid = gnome_db_raw_grid_new(acc_list_model);
GtkWidget *form = gnome_db_raw_form_new(payment_model);
gtk_box_pack_start(GTK_BOX(vbox), grid, FALSE, FALSE, 3);
gtk_container_add(GTK_CONTAINER(vbox), form);
return vbox;
}
[/snip]
the code compile well. except it give up warning and segmentation fault.
WARNING **: could expand 'account.*' into list of fields
i do not have any idea what happen or how to fix this one.
I really appreciate your comment..
thank you
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]