Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_text/text_ops.c
| Show First 20 Lines • Show All 2,308 Lines • ▼ Show 20 Lines | static int text_jump_exec(bContext *C, wmOperator *op) | ||||
| text_update_cursor_moved(C); | text_update_cursor_moved(C); | ||||
| WM_event_add_notifier(C, NC_TEXT | ND_CURSOR, text); | WM_event_add_notifier(C, NC_TEXT | ND_CURSOR, text); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int text_jump_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | static int text_jump_invoke(bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) | ||||
| { | { | ||||
| return WM_operator_props_dialog_popup(C, op, 200, 100); | return WM_operator_props_dialog_popup(C, op, 200); | ||||
| } | } | ||||
| void TEXT_OT_jump(wmOperatorType *ot) | void TEXT_OT_jump(wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ot->name = "Jump"; | ot->name = "Jump"; | ||||
| ▲ Show 20 Lines • Show All 1,534 Lines • Show Last 20 Lines | |||||