diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-16 10:44:21 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2008-12-16 10:44:21 +0300 |
commit | 1c1c89262eea0ab4eb62788fd4daf1023ffbf8e1 (patch) | |
tree | 2b0fe1f1a0e45adb2522711c974186efb87efe75 /source/blender/editors/space_time | |
parent | d272300da95648ccc5b383ab9debb19707aa48e3 (diff) |
WM: changed WM_operator_call to take an argument, which specifies in
which context to run the operator: WM_OP_DEFAULT, WM_OP_REGION_WIN,
WM_OP_AREA or WM_OP_SCREEN. This also replaces WM_operator_call_rwin
since it is more general.
This is useful for buttons and popup menus to run operators, and also
used by a new function to lookup the keymap item for that operator in
the right context.
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r-- | source/blender/editors/space_time/time_header.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_time/time_header.c b/source/blender/editors/space_time/time_header.c index dd222292674..f88b5435902 100644 --- a/source/blender/editors/space_time/time_header.c +++ b/source/blender/editors/space_time/time_header.c @@ -282,19 +282,19 @@ static void do_time_framemenu(bContext *C, void *arg, int event) WM_event_add_notifier(C, WM_NOTE_WINDOW_REDRAW, 0, NULL); break; case 3: /* Add Marker */ - WM_operator_call_rwin(C, "ED_MARKER_OT_add"); + WM_operator_call(C, "ED_MARKER_OT_add", WM_OP_REGION_WIN); break; case 4: /* Remove Marker */ - WM_operator_call_rwin(C, "ED_MARKER_OT_delete"); + WM_operator_call(C, "ED_MARKER_OT_delete", WM_OP_REGION_WIN); break; case 5: /* Rename Marker */ //rename_marker(); break; case 6: /* Grab Marker */ - WM_operator_call_rwin(C, "ED_MARKER_OT_move"); + WM_operator_call(C, "ED_MARKER_OT_move", WM_OP_REGION_WIN); break; case 7: /* duplicate marker */ - WM_operator_call_rwin(C, "ED_MARKER_OT_duplicate"); + WM_operator_call(C, "ED_MARKER_OT_duplicate", WM_OP_REGION_WIN); break; } } |