comparison gtk4/dw.c @ 2508:cb795bba48a4

GTK4: Fix the new dw_x11_check() function that is thread safe.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 06 May 2021 23:25:07 +0000
parents fa976a5bc7bd
children 457c91634881
comparison
equal deleted inserted replaced
2507:4b45e888eb10 2508:cb795bba48a4
11056 } 11056 }
11057 return retval; 11057 return retval;
11058 } 11058 }
11059 11059
11060 DW_FUNCTION_DEFINITION(dw_x11_check, int, int trueresult, int falseresult) 11060 DW_FUNCTION_DEFINITION(dw_x11_check, int, int trueresult, int falseresult)
11061 DW_FUNCTION_ADD_PARAM1(handle) 11061 DW_FUNCTION_ADD_PARAM2(trueresult, falseresult)
11062 DW_FUNCTION_RETURN(dw_window_raise, int) 11062 DW_FUNCTION_RETURN(dw_x11_check, int)
11063 DW_FUNCTION_RESTORE_PARAM1(trueresult, int, falseresult, int) 11063 DW_FUNCTION_RESTORE_PARAM2(trueresult, int, falseresult, int)
11064 { 11064 {
11065 int retval = falseresult; 11065 int retval = falseresult;
11066 #ifdef GDK_WINDOWING_X11 11066 #ifdef GDK_WINDOWING_X11
11067 GdkDisplay *display = gdk_display_get_default(); 11067 GdkDisplay *display = gdk_display_get_default();
11068 11068