id3_genre_count++) {
item = gtk_list_item_new_with_label(id3_genre->name);
gtk_object_set_user_data(GTK_OBJECT(item),
- (gpointer)(id3_genre->num));
+ GINT_TO_POINTER(id3_genre->num));
uinfo->id3_genre_item_list=g_list_append(uinfo->id3_genre_item_list,item);
gtk_signal_connect(GTK_OBJECT(item),"select",
GTK_SIGNAL_FUNC(ID3GenreChanged),
ginfo=(GripInfo *)data;
- ginfo->ddata.data_id3genre=(int)gtk_object_get_user_data(GTK_OBJECT(widget));
+ ginfo->ddata.data_id3genre=GPOINTER_TO_INT(gtk_object_get_user_data(GTK_OBJECT(widget)));
/* ginfo->ddata.data_genre=ID32DiscDB(ginfo->ddata.data_id3genre);*/
}
int mode;
ginfo=(GripInfo *)data;
- mode=(int)gtk_object_get_user_data(GTK_OBJECT(widget));
+ mode=GPOINTER_TO_INT(gtk_object_get_user_data(GTK_OBJECT(widget)));
for(track=0;track<ginfo->disc.num_tracks;track++) {
if(mode==0)
for(genre=0;genre<12;genre++) {
item=gtk_list_item_new_with_label(DiscDBGenre(genre));
gtk_object_set_user_data(GTK_OBJECT(item),
- (gpointer)genre);
+ GINT_TO_POINTER(genre));
gtk_signal_connect(GTK_OBJECT(item), "select",
GTK_SIGNAL_FUNC(DiscDBGenreChanged),(gpointer)ginfo);
gtk_container_add(GTK_CONTAINER(GTK_COMBO(genre_combo)->list),item);
ginfo=(GripInfo *)data;
- ginfo->ddata.data_genre=(int)gtk_object_get_user_data(GTK_OBJECT(widget));
+ ginfo->ddata.data_genre=GPOINTER_TO_INT(gtk_object_get_user_data(GTK_OBJECT(widget)));
}
static void ToggleMenuItemSensitive(GtkWidget *widget, gpointer data)
{
- gtk_widget_set_sensitive(GTK_WIDGET(widget), (gboolean)data);
+ gtk_widget_set_sensitive(GTK_WIDGET(widget), GPOINTER_TO_INT(data));
}
void TrayGrayMenu(GripInfo *ginfo)