Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/intern/wm_splash_screen.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | |||||
| UI_block_bounds_set_centered(block, 22 * U.dpi_fac); | UI_block_bounds_set_centered(block, 22 * U.dpi_fac); | ||||
| return block; | return block; | ||||
| } | } | ||||
| static int wm_about_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) | static int wm_about_invoke(bContext *C, wmOperator *UNUSED(op), const wmEvent *UNUSED(event)) | ||||
| { | { | ||||
| WM_add_scrim(C, CTX_wm_window(C)); | |||||
| UI_popup_block_invoke(C, wm_block_create_about, NULL, NULL); | UI_popup_block_invoke(C, wm_block_create_about, NULL, NULL); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void WM_OT_splash_about(wmOperatorType *ot) | void WM_OT_splash_about(wmOperatorType *ot) | ||||
| { | { | ||||
| ot->name = "About Blender"; | ot->name = "About Blender"; | ||||
| ot->idname = "WM_OT_splash_about"; | ot->idname = "WM_OT_splash_about"; | ||||
| ot->description = "Open a window with information about Blender"; | ot->description = "Open a window with information about Blender"; | ||||
| ot->invoke = wm_about_invoke; | ot->invoke = wm_about_invoke; | ||||
| ot->poll = WM_operator_winactive; | ot->poll = WM_operator_winactive; | ||||
| } | } | ||||
| Context not available. | |||||