Use intptr_t again when casting gpointer to integers.

This commit is contained in:
jdolan 2013-07-07 10:14:48 -04:00
parent 21a7ab44c7
commit 8910ffc600

View file

@ -37,7 +37,7 @@ static void dialog_button_callback( GtkWidget *widget, gpointer data ){
ret = (int*)g_object_get_data( G_OBJECT( parent ), "ret" );
*loop = 0;
*ret = (int)data;
*ret = (intptr_t)data;
}
static gint dialog_delete_callback( GtkWidget *widget, GdkEvent* event, gpointer data ){
@ -60,7 +60,7 @@ static void file_sel_callback( GtkWidget *widget, gpointer data ){
filename = (char**)g_object_get_data( G_OBJECT( parent ), "filename" );
*loop = 0;
if ( (int)data == IDOK ) {
if ( (intptr_t)data == IDOK ) {
*filename = g_strdup( gtk_file_selection_get_filename( GTK_FILE_SELECTION( parent ) ) );
}
}