return (int)gtk_object_get_data(GTK_OBJECT(item), "user-data");
return GPOINTER_TO_INT(gtk_object_get_data(GTK_OBJECT(item), "user-data"));
int dlg_listbox_getid(union control *ctrl, void *dlg, int index){    struct dlgparam *dp = (struct dlgparam *)dlg;    struct uctrl *uc = dlg_find_byctrl(dp, ctrl);    GList *children;    GtkObject *item;    assert(uc->ctrl->generic.type == CTRL_EDITBOX ||	   uc->ctrl->generic.type == CTRL_LISTBOX);    assert(uc->menu != NULL || uc->list != NULL);    children = gtk_container_children(GTK_CONTAINER(uc->menu ? uc->menu :						    uc->list));    item = GTK_OBJECT(g_list_nth_data(children, index));    g_list_free(children);    return (int)gtk_object_get_data(GTK_OBJECT(item), "user-data");}