Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_handlers.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 3,489 Lines • ▼ Show 20 Lines | if (but->type == UI_BTYPE_SEARCH_MENU) { | ||||
| ui_searchbox_update(C, data->searchbox, but, true); /* true = reset */ | ui_searchbox_update(C, data->searchbox, but, true); /* true = reset */ | ||||
| } | } | ||||
| /* reset alert flag (avoid confusion, will refresh on exit) */ | /* reset alert flag (avoid confusion, will refresh on exit) */ | ||||
| but->flag &= ~UI_BUT_REDALERT; | but->flag &= ~UI_BUT_REDALERT; | ||||
| ui_but_update(but); | ui_but_update(but); | ||||
| /* Make sure the edited button is in view. */ | |||||
| if (data->searchbox) { | |||||
| /* Popup blocks don't support moving after creation, so don't change the view for them. */ | /* Popup blocks don't support moving after creation, so don't change the view for them. */ | ||||
| if (!data->searchbox) { | } | ||||
| else if (UI_block_layout_needs_resolving(but->block)) { | |||||
| /* Layout isn't resolved yet (may happen when activating while drawing through | |||||
| * #UI_but_active_only()), so can't move it into view yet. This causes | |||||
| * #ui_but_update_view_for_active() to run after the layout is resolved. */ | |||||
| but->changed = true; | |||||
| } | |||||
| else { | |||||
| UI_but_ensure_in_view(C, data->region, but); | UI_but_ensure_in_view(C, data->region, but); | ||||
| } | } | ||||
| WM_cursor_modal_set(win, WM_CURSOR_TEXT_EDIT); | WM_cursor_modal_set(win, WM_CURSOR_TEXT_EDIT); | ||||
| #ifdef WITH_INPUT_IME | #ifdef WITH_INPUT_IME | ||||
| if (is_num_but == false && BLT_lang_is_ime_supported()) { | if (is_num_but == false && BLT_lang_is_ime_supported()) { | ||||
| ui_textedit_ime_begin(win, but); | ui_textedit_ime_begin(win, but); | ||||
| ▲ Show 20 Lines • Show All 8,267 Lines • Show Last 20 Lines | |||||