[gnome-db] bug with gnome_db_grid_get_row_data
- From: fred taonix net (Frédéric Logier)
- To: gnome-db-list gnome org
- Subject: [gnome-db] bug with gnome_db_grid_get_row_data
- Date: Tue, 23 Dec 2003 17:12:13 +0100
I have some trouble with gnome_db_grid_get_row_data().
I get selected row with gnome_db_grid_get_selection(), it works
perfect, but i can't get row data, gnome_db_grid_get_row_data return
a NULL pointer for each row selected.
This is my function, thanks for your help.
void on_dbgrid_customer_row_selected (GtkWidget *dbgrid, gpointer user) {
GList *pRowSelected = NULL;
gpointer row = NULL;
pRowSelected = gnome_db_grid_get_selection (GNOME_DB_GRID (dbgrid));
if (pRowSelected) {
g_printf("row = %d\n", pRowSelected->data);
row = gnome_db_grid_get_row_data (GNOME_DB_GRID (dbgrid), pRowSelected->data);
g_printf("data =%s\n", row);
}
};
--
fred taonix net
Taonix
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]