mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-28 06:32:53 +00:00
Use intptr_t again when casting gpointer to integers.
This commit is contained in:
parent
21a7ab44c7
commit
8910ffc600
1 changed files with 2 additions and 2 deletions
|
@ -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 ) ) );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue